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

feat: move oauth secrets to parameter store #10413

Merged
merged 17 commits into from
May 19, 2022

Conversation

akshbhu
Copy link
Contributor

@akshbhu akshbhu commented May 13, 2022

Description of changes

  • Moved OAuth secrets to parameter store
  • Added tests
  • changed hostedUI lambda to fetch secrets from parameter store

Description of how you validated changes

  • added e2es
  • manually tested

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies

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

@akshbhu akshbhu requested a review from a team as a code owner May 13, 2022 02:26
@lgtm-com
Copy link

lgtm-com bot commented May 13, 2022

This pull request introduces 7 alerts when merging 91c26ee into 59c6422 - view on LGTM.com

new alerts:

  • 4 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable

@lgtm-com
Copy link

lgtm-com bot commented May 16, 2022

This pull request introduces 8 alerts when merging 7abb7e9 into 355c477 - view on LGTM.com

new alerts:

  • 5 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable

@lgtm-com
Copy link

lgtm-com bot commented May 16, 2022

This pull request introduces 8 alerts when merging 162f4e5 into 355c477 - view on LGTM.com

new alerts:

  • 5 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable

@akshbhu akshbhu changed the title Secrets remove2 fix: move oauth secrets to parameter store May 16, 2022
@lgtm-com
Copy link

lgtm-com bot commented May 16, 2022

This pull request introduces 6 alerts when merging 60276d1 into d43a009 - view on LGTM.com

new alerts:

  • 3 for Useless assignment to local variable
  • 3 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented May 16, 2022

This pull request introduces 6 alerts when merging 24e2ca6 into 269bb56 - view on LGTM.com

new alerts:

  • 3 for Useless assignment to local variable
  • 3 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented May 16, 2022

This pull request introduces 4 alerts when merging a7fb694 into 10d8468 - view on LGTM.com

new alerts:

  • 3 for Unused variable, import, function or class
  • 1 for Syntax error

@lgtm-com
Copy link

lgtm-com bot commented May 17, 2022

This pull request introduces 8 alerts when merging 3353521 into cba70d6 - view on LGTM.com

new alerts:

  • 3 for Useless assignment to local variable
  • 3 for Unused variable, import, function or class
  • 2 for Assignment to constant

@lgtm-com
Copy link

lgtm-com bot commented May 17, 2022

This pull request introduces 9 alerts when merging f11a595 into cba70d6 - view on LGTM.com

new alerts:

  • 4 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable
  • 2 for Assignment to constant

@lgtm-com
Copy link

lgtm-com bot commented May 18, 2022

This pull request introduces 10 alerts when merging a177f74 into 1b789bf - view on LGTM.com

new alerts:

  • 5 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable
  • 2 for Assignment to constant

await this.ssmClient
.getParameter({
Name: secretName,
WithDecryption: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be false in this case

WithDecryption: true,
})
.promise();
} catch (err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

to be completely accurate we should check that the error was a "not exists" exception rather than something else

@lgtm-com
Copy link

lgtm-com bot commented May 19, 2022

This pull request introduces 12 alerts when merging 5d0d670 into d9bdcd8 - view on LGTM.com

new alerts:

  • 7 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable
  • 2 for Assignment to constant

@lgtm-com
Copy link

lgtm-com bot commented May 19, 2022

This pull request introduces 12 alerts when merging 603977f into d9bdcd8 - view on LGTM.com

new alerts:

  • 7 for Unused variable, import, function or class
  • 3 for Useless assignment to local variable
  • 2 for Assignment to constant

@jhockett jhockett changed the title fix: move oauth secrets to parameter store feat: move oauth secrets to parameter store May 19, 2022
@jhockett jhockett merged commit 16db2ce into aws-amplify:master May 19, 2022
edwardfoyle added a commit to edwardfoyle/amplify-cli that referenced this pull request May 27, 2022
edwardfoyle added a commit to edwardfoyle/amplify-cli that referenced this pull request May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants