forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api dependency reduction - utils constants (gravitational#5363)
Moved constants and utils used in /api into /api/constants and /api/utils respectively.
- Loading branch information
Showing
77 changed files
with
1,839 additions
and
1,523 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* | ||
Copyright 2020-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. | ||
*/ | ||
|
||
// Package constants defines Teleport-specific constants | ||
package constants | ||
|
||
const ( | ||
// DefaultImplicitRole is implicit role that gets added to all service.RoleSet | ||
// objects. | ||
DefaultImplicitRole = "default-implicit-role" | ||
|
||
// APIDomain is a default domain name for Auth server API | ||
APIDomain = "teleport.cluster.local" | ||
|
||
// EnhancedRecordingMinKernel is the minimum kernel version for the enhanced | ||
// recording feature. | ||
EnhancedRecordingMinKernel = "4.18.0" | ||
|
||
// EnhancedRecordingCommand is a role option that implies command events are | ||
// captured. | ||
EnhancedRecordingCommand = "command" | ||
|
||
// EnhancedRecordingDisk is a role option that implies disk events are captured. | ||
EnhancedRecordingDisk = "disk" | ||
|
||
// EnhancedRecordingNetwork is a role option that implies network events | ||
// are captured. | ||
EnhancedRecordingNetwork = "network" | ||
|
||
// OTP means One-time Password Algorithm for Two-Factor Authentication. | ||
OTP = "otp" | ||
|
||
// U2F means Universal 2nd Factor.for Two-Factor Authentication. | ||
U2F = "u2f" | ||
|
||
// OFF means no second factor.for Two-Factor Authentication. | ||
OFF = "off" | ||
|
||
// Local means authentication will happen locally within the Teleport cluster. | ||
Local = "local" | ||
|
||
// OIDC means authentication will happen remotely using an OIDC connector. | ||
OIDC = "oidc" | ||
|
||
// SAML means authentication will happen remotely using a SAML connector. | ||
SAML = "saml" | ||
|
||
// Github means authentication will happen remotely using a Github connector. | ||
Github = "github" | ||
|
||
// HumanDateFormatSeconds is a human readable date formatting with seconds | ||
HumanDateFormatSeconds = "Jan _2 15:04:05 UTC" | ||
|
||
// MaxLeases serves as an identifying error string indicating that the | ||
// semaphore system is rejecting an acquisition attempt due to max | ||
// leases having already been reached. | ||
MaxLeases = "err-max-leases" | ||
|
||
// CertificateFormatStandard is used for normal Teleport operation without any | ||
// compatibility modes. | ||
CertificateFormatStandard = "standard" | ||
|
||
// DurationNever is human friendly shortcut that is interpreted as a Duration of 0 | ||
DurationNever = "never" | ||
|
||
// OIDCPromptSelectAccount instructs the Authorization Server to | ||
// prompt the End-User to select a user account. | ||
OIDCPromptSelectAccount = "select_account" | ||
|
||
// KeepAliveNode is the keep alive type for SSH servers. | ||
KeepAliveNode = "node" | ||
|
||
// KeepAliveApp is the keep alive type for application server. | ||
KeepAliveApp = "app" | ||
|
||
// KeepAliveDatabase is the keep alive type for database server. | ||
KeepAliveDatabase = "db" | ||
) |
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
Oops, something went wrong.