question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add optout option for profile-specific property loading

See original GitHub issue

Type: Feature

Hello,

In one project we are using both the secrets manager and parameter store integrations. This project has 4 Spring profiles. As secrets name and parameter prefix we have a clear nomenclature that does not involve the Spring profiles. However, when the application starts up, spring-cloud-aws will always try to retrieve the properties by suffixing it with each profile, which is not something that we want.

With 4 profiles and two different integrations, that makes 8 requests that could be avoided when starting up the application. We also need to disable the fail-fast option so that the first request does not stop the start-up, but fail-fast is something that we would like to have in order to stop the start-up if the expected properties are no found.

This is basically what happens:

Loading secrets from AWS Secret Manager secret with name: /MyApp/application_dev, optional: true
Unable to load AWS secret from /MyApp/application_dev...

Loading secrets from AWS Secret Manager secret with name: /MyApp/application_awss3, optional: true
Unable to load AWS secret from /MyApp/application_awss3...

...

Loading property from AWS Secret Manager with name: /MyApp/application/, optional: true
Located property source: [BootstrapPropertySource {name='bootstrapProperties-/MyApp/application/'}]

It would be great if there was a way to disable profile-specific property loading, like a configuration property:

aws:
  secretsmanager:
    profile-loading: false
  paramstore:
    profile-loading: false

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MatejNediccommented, Jul 9, 2021

@Larisho we are working on it. Since Bintray has been shut down we are migrating release scripts. This will take some time. @celcius112 this issue can be closed.

0reactions
Larishocommented, Jul 12, 2021

@MatejNedic Let me know if you guys need/want any help. Happy to lend a hand

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Profiles
Spring Boot will automatically load the properties in an application.properties file for all profiles, and the ones in profile-specific ...
Read more >
Config file processing in Spring Boot 2.4
Documents will be loaded in the order that they're defined. Profiles can no longer be activated from profile specific documents. Document Order.
Read more >
Correctly using Spring environment profiles in order to ...
I use Spring environment profiles in order to load my properties and I've recently added more profiles which has made my properties files...
Read more >
Opt-Out Profile Fields
Create an Opt-Out field ; Access the Admin interface. Navigate to Contacts > Profile Fields. ; Click the plus sign to the right...
Read more >
Profile properties reference
There are three ways you can add custom properties to profiles in your account: ... When uploading a list, any column after the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found