Skip to content

Commit 102d26b

Browse files
committed
[#2405] Make the Credential store documentation include a working example
1 parent dad4a62 commit 102d26b

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

documentation/asciidoc/topics/proc_securing_custom_configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ include::yaml/credential_store.yaml[]
3535

3636
. Apply the changes.
3737
. Open your {brandname} Server configuration for editing.
38-
. Add a `credential-reference` to your configuration.
38+
. Add a `credential-reference` to your configuration where required.
3939
.. Specify the `credentials` as the name of the `store`.
4040
.. Specify the `alias` attribute as one of the keys defined in your credential secret.
4141
+
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
<credential-store>
2-
<credential-reference store="credentials" alias="postgres_cred"/>
3-
</credential-store>
4-
1+
<data-source name="postgres" jndi-name="jdbc/postgres">
2+
<connection-factory driver="org.postgresql.Driver"
3+
username="dbuser"
4+
url="${org.infinispan.server.test.postgres.jdbcUrl}">
5+
<!-- Credential 'postgres_cred' defined in the 'user-secret' Secret is used here -->
6+
<credential-reference store="credentials" alias="postgres_cred"/>
7+
</connection-factory>
8+
<connection-pool />
9+
</data-source>

0 commit comments

Comments
 (0)