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

Add credentials that allow accessing state for external stack #893

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

jameshochadel
Copy link
Contributor

Changes proposed in this pull request:

  • Access to external state is required to pull credentials for broker user in commercial account

security considerations

Stores values in secret store and marks sensitive values as such.

@jameshochadel jameshochadel requested a review from a team as a code owner September 18, 2024 13:50
Comment on lines +20 to +22
access_key = var.external_remote_state_reader_access_key_id
secret_key = var.external_remote_state_reader_secret_access_key
region = var.csb_aws_region_commercial
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need these keys now if we didn't need them previously to read this remote state?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are two reasons:

  1. Based on my searches of cg-provision, we don't currently access remote state from the external stack anywhere. Since this is the first time we're doing it, I needed to devise a method.
  2. The state from the GovCloud partition is read without providing credentials — link for posterity — but we need explicit credentials to access to Commercial state.

Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't realize that this block was new as of ca8eff9. Makes sense now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yep, sorry about that! This was missing & without it that commit doesn't work.

@jameshochadel jameshochadel merged commit 680d36d into main Sep 18, 2024
1 check passed
@jameshochadel jameshochadel deleted the access-external-state branch September 18, 2024 16:33
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