Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ include::yaml/credential_store.yaml[]

. Apply the changes.
. Open your {brandname} Server configuration for editing.
. Add a `credential-reference` to your configuration.
. Add a `credential-reference` to your configuration where required.
.. Specify the `credentials` as the name of the `store`.
.. Specify the `alias` attribute as one of the keys defined in your credential secret.
+
Expand Down
13 changes: 9 additions & 4 deletions documentation/asciidoc/topics/xml/alias_credentials_config.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<credential-store>
<credential-reference store="credentials" alias="postgres_cred"/>
</credential-store>

<data-source name="postgres" jndi-name="jdbc/postgres">
<connection-factory driver="org.postgresql.Driver"
username="dbuser"
url="${org.infinispan.server.test.postgres.jdbcUrl}">
<!-- Credential 'postgres_cred' defined in the 'user-secret' Secret is used here as the database password -->
<credential-reference store="credentials" alias="postgres_cred"/>
</connection-factory>
<connection-pool />
</data-source>
Loading