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

normalizing secrets #2368

Merged
merged 3 commits into from
Nov 27, 2024
Merged

normalizing secrets #2368

merged 3 commits into from
Nov 27, 2024

Conversation

ben851
Copy link
Contributor

@ben851 ben851 commented Nov 27, 2024

Summary | Résumé

GHA Secrets configured to reflect TF changes

Related Issues | Cartes liées

Test instructions | Instructions pour tester la modification

Once the TF secrets PR has been merged, verify that the workflows all still work.

Release Instructions | Instructions pour le déploiement

None.

Reviewer checklist | Liste de vérification du réviseur

  • This PR does not break existing functionality.
  • This PR does not violate GCNotify's privacy policies.
  • This PR does not raise new security concerns. Refer to our GC Notify Risk Register document on our Google drive.
  • This PR does not significantly alter performance.
  • Additional required documentation resulting of these changes is covered (such as the README, setup instructions, a related ADR or the technical documentation).

⚠ If boxes cannot be checked off before merging the PR, they should be moved to the "Release Instructions" section with appropriate steps required to verify before release. For example, changes to celery code may require tests on staging to verify that performance has not been affected.


steps:
- name: Configure credentials to Notify account using OIDC
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
with:
role-to-assume: arn:aws:iam::${{ secrets.PRODUCTION_API_LAMBDA_ECR_ACCOUNT }}:role/notification-api-apply
role-to-assume: arn:aws:iam::${{ secrets.PRODUCTION_ACCOUNT_ID }}:role/notification-api-apply
Copy link
Member

Choose a reason for hiding this comment

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

This is an AWS account ID, right? is the new one a global one or specific to ECR? Can the var name be more descriptive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's an AWS account ID, and it's just the corresponding environment AWS Account ID... I've been keeping it consistent across all of the other repos I've done (they've all been named ENVIRONMENT_ACCOUNT_ID) - I can change this to PRODUCTION_AWS_ACCOUNT_ID but then I should go back and change all of the others. What do you think?

@@ -7,7 +7,7 @@ on:
branches: [main]

env:
REGISTRY: ${{ secrets.PRODUCTION_API_LAMBDA_ECR_ACCOUNT }}.dkr.ecr.ca-central-1.amazonaws.com/notify
REGISTRY: ${{ secrets.PRODUCTION_ACCOUNT_ID }}.dkr.ecr.ca-central-1.amazonaws.com/notify
Copy link
Member

Choose a reason for hiding this comment

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

Same question here..

@@ -7,7 +7,7 @@ on:
branches: [main]

env:
REGISTRY: ${{ secrets.STAGING_API_LAMBDA_ECR_ACCOUNT }}.dkr.ecr.ca-central-1.amazonaws.com/notify
REGISTRY: ${{ secrets.STAGING_ACCOUNT_ID }}.dkr.ecr.ca-central-1.amazonaws.com/notify
Copy link
Member

Choose a reason for hiding this comment

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

and for the staging env

@ben851 ben851 merged commit d9233d7 into main Nov 27, 2024
5 checks passed
@ben851 ben851 deleted the api-gh-secrets branch November 27, 2024 20:45
ben851 added a commit that referenced this pull request Nov 27, 2024
ben851 added a commit that referenced this pull request Nov 27, 2024
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.

2 participants