Skip to content

AB#115039 Disable the secrets manager as we don't have any secrets in…#210

Merged
sebastianchristopher merged 2 commits intomasterfrom
AB#115039_2
Mar 31, 2026
Merged

AB#115039 Disable the secrets manager as we don't have any secrets in…#210
sebastianchristopher merged 2 commits intomasterfrom
AB#115039_2

Conversation

@sebastianchristopher
Copy link
Copy Markdown
Contributor

… AWS when testing.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts Spring configuration so AWS Secrets Manager integration is disabled by default (helpful for local/test runs without AWS secrets) and only enabled when the aws profile is active, aligning key-loading behavior with the same profile boundary.

Changes:

  • Disable AWS Secrets Manager by default in application.properties.
  • Re-enable AWS Secrets Manager in the aws Spring profile via application-aws.properties.
  • Switch KeyPairLoadingService implementations to use aws / !aws profiles (instead of local / !local).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/main/resources/application.properties Disables Secrets Manager by default for non-AWS runs.
src/main/resources/application-aws.properties Enables Secrets Manager when the aws profile is active.
src/main/java/uk/ac/ox/ctl/ltiauth/LocalKeyPairLoadingService.java Activates local key loading for all non-aws profiles.
src/main/java/uk/ac/ox/ctl/ltiauth/AwsKeyPairLoadingService.java Restricts AWS Secrets Manager key loading to the aws profile.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@buckett buckett left a comment

Choose a reason for hiding this comment

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

Looks good, I think you can also remove the disabling of the secrets manager from the test application properties as it's in the default now.

…pplication properties as it's in the default now.
@sebastianchristopher sebastianchristopher merged commit 02a7811 into master Mar 31, 2026
3 checks passed
@sebastianchristopher sebastianchristopher deleted the AB#115039_2 branch March 31, 2026 08:14
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