Skip to content

Commit

Permalink
[v15] backport common decision service elements (#51610)
Browse files Browse the repository at this point in the history
* Add initial Decision (aka PDP) protos (#49875)

* Clone protos from fspmarshall/pdp-work-02

* Use decisionpb as the Go package alias

* Update DecisionService docs

* Split identity protos into separate files

* Update Metadata docs

* Split metadata into separate files

* Update Resource docs

* Update database access docs and fields

* Update SSH access docs and fields

* Ignore breaking changes on decision protos

* Update generated protos

* Use teleport.trait.v1.Trait

* Document mutual dependency between "ResourceID" types

* nit: s/ResourceID/ResourceId

* nit: Use the correct CamelCase field name in comments

* Update generated protos

* Add RouteToApp.target_port

* Update generated protos

* Update comments on TLSIdentity / tlsca.Identity

* Update generated protos

* Add the decisionv1.Service boilerplate (#49912)

* Add the decisionv1.Service boilerplate

* Wire decisionv1.Service to auth.GRPCServer

* Wire decisionpb.DecisionServiceClient to client.Client

* Add basic service testing

* Add conversions to/from decisionpb.TLSIdentity (#50308)

* Add conversions to/from decisionpb.TLSIdentity

* Map timestamppb.Timestamp{} to 0-0-0 0:0.0 (instead of unix epoch)

* Document that slices are not deep-copied

* Add EvaluateDatabaseAccessRequest.database (#50481)

* Add EvaluateDatabaseAccessRequest.database

* Update generated protos

* fix protos & tls identity

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
  • Loading branch information
fspmarshall and codingllama authored Jan 29, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8f2f3bb commit 74ec33d
Showing 32 changed files with 4,827 additions and 1 deletion.
7 changes: 7 additions & 0 deletions api/client/client.go
Original file line number Diff line number Diff line change
@@ -69,6 +69,7 @@ import (
crownjewelv1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/crownjewel/v1"
dbobjectv1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/dbobject/v1"
dbobjectimportrulev1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/dbobjectimportrule/v1"
decisionpb "github.com/gravitational/teleport/api/gen/proto/go/teleport/decision/v1alpha1"
devicepb "github.com/gravitational/teleport/api/gen/proto/go/teleport/devicetrust/v1"
discoveryconfigv1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/discoveryconfig/v1"
externalauditstoragev1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/externalauditstorage/v1"
@@ -5314,3 +5315,9 @@ func (c *Client) UpsertUserPreferences(ctx context.Context, in *userpreferencesp
func (c *Client) ResourceUsageClient() resourceusagepb.ResourceUsageServiceClient {
return resourceusagepb.NewResourceUsageServiceClient(c.conn)
}

// DecisionClient returns an unadorned DecisionService client using the
// underlying Auth gRPC connection.
func (c *Client) DecisionClient() decisionpb.DecisionServiceClient {
return decisionpb.NewDecisionServiceClient(c.conn)
}
475 changes: 475 additions & 0 deletions api/gen/proto/go/teleport/decision/v1alpha1/database_access.pb.go

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions api/gen/proto/go/teleport/decision/v1alpha1/decision_service.pb.go

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

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

Loading
Oops, something went wrong.

0 comments on commit 74ec33d

Please sign in to comment.