Skip to content

Commit e443af1

Browse files
Merge branch 'main' into addon-test
2 parents 02a2423 + 9126200 commit e443af1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,18 @@ helm install ... --pod-identity-http-timeout=250ms
347347
```
348348
The timeout value must be a valid Go duration string (e.g. `2s`, `500ms`). The timeout value uses the [AWS SDK default](https://github.com/aws/aws-sdk-go-v2/blob/main/aws/transport/http/client.go#L33) by default.
349349
350+
### Driver Writes Secrets
351+
352+
By default, the AWS provider is responsible for writing secret files to the pods. In order to instead make the Secrets Store CSI Driver perform the file writing, set the `driver-writes-secrets` flag to `true` during the install step.
353+
354+
Helm installation example:
355+
```shell
356+
helm install -n kube-system secrets-provider-aws aws-secrets-manager/secrets-store-csi-driver-provider-aws --set driverWritesSecrets=true
357+
```
358+
359+
**Note:** When `driverWritesSecrets` is enabled, the Secrets Store CSI Driver uses [atomic writer](https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/util/atomic_writer.go) to write the secret files. Atomic writer relies on symlinks to update file content. This means that reading file metadata (such as last updated timestamps) when the secret gets auto-rotated requires following symlinks (e.g., `stat -L` instead of `stat`). Applications that check file timestamps without following symlinks will see stale values. For more information, refer to the [relevant Secrets Store CSI Driver documentation section](https://secrets-store-csi-driver.sigs.k8s.io/known-limitations).
360+
361+
350362
### Security Considerations
351363
352364
The AWS Secrets Manager and Config Provider provides compatibility for legacy applications that access secrets as mounted files in the pod. Security conscious applications should use the native AWS APIs to fetch secrets and optionally cache them in memory rather than storing them in the file system.

0 commit comments

Comments
 (0)