Merge pull request #10784 from shantanoo-desai/v2

fix(secrets): file permission value does not comply with spec
This commit is contained in:
Guillaume Lours 2023-07-10 14:54:16 +02:00 committed by GitHub
commit 29daae3d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func createTar(env string, config types.ServiceSecretConfig) (bytes.Buffer, erro
value := []byte(env)
b := bytes.Buffer{}
tarWriter := tar.NewWriter(&b)
mode := uint32(0o400)
mode := uint32(0o444)
if config.Mode != nil {
mode = *config.Mode
}