external-dns icon indicating copy to clipboard operation
external-dns copied to clipboard

fix(aws): check endpoint for nil before using in aws provider

Open mat285 opened this issue 1 year ago • 6 comments

Description

Check endpoints for nil to ensure they are valid before use in AWS provider

Fixes https://github.com/kubernetes-sigs/external-dns/issues/4176

Checklist

  • [x] Unit tests updated
  • [x] End user documentation updated

mat285 avatar Jul 19 '24 16:07 mat285

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: mat285 / name: Michael Turner (027c83dba74faa8b1f897cbbe4f94a6a335529fd, 999c7ae4a04c2edc766cc07ab349c0f69f980c4a)

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign szuecs for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Jul 19 '24 16:07 k8s-ci-robot

Hi @mat285. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Jul 19 '24 16:07 k8s-ci-robot

@johngmyers @mloiseleur @Raffo @szuecs sorry to bother yall but whenever you have time would love some feedback/review on this fix

mat285 avatar Jul 22 '24 17:07 mat285

@mat285 No PR are reviewed or merged without test.

BTW, as the dns hostname is limited to 63 characters, wdyt of returning a SoftError (and so log it) ?

mloiseleur avatar Aug 09 '24 09:08 mloiseleur

@mat285 No PR are reviewed or merged without test.

BTW, as the dns hostname is limited to 63 characters, wdyt of returning a SoftError (and so log it) ?

Thanks for the response, added a test to aws records test. This happens when the dns name has chars outside of the normal ones (I ran into it with a record containing a ~) that get encoded into strings longer than 63 chars. I'm good with returning a softerror and logging instead of just doing a nil check everywhere

mat285 avatar Aug 09 '24 17:08 mat285

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Sep 07 '24 19:09 k8s-ci-robot

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Dec 06 '24 19:12 k8s-triage-robot

/ok-to-test @mat285 Do you think you can rebase this PR ?

mloiseleur avatar Dec 22 '24 18:12 mloiseleur

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Jan 21 '25 18:01 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-triage-robot avatar Feb 20 '25 19:02 k8s-triage-robot

@k8s-triage-robot: Closed this PR.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Feb 20 '25 19:02 k8s-ci-robot