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 enabled flag to Secrets Manager integration. #1009

Merged
merged 5 commits into from
Jan 8, 2024
Merged

Conversation

maciejwalkowiak
Copy link
Contributor

Fixes #1005

@github-actions github-actions bot added component: s3 S3 integration related issue component: secrets-manager Secrets Manager integration related issue labels Jan 3, 2024
@maciejwalkowiak maciejwalkowiak changed the title [WIP] Add enabled flag to Secrets Manager integration. Add enabled flag to Secrets Manager integration. Jan 4, 2024
@github-actions github-actions bot added the type: documentation Documentation or Samples related issue label Jan 4, 2024
@maciejwalkowiak
Copy link
Contributor Author

@MatejNedic @tomazfernandes up for a review. Same approach will be used for Parameter Store

@maciejwalkowiak maciejwalkowiak added this to the 3.1.2 milestone Jan 4, 2024
Copy link

sonarcloud bot commented Jan 4, 2024

return new ConfigData(Collections.singletonList(propertySource));
// resource is disabled if secrets manager integration is disabled via
// spring.cloud.aws.secretsmanager.enabled=false
if (resource.isEnabled()) {
Copy link
Member

Choose a reason for hiding this comment

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

I would extract everything under if block in new method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not a fan of private methods. Not critical, merging as it is.

@maciejwalkowiak maciejwalkowiak merged commit f6aabcd into main Jan 8, 2024
5 checks passed
@maciejwalkowiak maciejwalkowiak deleted the gh-824 branch January 8, 2024 15:07
@maciejwalkowiak maciejwalkowiak modified the milestones: 3.1.2, 3.1.1 Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: s3 S3 integration related issue component: secrets-manager Secrets Manager integration related issue type: documentation Documentation or Samples related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add 'enabled' Property for Secret Manager configuration
2 participants