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(secretsmanager): support secrets rotation in partition 'aws-cn' #14608

Merged
merged 5 commits into from
Jun 16, 2021

Conversation

zxkane
Copy link
Contributor

@zxkane zxkane commented May 10, 2021

closes #13385


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 May 10, 2021

@zxkane zxkane changed the title fix: support secrets rotation in partition 'aws-cn' fix(secretsmanager): support secrets rotation in partition 'aws-cn' May 10, 2021
@github-actions github-actions bot added the @aws-cdk/aws-secretsmanager Related to AWS Secrets Manager label May 10, 2021
@zxkane
Copy link
Contributor Author

zxkane commented May 10, 2021

@njlynch , not sure how to workaround git-secret checking.

The accountId are public in docs of secrets manager.

Downloading git-secrets...
Cloning into 'git-secrets'...
OK
git: 'secrets' is not a git command. See 'git --help'.
packages/@aws-cdk/aws-secretsmanager/lib/secret-rotation.ts:263:          accountId: '297356227824',
packages/@aws-cdk/aws-secretsmanager/lib/secret-rotation.ts:268:          accountId: '193023089310',

[ERROR] Matched one or more prohibited patterns

Possible mitigations:
- Mark false positives as allowed using: git config --add secrets.allowed ...
- Mark false positives as allowed by adding regular expressions to .gitallowed at repository's root directory
- List your configured patterns: git config --get-all secrets.patterns
- List your configured allowed patterns: git config --get-all secrets.allowed
- List your configured allowed patterns in .gitallowed at repository's root directory
- Use --no-verify if this is a one-time false positive

@njlynch
Copy link
Contributor

njlynch commented May 10, 2021

Not sure how to workaround git-secret checking. The accountId are public in docs of secrets manager.

I believe you'll need to add those account IDs to https://github.com/aws/aws-cdk/blob/master/.gitallowed

@zxkane zxkane force-pushed the secret-manager-pass-rotation branch from 9066e66 to 6e1c5d8 Compare May 10, 2021 15:20
@mergify mergify bot dismissed njlynch’s stale review May 10, 2021 15:25

Pull request has been modified.

@zxkane zxkane force-pushed the secret-manager-pass-rotation branch from 6e1c5d8 to 478d53d Compare May 10, 2021 15:29
@njlynch njlynch force-pushed the secret-manager-pass-rotation branch from 478d53d to 259cbc4 Compare June 15, 2021 11:07
zxkane and others added 3 commits June 15, 2021 15:18

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@zxkane zxkane force-pushed the secret-manager-pass-rotation branch from 259cbc4 to e042bf5 Compare June 15, 2021 15:18
@njlynch
Copy link
Contributor

njlynch commented Jun 16, 2021

Thanks for the effort getting this over the line and merged in!

@mergify
Copy link
Contributor

mergify bot commented Jun 16, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: a0c23e9
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify mergify bot merged commit 5061a8d into aws:master Jun 16, 2021
@mergify
Copy link
Contributor

mergify bot commented Jun 16, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

matthewsvu pushed a commit to matthewsvu/aws-cdk that referenced this pull request Jun 22, 2021
…ws#14608)

closes aws#13385

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…ws#14608)

closes aws#13385

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot pushed a commit that referenced this pull request Nov 30, 2021
This follows the same general setup as #14608 to add Secrets Manager rotation support in the `aws-us-gov` partition, GovCloud (US).

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
pedrosola pushed a commit to pedrosola/aws-cdk that referenced this pull request Dec 1, 2021
This follows the same general setup as aws#14608 to add Secrets Manager rotation support in the `aws-us-gov` partition, GovCloud (US).

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
This follows the same general setup as aws#14608 to add Secrets Manager rotation support in the `aws-us-gov` partition, GovCloud (US).

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-secretsmanager Related to AWS Secrets Manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(secretsmanager): db password rotation does not work in other partitions
3 participants