Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aws-certificatemanager): no unused props for DnsValidatedCertificate #22809

Closed
wants to merge 1 commit into from

Conversation

plumdog
Copy link
Contributor

@plumdog plumdog commented Nov 7, 2022

Fixes #22739.


All Submissions:

Adding new Unconventional Dependencies:

n/a

New Features

n/a

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Nov 7, 2022

@github-actions github-actions bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK effort/small Small work item – less than a day of effort p2 labels Nov 7, 2022
@aws-cdk-automation aws-cdk-automation requested a review from a team November 7, 2022 10:54
*
* @internal
*/
export interface BaseCertificateProps {
Copy link
Contributor Author

@plumdog plumdog Nov 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: should this be CertificateBaseProps? And does it belong in this file, or in certificate.ts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CertificateBaseProps. certificate-base.ts

@@ -36,7 +36,6 @@ const hostedZone = PublicHostedZone.fromHostedZoneAttributes(stack, 'HostedZone'
const cert = new DnsValidatedCertificate(stack, 'Certificate', {
domainName,
hostedZone,
validation: CertificateValidation.fromDns(hostedZone),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This certainly feels like it should be redundant (as the fromDns is covered by virtue of being a DnsValidateCertificate, and the hostedZone is passed as its own prop). And couldn't see it getting used in dns-validated-certificate.ts anywhere.

Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 44932a9
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@plumdog
Copy link
Contributor Author

plumdog commented Nov 7, 2022

I don't think this warrants a change to an integration test. The fix is to remove some options that get ignored, so I don't think there's anything new to test, but rather just want for any existing tests to still pass.

Copy link
Contributor

@comcalvi comcalvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good change but unfortunately it is a breaking change. Anybody using DnsValidatedCertificate with validation is going to be broken by this.

#21982 will deprecate DnsValidatedCertificate, so we should ensure that this change gets added to the replacement construct when that is merged.

*
* @internal
*/
export interface BaseCertificateProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CertificateBaseProps. certificate-base.ts

@aws-cdk-automation
Copy link
Collaborator

This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week.

@aws-cdk-automation
Copy link
Collaborator

This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error.

@aws-cdk-automation aws-cdk-automation added the closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. label Dec 7, 2022
@aws-cdk-automation
Copy link
Collaborator

The pull request linter fails with the following errors:

❌ Fixes must contain a change to an integration test file and the resulting snapshot.

PRs must pass status checks before we can provide a meaningful review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/small Small work item – less than a day of effort p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws-certificatemanager: DnsValidatedCertificate docs say that the default validation method is email
3 participants