Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gravitational/teleport into STeve…
Browse files Browse the repository at this point in the history
…/48762_git_server
  • Loading branch information
greedy52 committed Nov 24, 2024
2 parents 8def2e8 + 3c6df87 commit 227c801
Show file tree
Hide file tree
Showing 73 changed files with 8,607 additions and 4,564 deletions.
8 changes: 8 additions & 0 deletions api/proto/teleport/legacy/types/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4330,6 +4330,8 @@ message IntegrationMetadata {
AWSOIDCIntegrationMetadata AWSOIDC = 2 [(gogoproto.jsontag) = "aws_oidc,omitempty"];
// AzureOIDC contains metadata for Azure OIDC integrations.
AzureOIDCIntegrationMetadata AzureOIDC = 3 [(gogoproto.jsontag) = "azure_oidc,omitempty"];
// GitHub contains metadata for GitHub integrations.
GitHubIntegrationMetadata GitHub = 4 [(gogoproto.jsontag) = "github,omitempty"];
}

// AWSOIDCIntegrationMetadata contains metadata for AWS OIDC integrations.
Expand All @@ -4351,6 +4353,12 @@ message AzureOIDCIntegrationMetadata {
string ClientID = 2 [(gogoproto.jsontag) = "client_id,omitempty"];
}

// GitHubIntegrationMetadata contains metadata for GitHub integrations.
message GitHubIntegrationMetadata {
// Organization specifies the name of the organization for the GitHub integration.
string Organization = 1 [(gogoproto.jsontag) = "organization,omitempty"];
}

// PluginCreate is emitted when a plugin resource is created.
message PluginCreate {
// Metadata is a common event metadata.
Expand Down
64 changes: 60 additions & 4 deletions api/proto/teleport/legacy/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2935,6 +2935,38 @@ enum CreateDatabaseUserMode {
DB_USER_MODE_BEST_EFFORT_DROP = 3;
}

// SSHLocalPortForwarding configures access controls for local SSH port forwarding.
message SSHLocalPortForwarding {
BoolValue Enabled = 1 [
(gogoproto.nullable) = true,
(gogoproto.jsontag) = "enabled,omitempty",
(gogoproto.customtype) = "BoolOption"
];
}

// SSHRemotePortForwarding configures access controls for remote SSH port forwarding.
message SSHRemotePortForwarding {
BoolValue Enabled = 1 [
(gogoproto.nullable) = true,
(gogoproto.jsontag) = "enabled,omitempty",
(gogoproto.customtype) = "BoolOption"
];
}

// SSHPortForwarding configures what types of SSH port forwarding are allowed by a role.
message SSHPortForwarding {
// Allow local port forwarding.
SSHLocalPortForwarding Local = 1 [
(gogoproto.nullable) = true,
(gogoproto.jsontag) = "local,omitempty"
];
// Allow remote port forwarding.
SSHRemotePortForwarding Remote = 2 [
(gogoproto.nullable) = true,
(gogoproto.jsontag) = "remote,omitempty"
];
}

// RoleOptions is a set of role options
message RoleOptions {
// ForwardAgent is SSH agent forwarding.
Expand All @@ -2949,11 +2981,9 @@ message RoleOptions {
(gogoproto.casttype) = "Duration"
];

// PortForwarding defines if the certificate will have
// "permit-port-forwarding"
// in the certificate. PortForwarding is "yes" if not set,
// that's why this is a pointer
// Deprecated: Use SSHPortForwarding instead
BoolValue PortForwarding = 3 [
deprecated = true,
(gogoproto.nullable) = true,
(gogoproto.jsontag) = "port_forwarding,omitempty",
(gogoproto.customtype) = "BoolOption"
Expand Down Expand Up @@ -3120,6 +3150,12 @@ message RoleOptions {

// CreateHostUserDefaultShell is used to configure the default shell for newly provisioned host users.
string CreateHostUserDefaultShell = 31 [(gogoproto.jsontag) = "create_host_user_default_shell,omitempty"];

// SSHPortForwarding configures what types of SSH port forwarding are allowed by a role.
SSHPortForwarding SSHPortForwarding = 32 [
(gogoproto.nullable) = true,
(gogoproto.jsontag) = "ssh_port_forwarding,omitempty"
];
}

message RecordSession {
Expand Down Expand Up @@ -7106,6 +7142,7 @@ message PluginStaticCredentialsSpecV1 {
string APIToken = 1;
PluginStaticCredentialsBasicAuth BasicAuth = 2;
PluginStaticCredentialsOAuthClientSecret OAuthClientSecret = 3;
PluginStaticCredentialsSSHCertAuthorities SSHCertAuthorities = 4;
}
}

Expand All @@ -7127,6 +7164,14 @@ message PluginStaticCredentialsOAuthClientSecret {
string ClientSecret = 2 [(gogoproto.jsontag) = "client_secret"];
}

// PluginStaticCredentialsSSHCertAuthorities contains the active SSH CAs used
// for the integration or plugin.
message PluginStaticCredentialsSSHCertAuthorities {
// CertAuthorities contains the active SSH CAs used for the integration or
// plugin.
repeated SSHKeyPair cert_authorities = 1;
}

// SAMLIdPServiceProviderV1 is the representation of a SAML IdP service provider.
message SAMLIdPServiceProviderV1 {
option (gogoproto.goproto_stringer) = false;
Expand Down Expand Up @@ -7474,7 +7519,12 @@ message IntegrationSpecV1 {
AWSOIDCIntegrationSpecV1 AWSOIDC = 1 [(gogoproto.jsontag) = "aws_oidc,omitempty"];
// AzureOIDC contains the specific fields to handle the Azure OIDC Integration subkind
AzureOIDCIntegrationSpecV1 AzureOIDC = 2 [(gogoproto.jsontag) = "azure_oidc,omitempty"];
// GitHub contains the specific fields to handle the GitHub integration subkind.
GitHubIntegrationSpecV1 GitHub = 3 [(gogoproto.jsontag) = "github,omitempty"];
}

// Credentials contains credentials for the integration.
PluginCredentialsV1 credentials = 4;
}

// AWSOIDCIntegrationSpecV1 contains the spec properties for the AWS OIDC SubKind Integration.
Expand Down Expand Up @@ -7519,6 +7569,12 @@ message AzureOIDCIntegrationSpecV1 {
string ClientID = 2 [(gogoproto.jsontag) = "client_id,omitempty"];
}

// GitHubIntegrationSpecV1 contains the specific fields to handle the GitHub integration subkind.
message GitHubIntegrationSpecV1 {
// Organization specifies the name of the organization for the GitHub integration.
string Organization = 1 [(gogoproto.jsontag) = "organization,omitempty"];
}

// HeadlessAuthentication holds data for an ongoing headless authentication attempt.
message HeadlessAuthentication {
// Header is the resource header.
Expand Down
Loading

0 comments on commit 227c801

Please sign in to comment.