2023-11-23 12:27:47 +00:00
|
|
|
[[infinispan-credentials]]
|
2024-04-29 14:47:16 +00:00
|
|
|
. Configure the credential to access the {jdgserver_name} cluster.
|
2023-11-23 12:27:47 +00:00
|
|
|
+
|
2024-04-29 14:47:16 +00:00
|
|
|
{project_name} needs this credential to be able to authenticate with the {jdgserver_name} cluster.
|
2023-11-23 12:27:47 +00:00
|
|
|
The following `identities.yaml` file sets the username and password with admin permissions
|
|
|
|
+
|
2024-03-01 19:28:59 +00:00
|
|
|
[source,yaml,subs="+attributes"]
|
2023-11-23 12:27:47 +00:00
|
|
|
----
|
|
|
|
credentials:
|
|
|
|
- username: developer
|
|
|
|
password: {hr-password}
|
|
|
|
roles:
|
|
|
|
- admin
|
|
|
|
----
|
|
|
|
+
|
|
|
|
The `identities.yaml` could be set in a secret as one of the following:
|
|
|
|
|
|
|
|
* As a Kubernetes Resource:
|
|
|
|
+
|
|
|
|
.Credential Secret
|
|
|
|
[.wrap]
|
|
|
|
[source,yaml]
|
|
|
|
----
|
|
|
|
include::../../examples/generated/ispn-single.yaml[tag=infinispan-credentials]
|
|
|
|
----
|
|
|
|
<1> The `identities.yaml` from the previous example base64 encoded.
|
|
|
|
+
|
|
|
|
* Using the CLI
|
|
|
|
+
|
|
|
|
[source,bash]
|
|
|
|
----
|
|
|
|
kubectl create secret generic connect-secret --from-file=identities.yaml
|
|
|
|
----
|
|
|
|
+
|
2024-04-30 21:45:58 +00:00
|
|
|
Check the {infinispan-operator-docs}#configuring-authentication[Configuring Authentication] documentation for more details.
|