Skip to content

svid.v1 client: add support for building WIT-SVIDs#7132

Open
sorindumitru wants to merge 3 commits into
spiffe:mainfrom
sorindumitru:wit-client
Open

svid.v1 client: add support for building WIT-SVIDs#7132
sorindumitru wants to merge 3 commits into
spiffe:mainfrom
sorindumitru:wit-client

Conversation

@sorindumitru

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Copilot AI review requested due to automatic review settings July 9, 2026 08:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds client-side support in the SPIRE Agent for minting WIT-SVIDs via the svid.v1 server API, including a new client method and accompanying unit tests.

Changes:

  • Introduces a WITSVID result type and adds NewWITSVIDs() to the agent client interface.
  • Implements batched WIT-SVID minting via BatchNewWITSVID, including per-result status handling and conversion to time.Time.
  • Adds unit test coverage and a fake SVID server implementation for BatchNewWITSVID.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pkg/agent/client/client.go Adds WITSVID, client interface method, and the batch RPC plumbing to mint WIT-SVIDs.
pkg/agent/client/client_test.go Adds tests and fake server support for the new WIT-SVID batch minting client method.

Comment on lines +422 to +425
pkixPublicKey, err := x509.MarshalPKIXPublicKey(publicKey)
if err != nil {
return nil, err
}
Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
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.

3 participants