-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1aadd4a
commit 4d0c0b2
Showing
91 changed files
with
19,003 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,5 +189,27 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --pr | |
cargo install cbindgen | ||
|
||
USER root | ||
|
||
# Install buf | ||
RUN BIN="/usr/local/bin" && \ | ||
VERSION="1.0.0-rc1" && \ | ||
BINARY_NAME="buf" && \ | ||
curl -sSL \ | ||
"https://github.com/bufbuild/buf/releases/download/v${VERSION}/${BINARY_NAME}-$(uname -s)-$(uname -m)" \ | ||
-o "${BIN}/${BINARY_NAME}" && \ | ||
chmod +x "${BIN}/${BINARY_NAME}" | ||
|
||
# Install node | ||
ARG NODE_VERSION=v15.14.0 | ||
ENV NODE_URL="https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-linux-x64.tar.xz" | ||
ENV NODE_PATH="/usr/local/lib/node-${NODE_VERSION}-linux-x64" | ||
ENV PATH="$PATH:${NODE_PATH}/bin" | ||
RUN (curl -o /tmp/nodejs.tar.xz -L ${NODE_URL} && tar -xJf /tmp/nodejs.tar.xz -C /usr/local/lib) | ||
|
||
# Install js proto tools | ||
RUN (npm install --global [email protected]) | ||
RUN (npm install --global [email protected]) | ||
RUN go install github.com/golang/protobuf/[email protected] | ||
|
||
VOLUME ["/go/src/github.com/gravitational/teleport"] | ||
EXPOSE 6600 2379 2380 | ||
EXPOSE 6600 2379 2380 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: v1 | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- RPC_RESPONSE_STANDARD_NAME | ||
breaking: | ||
use: | ||
- FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright 2021 Gravitational, Inc | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package teleport.terminal.v1; | ||
|
||
option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; | ||
|
||
import "v1/label.proto"; | ||
|
||
// App describes connected Application | ||
message App { | ||
// uri is the app resource URI | ||
string uri = 1; | ||
// name is the app name | ||
string name = 2; | ||
// description is the app description. | ||
string description = 3; | ||
// uri is the internal address the application is available at. | ||
string app_uri = 4; | ||
// public_addr is the public address the application is accessible at. | ||
string public_addr = 5; | ||
// fqdn is a fully qualified domain name of the application (app.example.com) | ||
string fqdn = 6; | ||
// labels is a map of static labels associated with an application. | ||
repeated Label labels = 7; | ||
// aws_console if true, indicates that the app represents AWS management console. | ||
bool aws_console = 8; | ||
// aws_roles is a list of AWS IAM roles for the application representing AWS console. | ||
repeated AWSRole aws_roles = 9; | ||
|
||
message AWSRole { | ||
// display is the role display name. | ||
string display = 1; | ||
// arn is the full role ARN. | ||
string arn = 2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright 2021 Gravitational, Inc | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package teleport.terminal.v1; | ||
|
||
option go_package = "github.com/gravitational/teleport/lib/teleterm/v1"; | ||
|
||
// AuthSettings contains the form of authentication the auth server supports. | ||
message AuthSettings { | ||
// local_auth_enabled is a flag that enables local authentication | ||
bool local_auth_enabled = 1; | ||
// second_factor is the type of second factor to use in authentication. | ||
string second_factor = 2; | ||
// preferred_mfa is the prefered mfa for local logins | ||
string preferred_mfa = 3; | ||
// auth_providers contains a list of auth providers | ||
repeated AuthProvider auth_providers = 4; | ||
// has_message_of_the_day is a flag indicating that the cluster has MOTD | ||
// banner text that must be retrieved, displayed and acknowledged by | ||
// the user. | ||
bool has_message_of_the_day = 5; | ||
} | ||
|
||
// AuthProvider describes a way of authentication that is supported by the server. Auth provider is | ||
// referred to as "auth connector" on the backend. | ||
message AuthProvider { | ||
// Type is the auth provider type (github|oidc|etc) | ||
string type = 1; | ||
// Name is the internal name of the connector. | ||
string name = 2; | ||
// Display is the display name for the connector. | ||
string display_name = 3; | ||
} |
Oops, something went wrong.