fix(secrets): file permission value does not comply with spec

closes #10783

Compose Spec mentions that default values for secrets is `0444` aka. world-readable permissions. However, the value was previously set to `0400`. 


Signed-off-by: Shan Desai <shantanoo.desai@gmail.com>
This commit is contained in:
Shan Desai 2023-07-07 18:58:21 +02:00 committed by GitHub
parent e90df62bb0
commit fd0e0a2cbd
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
}