refactor historical values in the session recording resource
This commit is contained in:
1 parent
39a07252b6
commit
8f9e218e1c
3 files changed
+523
-251
No files matched your search
+70
-37
@@ -84,23 +84,8 @@ message User {
|
||||
// The description of the User that created the Session.
|
||||
string description = 3; // @gotags: class:"sensitive"
|
||||
|
||||
// The full name of the User that created the Session,
|
||||
// inferred from the account used by the user.
|
||||
string full_name = 4 [json_name = "full_name"]; // @gotags: class:"sensitive"
|
||||
|
||||
// The login name of the User that created the Session,
|
||||
// inferred from the account used by the user.
|
||||
string login_name = 5 [json_name = "login_name"]; // @gotags: class:"sensitive"
|
||||
|
||||
// The email of the User that created the Session,
|
||||
// inferred from the account used by the user.
|
||||
string email = 6; // @gotags: class:"sensitive"
|
||||
|
||||
// The scope that the User is in.
|
||||
resources.scopes.v1.ScopeInfo scope = 7;
|
||||
|
||||
// The ID of the account that the User that created the Session authenticated with.
|
||||
string account_id = 8 [json_name = "account_id"]; // @gotags: class:"public"
|
||||
}
|
||||
|
||||
// Target describes a target in Boundary.
|
||||
@@ -108,14 +93,61 @@ message Target {
|
||||
// The ID of the Target.
|
||||
string id = 1; // @gotags: class:"public"
|
||||
|
||||
// The name of the Target.
|
||||
string name = 2; // @gotags: class:"public"
|
||||
|
||||
// The project that the Target is in.
|
||||
resources.scopes.v1.ScopeInfo scope = 3;
|
||||
resources.scopes.v1.ScopeInfo scope = 2; // @gotags: class:"public"
|
||||
|
||||
// The ID of the storage bucket this Target's recordings use.
|
||||
string storage_bucket_id = 4 [json_name = "storage_bucket_id"]; // @gotags: class:"public"
|
||||
// The name of the Target, if set.
|
||||
string name = 3; // @gotags: class:"public"
|
||||
|
||||
// The description of the Target, if set.
|
||||
string description = 4; // @gotags: class:"public"
|
||||
|
||||
// Maximum total lifetime of a created Session, in seconds.
|
||||
uint32 session_max_seconds = 5 [json_name = "session_max_seconds"]; // @gotags: class:"public"
|
||||
|
||||
// Maximum number of connections allowed in a Session. Unlimited is indicated by the value -1.
|
||||
int32 session_connection_limit = 6 [json_name = "session_connection_limit"]; // @gotags: class:"public"
|
||||
|
||||
// Optional boolean expression to filter the workers that are allowed to satisfy this request.
|
||||
string worker_filter = 7 [json_name = "worker_filter"]; // @gotags: class:"public"
|
||||
|
||||
// Optional boolean expressions to filter the egress workers that are allowed to satisfy this request.
|
||||
string egress_worker_filter = 8 [json_name = "egress_worker_filter"]; // @gotags: class:"public"
|
||||
|
||||
// Optional boolean expressions to filter the ingress workers that are allowed to satisfy this request.
|
||||
string ingress_worker_filter = 9 [json_name = "ingress_worker_filter"]; // @gotags: class:"public"
|
||||
|
||||
oneof attrs {
|
||||
// We are using the name attributes here because at the time of
|
||||
// writing this there is only ssh target attributes for Session Recordings.
|
||||
// When we add another target type for Session Recordings we will need to
|
||||
// add a generic Struct with the field named "attributes", and then use the
|
||||
// method used in other places that assign to these strongly typed
|
||||
// attributes and then use a response interceptor to populate the
|
||||
// struct field named "attributes" from the other oneof fields. This is
|
||||
// going to be a breaking change (in terms of proto compatibility) but
|
||||
// since this is only consumed in JSON format, that should be transparent
|
||||
// to the end user.
|
||||
|
||||
// The attributes that are applicable for the specific Target.
|
||||
SshTargetAttributes attributes = 10;
|
||||
}
|
||||
}
|
||||
|
||||
// SshTargetAttributes contains attributes relevant to Targets of type "ssh"
|
||||
message SshTargetAttributes {
|
||||
// The default SSH port that is used when connecting to the endpoint.
|
||||
uint32 default_port = 1 [json_name = "default_port"]; // @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 {
|
||||
// Information about the User that created the Session.
|
||||
User user = 1;
|
||||
|
||||
// Information about the Target the Session connected to.
|
||||
Target target = 2;
|
||||
}
|
||||
|
||||
// SessionRecording contains information about the recording of a Session.
|
||||
@@ -126,50 +158,51 @@ message SessionRecording {
|
||||
// The scope that the Session Recording is in.
|
||||
// This is inferred from the storage bucket associated
|
||||
// with the target.
|
||||
resources.scopes.v1.ScopeInfo scope = 2;
|
||||
|
||||
// Information about the User that created the Session.
|
||||
User user = 3;
|
||||
resources.scopes.v1.ScopeInfo scope = 2; // @gotags: class:"public"
|
||||
|
||||
// The ID of the Session which this Session Recording recorded.
|
||||
string session_id = 4 [json_name = "session_id"]; // @gotags: class:"public"
|
||||
string session_id = 3 [json_name = "session_id"]; // @gotags: class:"public"
|
||||
|
||||
// Information about the Target the Session connected to.
|
||||
Target target = 5;
|
||||
// The ID of the Storage Bucket for the Target of this Session Recording.
|
||||
string storage_bucket_id = 4 [json_name = "storage_bucket_id"];
|
||||
|
||||
// The total number of bytes uploaded from the client in the Session.
|
||||
// This includes all bytes uploaded over all Connections, including
|
||||
// any protocol overhead.
|
||||
uint64 bytes_up = 6 [json_name = "bytes_up"]; // @gotags: class:"public"
|
||||
uint64 bytes_up = 5 [json_name = "bytes_up"]; // @gotags: class:"public"
|
||||
|
||||
// The total number of bytes downloaded to the client in the Session.
|
||||
// This includes all bytes downloaded over all Connections, including
|
||||
// any protocol overhead.
|
||||
uint64 bytes_down = 7 [json_name = "bytes_down"]; // @gotags: class:"public"
|
||||
uint64 bytes_down = 6 [json_name = "bytes_down"]; // @gotags: class:"public"
|
||||
|
||||
// The time the Session started.
|
||||
google.protobuf.Timestamp start_time = 8 [json_name = "start_time"]; // @gotags: class:"public"
|
||||
google.protobuf.Timestamp start_time = 7 [json_name = "start_time"]; // @gotags: class:"public"
|
||||
|
||||
// The time the Session ended.
|
||||
google.protobuf.Timestamp end_time = 9 [json_name = "end_time"]; // @gotags: class:"public"
|
||||
google.protobuf.Timestamp end_time = 8 [json_name = "end_time"]; // @gotags: class:"public"
|
||||
|
||||
// The total duration of the Session.
|
||||
google.protobuf.Duration duration = 10; // @gotags: class:"public"
|
||||
google.protobuf.Duration duration = 9; // @gotags: class:"public"
|
||||
|
||||
// The time that the Session recording will be deleted.
|
||||
google.protobuf.Timestamp delete_on = 11 [json_name = "delete_on"]; // @gotags: class:"public"
|
||||
google.protobuf.Timestamp delete_on = 10 [json_name = "delete_on"]; // @gotags: class:"public"
|
||||
|
||||
// Type of the Session that was recorded (e.g. ssh).
|
||||
string type = 12; // @gotags: class:"public"
|
||||
string type = 11; // @gotags: class:"public"
|
||||
|
||||
// MimeTypes define the mime types that can
|
||||
// be used to consume the recording of this Session.
|
||||
// No mime types are currently supported.
|
||||
repeated string mime_types = 13 [json_name = "mime_types"]; // @gotags: class:"public"
|
||||
repeated string mime_types = 12 [json_name = "mime_types"]; // @gotags: class:"public"
|
||||
|
||||
// The recordings of the connections that were created in the Session.
|
||||
// This field may be unset when listing Session recordings.
|
||||
repeated ConnectionRecording connection_recordings = 14 [json_name = "connection_recordings"];
|
||||
repeated ConnectionRecording connection_recordings = 13 [json_name = "connection_recordings"];
|
||||
|
||||
// create_time_values contains the values of related fields at the time
|
||||
// this Session Recording was created. This may be unset when listing.
|
||||
ValuesAtTime create_time_values = 14 [json_name = "create_time_values"]; // @gotags: class:"public"
|
||||
|
||||
// The available actions on this resource for this user.
|
||||
repeated string authorized_actions = 15 [json_name = "authorized_actions"]; // @gotags: class:"public"
|
||||
|
||||
Reference in new issue
Block a user