-
Notifications
You must be signed in to change notification settings - Fork 14
Use default credential chain for AWS creds #6166
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
base: main
Are you sure you want to change the base?
Conversation
|
Heroku app: https://gyr-review-app-6166-4ead306714ea.herokuapp.com/ |
| HEROKU_DNS_AWS_ACCESS_KEY_ID=${{ secrets.HEROKU_DNS_AWS_ACCESS_KEY_ID }} \ | ||
| HEROKU_DNS_SECRET_ACCESS_KEY=${{ secrets.HEROKU_DNS_SECRET_ACCESS_KEY }} \ | ||
| HEROKU_PLATFORM_KEY=${{ secrets.HEROKU_PLATFORM_KEY }} | ||
| HEROKU_PLATFORM_KEY=${{ secrets.HEROKU_PLATFORM_KEY }} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setup our AWS creds in our heroku apps via github secrets
|
|
||
| def download_schemas_from_s3(dest_dir) | ||
| s3_client = Aws::S3::Client.new(region: REGION, credentials: s3_credentials) | ||
| s3_client = Aws::S3::Client.new(region: REGION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using default chain instead of digging up creds in some places and finding them in the env variables in others. now it will always be in the app's env variables except locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see differences via:
bin/gyr credentials_diff --base main --environment demo
| let!(:first_breached_client) { | ||
| create :client, flagged_at: Time.now, vita_partner: vita_partner, | ||
| last_outgoing_communication_at: 7.business_days.ago, | ||
| create :client, flagged_at: time, vita_partner: vita_partner, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flakey test that was failing Friday after working hours
mpidcock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love to see this, looks great
Link to pivotal/JIRA issue
Is PM acceptance required? (delete one)
Reminder: merge main into this branch and get green tests before merging to main
What was done?
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYin the app's environment/config variables when creating a AWS::S3::Client automatically, before this change we had different approaches for different environments. We called the credentials from our creds file in demo/staging/prod but got them from our env variables in CircleCI. This change will unify our approach so that we just grab them from our env variables in all env except locally where we will have to sso into a profileaws sso login --profile gyr-non-prodHow to test?