Skip to content

Commit d3fc857

Browse files
authored
Reword secret message and add credential provider caution message.
1 parent 1732bd8 commit d3fc857

File tree

1 file changed

+6
-4
lines changed
  • content/en/docs/concepts/configuration

1 file changed

+6
-4
lines changed

content/en/docs/concepts/configuration/secret.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ for information on referencing service account credentials from within Pods.
684684

685685
### Docker config Secrets
686686

687-
You **MUST** use one of the following `type` values to create a Secret to
688-
store the credentials for accessing a container image registry:
687+
If you are creating a Secret to store credentials for accessing a container image registry,
688+
you must use one of the following `type` values for that Secret:
689689

690690
- `kubernetes.io/dockercfg`
691691
- `kubernetes.io/dockerconfigjson`
@@ -761,10 +761,12 @@ Docker configuration file):
761761
}
762762
```
763763

764-
{{< note >}}
764+
{{< caution >}}
765765
The `auth` value there is base64 encoded; it is obscured but not secret.
766766
Anyone who can read that Secret can learn the registry access bearer token.
767-
{{< /note >}}
767+
768+
It is suggested to use [credential providers](/docs/tasks/administer-cluster/kubelet-credential-provider/) to dynamically and securely provide pull secrets on-demand.
769+
{{< /caution >}}
768770

769771
### Basic authentication Secret
770772

0 commit comments

Comments
 (0)