Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v17] Show device trust status in Connect #49577

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions api/proto/teleport/legacy/types/trusted_device_requirement.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Copyright 2024 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 types;

import "gogoproto/gogo.proto";

option go_package = "github.com/gravitational/teleport/api/types";
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.marshaler_all) = true;
option (gogoproto.unmarshaler_all) = true;

// TrustedDeviceRequirement indicates whether access may be hindered by the lack
// of a trusted device.
enum TrustedDeviceRequirement {
// Device requirement not determined.
// Does not mean that a device is not required, only that the necessary data
// was not considered.
TRUSTED_DEVICE_REQUIREMENT_UNSPECIFIED = 0;
// Trusted device not required.
TRUSTED_DEVICE_REQUIREMENT_NOT_REQUIRED = 1;
// Trusted device required by either cluster mode or user roles.
TRUSTED_DEVICE_REQUIREMENT_REQUIRED = 2;
}
14 changes: 1 addition & 13 deletions api/proto/teleport/legacy/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "teleport/attestation/v1/attestation.proto";
import "teleport/legacy/types/trusted_device_requirement.proto";
import "teleport/legacy/types/wrappers/wrappers.proto";

option go_package = "github.com/gravitational/teleport/api/types";
Expand Down Expand Up @@ -4187,19 +4188,6 @@ message WebSessionSpecV2 {
bytes TLSPriv = 15 [(gogoproto.jsontag) = "tls_priv,omitempty"];
}

// TrustedDeviceRequirement indicates whether access may be hindered by the lack
// of a trusted device.
enum TrustedDeviceRequirement {
// Device requirement not determined.
// Does not mean that a device is not required, only that the necessary data
// was not considered.
TRUSTED_DEVICE_REQUIREMENT_UNSPECIFIED = 0;
// Trusted device not required.
TRUSTED_DEVICE_REQUIREMENT_NOT_REQUIRED = 1;
// Trusted device required by either cluster mode or user roles.
TRUSTED_DEVICE_REQUIREMENT_REQUIRED = 2;
}

// Web-focused view of teleport.devicetrust.v1.DeviceWebToken.
message DeviceWebToken {
// Opaque token identifier.
Expand Down
84 changes: 84 additions & 0 deletions api/types/trusted_device_requirement.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading