Do not set staging label when fetching the secret values. (#2359)
* Do not set staging label when fetching the secret values. * Add `ignoreLabel` documentation. * Amend `ignoreLabel` documentation. --------- Co-authored-by: Ondrej Scecina <scecina_ondrej@solarturbines.com>
This commit is contained in:
@@ -915,6 +915,21 @@ Note that if the default label is not set and a request does not define a label,
|
||||
|
||||
Note that if the staging label contains a slash (`/`), then the label in the HTTP URL should instead be specified with the special string `({special-string})` (to avoid ambiguity with other URL paths) the same way <<_git_backend,Git backend's section>> describes it.
|
||||
|
||||
Use `spring.cloud.config.server.aws-secretsmanager.ignore-label` property to ignore the `{label}` parameter of the HTTP resource as well as `spring.cloud.config.server.aws-secretsmanager.default-label` property. The repository will use secrets as if labelled version support is disabled.
|
||||
|
||||
[source,yaml]
|
||||
----
|
||||
spring:
|
||||
profiles:
|
||||
active: aws-secretsmanager
|
||||
cloud:
|
||||
config:
|
||||
server:
|
||||
aws-secretsmanager:
|
||||
region: us-east-1
|
||||
ignore-label: true
|
||||
----
|
||||
|
||||
==== AWS Parameter Store
|
||||
|
||||
When using AWS Parameter Store as a backend, you can share configuration with all applications by placing properties within the `/application` hierarchy.
|
||||
@@ -1158,6 +1173,7 @@ AWS Secrets Manager API credentials are determined using link:https://docs.aws.a
|
||||
[NOTE]
|
||||
====
|
||||
- When no application is specified `application` is the default, and when no profile is specified `default` is used.
|
||||
- Both `label` and `defaultLabel` properties are ignored, when `ignoreLabel` is set to `true`.
|
||||
====
|
||||
|
||||
==== CredHub Backend
|
||||
|
||||
Reference in New Issue
Block a user