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

fix: store secrets on disk when partial arn is used #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

saranyailla
Copy link
Member

Issue #, if available:

Description of changes:
In 2.2.0 and 2.2.1 of secret manager, downloaded secret arns are compared with the exact arn provided in the component configuration before writing them to the disk. This breaks the support for partial arn because the downloaded secret arn is complete and doesn't match the partial arn from config.

This fix checks if the downloaded secret arn contains the arn from the config instead of checking for exact match.

Why is this change necessary:
Fix the bug introduced in 2.2.0 and 2.2.1 versions of secrets manager.

How was this change tested:

Any additional information or context required to review the change:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

github-actions bot commented Nov 27, 2024

Unit Tests Coverage Report

File Coverage Lines Branches
All files 91% 92% 90%

Minimum allowed coverage is 65%

Generated by 🐒 cobertura-action against 42ea983

alter-mage
alter-mage previously approved these changes 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.

3 participants