Repository navigation
Support no-new-privileges in docker stack deploy - #7574
Open
lmachineone wants to merge 3 commits into
Open
lmachineone wants to merge 3 commits into
lmachineone wants to merge 3 commits into
Conversation
Apply the Compose security option to the Swarm service spec. Reject enabled settings with older negotiated API versions before changing stack resources. Closes docker#7573. Signed-off-by: Lucas Manchine <lucasperinm@gmail.com>
lmachineone
requested review from
a team,
silvin-lubecki and
thaJeztah
as code owners
December 4, 2026 15:47
Warn about unsupported entries without implying that stack deploy ignored the entire Compose property. Keep option values out of diagnostics. Signed-off-by: Lucas Manchine <lucasperinm@gmail.com>
Signed-off-by: Lucas Manchine <lucasperinm@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7573
Summary
security_optentries forno-new-privilegesinto the Swarm service spec on create and update, alongside any configured credential spec.Validation
go test ./cli/compose/... ./cli/command/stack/...using the repository's module wrapper. The command tests use a fake HTTP transport to check API negotiation and the service create and update payloads.make test-uniton macOS arm64. Two failures reproduced on unchanged upstream commit526f63f14e0855238cd4a63b5a6dfae3fecd1eb8with the same errors:TestContainerExportOutputToFile(GID mismatch) andTestBuilderBroken(exec format error). Both runs had the same package outcomes.Release notes