Compose secrets does not set the correct mode #49404
Labels
area/cli
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
version/27.5
Description
When using the long format secret in a docker-compose file with environment secret, the secret has the right ownership but not the right mode.
Reproduce
Create the following docker-compose.yml
Then run
Expected behavior
The
api_secret
file should have permission0440
instead of the actual0674
.docker version
Client: Docker Engine - Community Version: 27.5.1 API version: 1.47 Go version: go1.22.11 Git commit: 9f9e405 Built: Wed Jan 22 13:41:48 2025 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 27.5.1 API version: 1.47 (minimum version 1.24) Go version: go1.22.11 Git commit: 4c9b3b0 Built: Wed Jan 22 13:41:48 2025 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.25 GitCommit: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb runc: Version: 1.2.4 GitCommit: v1.2.4-0-g6c52b3f docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: