Credentials are typed (machine, age), write-only through the API and sealed to the age identity in the bootstrap config. A field holds a value or names a secret engine key; connectors and engines are accepted with credential slots that resolve into their Configure secrets. The secret engine contract gains secrets so an engine can receive its own key.
26 lines
1022 B
Protocol Buffer
26 lines
1022 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package secretengine.v1;
|
|
|
|
// SecretEngineService is the surface a secret-engine extension serves. The
|
|
// host launches one plugin process per enabled engine and resolves every
|
|
// SecretRef naming that engine through it.
|
|
service SecretEngineService {
|
|
// Configure hands the engine its settings once, right after launch and
|
|
// before any Resolve. It is the only channel for configuration: the plugin
|
|
// process does not inherit the host environment.
|
|
rpc Configure(ConfigureRequest) returns (ConfigureResponse);
|
|
// Resolve returns the value for key. An unknown key is NOT_FOUND.
|
|
rpc Resolve(ResolveRequest) returns (ResolveResponse);
|
|
}
|
|
|
|
message ConfigureRequest {
|
|
map<string, string> settings = 1;
|
|
// secrets are the engine's own credentials, such as the key that decrypts
|
|
// its store, resolved from the host's sealed credentials.
|
|
map<string, string> secrets = 2;
|
|
}
|
|
message ConfigureResponse {}
|
|
message ResolveRequest { string key = 1; }
|
|
message ResolveResponse { string value = 1; }
|