Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce local authority api #37

Merged
merged 11 commits into from
May 2, 2023
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ apiprotos := \
proto/spire/api/server/bundle/v1/bundle.proto \
proto/spire/api/server/debug/v1/debug.proto \
proto/spire/api/server/entry/v1/entry.proto \
proto/spire/api/server/localauthority/v1/localauthority.proto \
proto/spire/api/server/trustdomain/v1/trustdomain.proto \
proto/spire/api/server/svid/v1/svid.proto \

Expand Down
323 changes: 225 additions & 98 deletions proto/spire/api/server/agent/v1/agent.pb.go

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions proto/spire/api/server/agent/v1/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ service Agent {
//
// The caller must be local or present an admin X509-SVID.
rpc CreateJoinToken(CreateJoinTokenRequest) returns (spire.api.types.JoinToken);

// PostStatus post Agent status, informing what's the current
// bundle that is being used by the agent.
//
// The caller must present an active agent X509-SVID, i.e. the X509-SVID
// returned by the AttestAgent or the most recent RenewAgent call.
rpc PostStatus(PostStatusRequest) returns (PostStatusResponse);
}

message CountAgentsRequest {
Expand Down Expand Up @@ -193,3 +200,11 @@ message AgentX509SVIDParams {
// ignored. The agent X509-SVID attributes are determined by the server.
bytes csr = 1;
}

message PostStatusRequest {
// Required. Serial number of the bundle currently being served by the agent
uint64 current_bundle_serial = 1;
}

message PostStatusResponse {
}
46 changes: 46 additions & 0 deletions proto/spire/api/server/agent/v1/agent_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading