Files
truecharts/charts/library/common/docs/credentials.md
T
Kjeld Schouten 899cfb71b3 add common docs
2025-10-15 15:11:59 +02:00

9.0 KiB

title
title
credentials

:::note

  • Examples under each key are only to be used as a placement guide
  • See the Full Examples section for complete examples.

:::

Appears in

  • .Values.credentials

Naming scheme

  • $FullName-$credentialsName (release-name-chart-name-credentials-name)

:::tip

  • Replace references to $name with the actual name you want to use.

:::


credentials

Create credentials objects

Key credentials
Type map
Required
Helm tpl
Default {}

Example

credentials: {}

$name

Define credentials

Key credentials.$name
Type map
Required
Helm tpl
Default {}

Example

credentials:
  credentials-name: {}

type

Define the type of the credentials

Key credentials.$name.type
Type string
Required
Helm tpl
Example s3
credentials:
  credentials-name:
    type: s3

url

Define the url of the credentials

:::tip

In some cases, such as when using an IP instead of a hostname, it might be necessary to manually specify the connection's region.

:::

Key credentials.$name.url
Type string
Required
Helm tpl
Example https://mys3server.com
credentials:
  credentials-name:
    url: "https://mys3server.com"

region

Override the region to use when connecting to the endpoint

:::note

Setting this manually is usually not necessary as the region should normally be automatically detected from the URL.

:::

Key credentials.$name.region
Type string
Required
Helm tpl
Example ""
credentials:
  credentials-name:
    region: "us-east-1"

customCASecretRef

Reference a secret containing a custom CA to be used when connecting to the endpoint defined by url over HTTPS.

:::note

Defining both this and customCA is invalid and will result in an error.

:::

Key credentials.$name.customCASecretRef
Type map
Required
Helm tpl
Example {}
credentials:
  credentials-name:
    customCASecretRef: {}

customCASecretRef.name

Define the secret name

:::note

This will be automatically expanded to fullname-secret-name. You can opt out of this by setting expandObjectName to false

:::

Key credentials.$name.customCASecretRef.name
Type string
Required
Helm tpl
Example ""
credentials:
  credentials-name:
    customCASecretRef:
      name: secret-name

customCASecretRef.key

Define the key in the secret data containing the CA

Key credentials.$name.customCASecretRef.key
Type string
Required
Helm tpl
Example ""
credentials:
  credentials-name:
    customCASecretRef:
      key: ca.crt

customCASecretRef.expandObjectName

Whether to expand (adding the fullname as prefix) the secret name

Key credentials.$name.customCASecretRef.expandObjectName
Type bool
Required
Helm tpl
Example true
credentials:
  credentials-name:
    customCASecretRef:
      expandObjectName: false

customCA

Define a custom CA certificate to be used when connecting to the endpoint defined by url over HTTPS.

:::note

Defining both this and customCASecretRef is invalid and will result in an error.

:::

Key credentials.$name.customCA
Type string
Required
Helm tpl
Example -----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----
credentials:
  credentials-name:
    customCA: |-
      -----BEGIN CERTIFICATE-----
      ...
      -----END CERTIFICATE-----

path

Define the optional path-override of the credentials

Key credentials.$name.path
Type string
Required
Helm tpl
Example /somecustompath
credentials:
  credentials-name:
    path: "/somecustompath"

bucket

Define the bucket of the credentials

Key credentials.$name.bucket
Type string
Required
Helm tpl
Example mybucket
credentials:
  credentials-name:
    bucket: mybucket

accessKey

Define the accessKey of the credentials

Key credentials.$name.accessKey
Type string
Required
Helm tpl
Example mysecretaccesskey
credentials:
  credentials-name:
    accessKey: myaccesskeyid

secretKey

Define the secretKey of the credentials

Key credentials.$name.secretKey
Type string
Required
Helm tpl
Example mysecretkey
credentials:
  credentials-name:
    secretKey: mysecretkey

encrKey

Define the encryption key of the credentials

Key credentials.$name.encrKey
Type string
Required
Helm tpl
Example myencryptionkey
credentials:
  credentials-name:
    encrKey: myencryptionkey

Full Examples

credentials:
  mys3:
    type: s3
    url: "https://mys3server.com"
    bucket: "mybucket"
    accessKey: "mysecretaccesskey"
    secretKey: "mysecretkey"
    encrKey: "myencryptionkey"