Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ plugin-protos := \
proto/spire/plugin/agent/keymanager/v1/keymanager.proto \
proto/spire/plugin/agent/nodeattestor/v1/nodeattestor.proto \
proto/spire/plugin/agent/svidstore/v1/svidstore.proto \
proto/spire/plugin/agent/serverattestor/v1/serverattestor.proto \
proto/spire/plugin/agent/workloadattestor/v1/workloadattestor.proto \
proto/spire/plugin/server/bundlepublisher/v1/bundlepublisher.proto \
proto/spire/plugin/server/credentialcomposer/v1/credentialcomposer.proto \
Expand Down
348 changes: 348 additions & 0 deletions proto/spire/plugin/agent/serverattestor/v1/serverattestor.pb.go

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

42 changes: 42 additions & 0 deletions proto/spire/plugin/agent/serverattestor/v1/serverattestor.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
syntax = "proto3";
package spire.plugin.agent.serverattestor.v1;
option go_package = "github.com/spiffe/spire-plugin-sdk/proto/spire/plugin/agent/serverattestor/v1;sviserverattestorv1";

import "google/protobuf/timestamp.proto";
import "spire/plugin/types/bundle.proto";

service ServerAttestor {
// Get an up to date Trust Bundle for the initial contact with the server
rpc GetTrustBundle(GetTrustBundleRequest) returns (GetTrustBundleResponse);
}

message GetTrustBundleRequest {
// Information the Attestor may or may not use when determining the best
// trust bundle to use to contact the server

// Hint for which type of action this trust bundle will be used for
Use use_hint = 1;

// Optional server url that is being used with the retrieved bundle
string server_url = 2;

// How many connection attempts to the server have been made so far
int32 connection_attempts = 3;

// When was (re)bootstrapping started
google.protobuf.Timestamp starttime = 4;
}

message GetTrustBundleResponse {
// The trust bundle to use to talk to the server
spire.plugin.types.Bundle bundle = 1;

// Use the insecure bootstrap method
bool insecure_bootstrap = 2;
}

enum Use {
UNSPECIFIED = 0;
BOOTSTRAP = 1;
REBOOTSTRAP = 2;
}
Loading