Skip to content

Commit

Permalink
Merge pull request #33635 from radcortez/fix-32330
Browse files Browse the repository at this point in the history
Improve Secret Keys Expressions documentation
  • Loading branch information
gsmet authored Jun 20, 2023
2 parents 4bb3b2b + 2fd4663 commit 4b07cda
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/src/main/asciidoc/config-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,9 @@ A secret configuration may be expressed as `${handler::value}`, where the `handl
[source,properties]
----
my.secret=${aes-gcm-nopadding::DJNrZ6LfpupFv6QbXyXhvzD8eVDnDa_kTliQBpuzTobDZxlg}
# the encryption key required to decode the secret. It can be set in any source.
smallrye.config.secret-handler.aes-gcm-nopadding.encryption-key=somearbitrarycrazystringthatdoesnotmatter
----

A lookup to `my.secret` will use the `SecretKeysHandler` name `aes-gcm-nopadding` to decode the value
Expand All @@ -540,6 +543,12 @@ A lookup to `my.secret` will use the `SecretKeysHandler` name `aes-gcm-nopadding
For more information, please check SmallRye Config
link:https://smallrye.io/smallrye-config/Main/config/secret-keys/[Secret Keys] documentation.

[WARNING]
====
SmallRye Config may provide handlers not fully supported by Quarkus. Currently, only `smallrye-config-crypto` is
supported.
====

== Accessing a generating UUID

The default config source from Quarkus provides a random UUID value.
Expand Down

0 comments on commit 4b07cda

Please sign in to comment.