Skip to content

feat(plugin): add trusted certificate operations to Authorize - #769

Open
joe0BAB wants to merge 1 commit into
mainfrom
feat/plugin-trusted-certificate-operations
Open

joe0BAB wants to merge 1 commit into
mainfrom
feat/plugin-trusted-certificate-operations

Conversation

@joe0BAB

@joe0BAB joe0BAB commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

AuthorizeRequest gains two operations, add_trusted_certificate and delete_trusted_certificate, so that an access control plugin can decide a change to the engine's list of trusted certificates. Each mirrors the engine RPC it authorizes: the oneof certificate holds what to trust or to remove per host OS, with the arms darwin and darwin_ad_hoc_binary. Windows and Linux have no arm yet.

The messages carry what a person needs to approve the change. A certificate is described by DarwinSigningCertificate: its SHA-256 fingerprint, the subject's common name, organization and organizational unit, and its expiry. An add lists the applications to trust, each with the patterns of the secrets it may get. A delete lists the identifiers of the applications to remove, or none to remove the certificate. A binary signed ad hoc is named by its code directory hash and its identifier. Hashes are hex strings, as in SigningIdentity.

The handler does not decode the new operations yet and still rejects them as "missing or unsupported operation".

AuthorizeRequest gains two operations, add_trusted_certificate and
delete_trusted_certificate, so that an access control plugin can decide
a change to the engine's list of trusted certificates. Each mirrors the
engine RPC it authorizes: the oneof certificate holds what to trust or
to remove per host OS, with the arms darwin and darwin_ad_hoc_binary.
Windows and Linux have no arm yet.

The messages carry what a person needs to approve the change. A
certificate is described by DarwinSigningCertificate: its SHA-256
fingerprint, the subject's common name, organization and organizational
unit, and its expiry. An add lists the applications to trust, each with
the patterns of the secrets it may get. A delete lists the identifiers
of the applications to remove, or none to remove the certificate. A
binary signed ad hoc is named by its code directory hash and its
identifier. Hashes are hex strings, as in SigningIdentity.

The handler does not decode the new operations yet and still rejects
them as "missing or unsupported operation".

Signed-off-by: Johannes Großmann <grossmann.johannes@t-online.de>
@joe0BAB
joe0BAB marked this pull request as ready for review December 6, 2026 12:49
@joe0BAB
joe0BAB requested a review from a team as a code owner December 6, 2026 12:49

@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

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.

2 participants