mirror of https://github.com/docker/compose.git
Merge pull request #10784 from shantanoo-desai/v2
fix(secrets): file permission value does not comply with spec
This commit is contained in:
commit
29daae3d6e
|
@ -58,7 +58,7 @@ func createTar(env string, config types.ServiceSecretConfig) (bytes.Buffer, erro
|
||||||
value := []byte(env)
|
value := []byte(env)
|
||||||
b := bytes.Buffer{}
|
b := bytes.Buffer{}
|
||||||
tarWriter := tar.NewWriter(&b)
|
tarWriter := tar.NewWriter(&b)
|
||||||
mode := uint32(0o400)
|
mode := uint32(0o444)
|
||||||
if config.Mode != nil {
|
if config.Mode != nil {
|
||||||
mode = *config.Mode
|
mode = *config.Mode
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue