Skip to content

Commit 29daae3

Browse files
authored
Merge pull request docker#10784 from shantanoo-desai/v2
fix(secrets): file permission value does not comply with spec
2 parents bc6ad2e + fd0e0a2 commit 29daae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func createTar(env string, config types.ServiceSecretConfig) (bytes.Buffer, erro
5858
value := []byte(env)
5959
b := bytes.Buffer{}
6060
tarWriter := tar.NewWriter(&b)
61-
mode := uint32(0o400)
61+
mode := uint32(0o444)
6262
if config.Mode != nil {
6363
mode = *config.Mode
6464
}

0 commit comments

Comments
 (0)