Add credential and libraries to session recording resource (#3374)
This commit is contained in:
20 files changed
+2055
-150
No files matched your search
@@ -218,6 +218,162 @@ message SshTargetAttributes {
|
||||
uint32 default_client_port = 2 [json_name = "default_client_port"]; // @gotags: class:"public"
|
||||
}
|
||||
|
||||
// CredentialStore contains all fields related to a Credential Store resource
|
||||
message CredentialStore {
|
||||
// The ID of the Credential Store.
|
||||
string id = 1; // @gotags: class:"public"
|
||||
|
||||
// The ID of the Scope of which this Credential Store is a part.
|
||||
string scope_id = 2 [json_name = "scope_id"]; // @gotags: class:"public"
|
||||
|
||||
// The name for identification purposes if set.
|
||||
string name = 3; // @gotags: class:"public"
|
||||
|
||||
// The description for identification purposes if set.
|
||||
string description = 4; // @gotags: class:"public"
|
||||
|
||||
// The Credential Store type.
|
||||
string type = 5; // @gotags: class:"public"
|
||||
|
||||
oneof attrs {
|
||||
// The attributes that are applicable for the specific Credential Store type.
|
||||
google.protobuf.Struct attributes = 6;
|
||||
}
|
||||
}
|
||||
|
||||
// The attributes of a vault typed Credential Store.
|
||||
message VaultCredentialStoreAttributes {
|
||||
// The complete url address of vault.
|
||||
string address = 1; // @gotags: class:"public"
|
||||
|
||||
// The namespace of vault used by this store
|
||||
string namespace = 2; // @gotags: class:"public"
|
||||
|
||||
// The value to use as the SNI host when connecting to vault via TLS.
|
||||
string tls_server_name = 3 [json_name = "tls_server_name"]; // @gotags: class:"public"
|
||||
|
||||
// Indicates if verification of the TLS certificate is disabled.
|
||||
bool tls_skip_verify = 4 [json_name = "tls_skip_verify"]; // @gotags: class:"public"
|
||||
|
||||
// Filters to the worker(s) who can handle Vault requests for this cred store if set.
|
||||
string worker_filter = 5 [json_name = "worker_filter"]; // @gotags: class:"public"
|
||||
}
|
||||
|
||||
// Credential contains fields related to an Credential resource
|
||||
message Credential {
|
||||
// The ID of the Credential.
|
||||
string id = 1; // @gotags: class:"public"
|
||||
|
||||
// The Credential Store of which this Credential is a part.
|
||||
CredentialStore credential_store = 2 [json_name = "credential_store"]; // @gotags: class:"public"
|
||||
|
||||
// The name of the credential.
|
||||
string name = 3; // @gotags: class:"public"
|
||||
|
||||
// Optional user-set description.
|
||||
string description = 4; // @gotags: class:"public"
|
||||
|
||||
// The purposes for which this Credential was attached to the sesssion.
|
||||
repeated string purposes = 5;
|
||||
|
||||
// The Credential type.
|
||||
string type = 6; // @gotags: class:"public"
|
||||
|
||||
oneof attrs {
|
||||
// The attributes that are applicable for the specific Credential type.
|
||||
google.protobuf.Struct attributes = 7;
|
||||
}
|
||||
}
|
||||
|
||||
// The attributes of a UsernamePassword Credential.
|
||||
message UsernamePasswordCredentialAttributes {
|
||||
// The username associated with the credential.
|
||||
string username = 1; // @gotags: class:"public"
|
||||
|
||||
// The hmac value of the password.
|
||||
string password_hmac = 2; // @gotags: class:"public"
|
||||
}
|
||||
|
||||
// The attributes of a SshPrivateKey Credential.
|
||||
message SshPrivateKeyCredentialAttributes {
|
||||
// The username associated with the credential.
|
||||
string username = 1; // @gotags: class:"public"
|
||||
|
||||
// The hmac value of the SSH private key.
|
||||
string private_key_hmac = 2; // @gotags: class:"public"
|
||||
|
||||
// The hmac value of the SSH private key passphrase.
|
||||
string private_key_passphrase_hmac = 3; // @gotags: class:"public"
|
||||
}
|
||||
|
||||
// The attributes of a JSON Credential.
|
||||
message JsonCredentialAttributes {
|
||||
// The hmac value of the object.
|
||||
string object_hmac = 1; // @gotags: class:"public"
|
||||
}
|
||||
|
||||
// CredentialLibrary contains all fields related to an Credential Library resource
|
||||
message CredentialLibrary {
|
||||
// The ID of the Credential Library.
|
||||
string id = 1; // @gotags: class:"public"
|
||||
|
||||
// The credential store of which this library is a part.
|
||||
CredentialStore credential_store = 2 [json_name = "credential_store"]; // @gotags: class:"public"
|
||||
|
||||
// Optional name of this Credential Library.
|
||||
string name = 3; // @gotags: class:"public"
|
||||
|
||||
// Optional user-set description of this Credential Library.
|
||||
string description = 4; // @gotags: class:"public"
|
||||
|
||||
// The purposes for which this CredentialLibrary was attached to the sesssion.
|
||||
repeated string purposes = 5;
|
||||
|
||||
// The Credential Library type.
|
||||
string type = 6; // @gotags: class:"public"
|
||||
|
||||
oneof attrs {
|
||||
// The attributes that are applicable for the specific Credential Library type.
|
||||
google.protobuf.Struct attributes = 7;
|
||||
}
|
||||
}
|
||||
|
||||
// The attributes of a vault typed Credential Library.
|
||||
message VaultCredentialLibraryAttributes {
|
||||
// The path in Vault to request credentials from.
|
||||
string path = 1; // @gotags: class:"public"
|
||||
|
||||
// The HTTP method the library uses to communicate with Vault.
|
||||
string http_method = 2; // @gotags: class:"public"
|
||||
|
||||
// The body of the HTTP request the library sends to vault.
|
||||
string http_request_body = 3; // @gotags: `class:"secret"`
|
||||
}
|
||||
|
||||
// The attributes of a vault SSH Certificate Credential Library.
|
||||
message VaultSSHCertificateCredentialLibraryAttributes {
|
||||
// The path in Vault to request credentials from.
|
||||
string path = 1; // @gotags: class:"public"
|
||||
|
||||
// The username used when making an SSH connection.
|
||||
string username = 2; // @gotags: `class:"sensitive"`
|
||||
|
||||
// The key type to use when generating an SSH private key.
|
||||
string key_type = 3; // @gotags: class:"public"
|
||||
|
||||
// The number of bits to use to generate an SSH private key.
|
||||
uint32 key_bits = 4; // @gotags: class:"public"
|
||||
|
||||
// The requested time to live for the certificate.
|
||||
string ttl = 5; // @gotags: class:"public"
|
||||
|
||||
// The critical options that the certificate should be signed for.
|
||||
map<string, string> critical_options = 6; // @gotags: class:"public"
|
||||
|
||||
// The extensions that the certificate should be signed for.
|
||||
map<string, string> extensions = 7; // @gotags: class:"public"
|
||||
}
|
||||
|
||||
// ValuesAtTime contain information about other Boundary resources as they
|
||||
// were at a certain time through the lifetime of the Session Recording.
|
||||
message ValuesAtTime {
|
||||
@@ -229,6 +385,12 @@ message ValuesAtTime {
|
||||
|
||||
// Information about the Host chosen for the session.
|
||||
Host host = 3; // @gotags: class:"public"
|
||||
|
||||
// Information about the Credentials used for this session.
|
||||
repeated Credential credentials = 4;
|
||||
|
||||
// Information about the Credential Libraries used for this session.
|
||||
repeated CredentialLibrary credential_libraries = 5 [json_name = "credential_libraries"];
|
||||
}
|
||||
|
||||
// SessionRecording contains information about the recording of a Session.
|
||||
|
||||
Reference in new issue
Block a user