Skip to content

docs(authz): clarify daemon parsing semantics#7086

Open
mickael-docker wants to merge 2 commits into
docker:masterfrom
mickael-docker:docs-authz-decoding
Open

docs(authz): clarify daemon parsing semantics#7086
mickael-docker wants to merge 2 commits into
docker:masterfrom
mickael-docker:docs-authz-decoding

Conversation

@mickael-docker

Copy link
Copy Markdown
Contributor

- What I did

Clarify the daemon decoding semantics for access authorization plugins

Signed-off-by: mickael emirkanian <mickael.emirkanian@docker.com>
@mickael-docker mickael-docker requested review from a team and thaJeztah as code owners July 7, 2026 18:58
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@vvoland vvoland added this to the 29.7.0 milestone Jul 8, 2026
Comment thread docs/extend/plugins_authorization.md Outdated
Comment on lines +101 to +102
> the request. The daemon decodes JSON **case-insensitively**, **last-one-wins**,
> and does not reject duplicate or case-variant keys.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also include https://pkg.go.dev/encoding/json#Unmarshal here as the exact implementation

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, perhaps a good idea to refer to Go; potentially we can simplify the wording that plugin authors should use the same semantics as the daemon, which uses Go's json package?

vvoland
vvoland previously approved these changes Jul 8, 2026
Comment thread docs/extend/plugins_authorization.md Outdated
Comment on lines +101 to +102
> the request. The daemon decodes JSON **case-insensitively**, **last-one-wins**,
> and does not reject duplicate or case-variant keys.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, perhaps a good idea to refer to Go; potentially we can simplify the wording that plugin authors should use the same semantics as the daemon, which uses Go's json package?

Comment thread docs/extend/plugins_authorization.md Outdated
Comment on lines 120 to 128

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we should put the additional information somewhere in this section (which looks to be focussed on "how to process request bodies"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the other section into the new one as it seemed better to me to have it in a higher-level section, but happy to move the new section into the existing one if you prefer.

Signed-off-by: mickael emirkanian <mickael.emirkanian@docker.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants