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

Get OCP credentials from AWS during RHEL release [5.3.z] #831

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

JackPGreen
Copy link
Collaborator

Backport of #812

Currently, credentials are duplicated between:

  • AWS Secrets Manager
  • GitHub Secrets

In the past this has lead to build failures when credentials were updated in only one place.

This PR updates any credentials which are duplicated, migrating them to use the value directly from AWS Secrets Manager. The methodology on this logic is described here.

I'm confident from my testing the values will resolve correctly, but as the job is triggered on tag, I am unable to test in a non-destructive way.

I've also rescoped secrets.HZ_ENTERPRISE_LICENSE to reduce the cognitive complexity of looking through the actions' environment secrets.

Fixes: DI-78

Currently, credentials are duplicated between:
- AWS Secrets Manager
- GitHub Secrets

In the past this has lead to build failures when credentials were
updated in only one place.

This PR updates any credentials which are duplicated, migrating them to
use the value directly from AWS Secrets Manager. The methodology on this
logic is described
[here](https://hazelcast.atlassian.net/browse/DI-78?focusedCommentId=104219).

I'm confident [from my
testing](https://hazelcast.atlassian.net/browse/DI-78?focusedCommentId=104219)
the values will resolve correctly, but as the job is triggered on `tag`,
I am unable to test in a non-destructive way.

I've also rescoped `secrets.HZ_ENTERPRISE_LICENSE` to reduce the
cognitive complexity of looking through the actions' environment
secrets.

Fixes: [DI-78](https://hazelcast.atlassian.net/browse/DI-78)

[DI-78]:
https://hazelcast.atlassian.net/browse/DI-78?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@JackPGreen JackPGreen added the github_actions Pull requests that update Github_actions code label Nov 21, 2024
@JackPGreen JackPGreen self-assigned this Nov 21, 2024
@JackPGreen JackPGreen merged commit 0803fec into 5.3.z Nov 21, 2024
6 of 8 checks passed
@JackPGreen JackPGreen deleted the backport-pr-812-5.3.z branch November 21, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update Github_actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants