此内容没有您所选择的语言版本。

Chapter 7. Configuring Authentication


Application users must authenticate with Data Grid clusters. Data Grid Operator generates default credentials or you can add your own.

7.1. Default Credentials

Data Grid Operator generates base64-encoded default credentials stored in an authentication secret named example-rhdatagrid-generated-secret

Expand
UsernameDescription

developer

Default application user.

operator

Internal user that interacts with Data Grid clusters.

7.2. Retrieving Credentials

Get credentials from authentication secrets to access Data Grid clusters.

Procedure

  • Retrieve credentials from authentication secrets, as in the following example:

    $ oc get secret example-rhdatagrid-generated-secret
    Copy to Clipboard Toggle word wrap

    Base64-decode credentials.

    $ oc get secret example-rhdatagrid-generated-secret \
    -o jsonpath="{.data.identities\.yaml}" | base64 --decode
    
    credentials:
    - username: developer
      password: dIRs5cAAsHIeeRIL
    - username: operator
      password: uMBo9CmEdEduYk24
    Copy to Clipboard Toggle word wrap

7.3. Adding Custom Credentials

Add custom credentials to an authentication secret.

Procedure

  1. Create an identities.yaml file that contains credentials for application users and the operator user for Data Grid Operator, for example:

    credentials:
    - username: testuser
      password: testpassword
    - username: operator
      password: supersecretoperatorpassword
    Copy to Clipboard Toggle word wrap
  2. Create an authentication secret with identities.yaml as follows:

    $ oc create secret generic --from-file=identities.yaml connect-secret
    Copy to Clipboard Toggle word wrap
  3. Specify the authentication secret with spec.security.endpointSecretName in your Infinispan CR and then apply the changes.

    spec:
      ...
      security:
        endpointSecretName: connect-secret 
    1
    Copy to Clipboard Toggle word wrap
    1
    specifies the authentication secret.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat