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

Replace dependencies on lib/auth with lib/authclient #41623

Merged
merged 41 commits into from
May 16, 2024

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented May 15, 2024

Refactors code that was consuming lib/auth to use lib/auth/authclient instead. While this does touch a large number of files each commit is atomic and most commits are simply renaming types to use their equivalent in authclient. In addition to name changes this also moves some additional code from lib/auth to lib/auth/authclient.

Items moved to authclient

  • auth.HostFQDN: c6ed4b7
  • auth.WithClusterCAs, auth.DefaultClientCertPool, and auth.ClientCertPool: 38a602e
  • auth.TryCreateAppSessionForClientCertV15: de912f5
  • auth.ErrNoMFADevices: 6a2c286

Additionally, this also starts the migration of the AccessPoint interfaces defined in lib/auth/api.go into authclient. For the moment only lib/reversetunnelclient has been updated to consume interfaces from the new location. All other consumers will be migrated at a later time to reduce the size of this PR.

Dependency Tree

While this PR doesn't remove lib/auth from client tools dependency trees, it does have a significant reduction in the number of times it shows up in the tree.

master

$ goda tree "reach(github.com/gravitational/teleport/tool/tbot...:all, github.com/gravitational/teleport/lib/auth)"
  ├ github.com/gravitational/teleport/tool/tbot
    ├ github.com/gravitational/teleport/lib/tbot
      ├ github.com/gravitational/teleport/lib/auth
      ├ github.com/gravitational/teleport/lib/client
        ├ github.com/gravitational/teleport/lib/auth ~
        └ github.com/gravitational/teleport/lib/srv/alpnproxy
          └ github.com/gravitational/teleport/lib/auth ~
      ├ github.com/gravitational/teleport/lib/client/identityfile
        ├ github.com/gravitational/teleport/lib/client ~
        └ github.com/gravitational/teleport/lib/kube/kubeconfig
          └ github.com/gravitational/teleport/lib/client ~
      ├ github.com/gravitational/teleport/lib/reversetunnelclient
        ├ github.com/gravitational/teleport/lib/auth ~
        └ github.com/gravitational/teleport/lib/proxy/peer
          └ github.com/gravitational/teleport/lib/auth ~
      ├ github.com/gravitational/teleport/lib/srv/alpnproxy ~
      └ github.com/gravitational/teleport/lib/tbot/config
        ├ github.com/gravitational/teleport/lib/auth ~
        ├ github.com/gravitational/teleport/lib/client ~
        ├ github.com/gravitational/teleport/lib/client/identityfile ~
        └ github.com/gravitational/teleport/lib/kube/kubeconfig ~
    ├ github.com/gravitational/teleport/lib/tbot/config ~
    └ github.com/gravitational/teleport/lib/tbot/tshwrap
      ├ github.com/gravitational/teleport/lib/client ~
      └ github.com/gravitational/teleport/lib/tbot/config ~


$ goda tree "reach(github.com/gravitational/teleport/tool/tctl...:all, github.com/gravitational/teleport/lib/auth)"
  ├ github.com/gravitational/teleport/tool/tctl
    └ github.com/gravitational/teleport/tool/tctl/common
      ├ github.com/gravitational/teleport/lib/auth
      ├ github.com/gravitational/teleport/lib/auth/windows
        └ github.com/gravitational/teleport/lib/auth ~
      ├ github.com/gravitational/teleport/lib/client
        ├ github.com/gravitational/teleport/lib/auth ~
        └ github.com/gravitational/teleport/lib/srv/alpnproxy
          └ github.com/gravitational/teleport/lib/auth ~
      ├ github.com/gravitational/teleport/lib/client/db
        ├ github.com/gravitational/teleport/lib/auth ~
        ├ github.com/gravitational/teleport/lib/client ~
        └ github.com/gravitational/teleport/lib/client/identityfile
          ├ github.com/gravitational/teleport/lib/client ~
          └ github.com/gravitational/teleport/lib/kube/kubeconfig
            └ github.com/gravitational/teleport/lib/client ~
      ├ github.com/gravitational/teleport/lib/client/identityfile ~
      ├ github.com/gravitational/teleport/lib/config
        ├ github.com/gravitational/teleport/lib/client ~
        ├ github.com/gravitational/teleport/lib/pam
          └ github.com/gravitational/teleport/lib/service/servicecfg
            └ github.com/gravitational/teleport/lib/auth ~
        └ github.com/gravitational/teleport/lib/service/servicecfg ~
      ├ github.com/gravitational/teleport/lib/reversetunnelclient
        ├ github.com/gravitational/teleport/lib/auth ~
        └ github.com/gravitational/teleport/lib/proxy/peer
          └ github.com/gravitational/teleport/lib/auth ~
      ├ github.com/gravitational/teleport/lib/service/servicecfg ~
      ├ github.com/gravitational/teleport/tool/tctl/common/accessmonitoring
        └ github.com/gravitational/teleport/lib/service/servicecfg ~
      ├ github.com/gravitational/teleport/tool/tctl/common/loginrule
        └ github.com/gravitational/teleport/lib/service/servicecfg ~
      ├ github.com/gravitational/teleport/tool/tctl/sso/configure
        ├ github.com/gravitational/teleport/lib/service/servicecfg ~
        └ github.com/gravitational/teleport/tool/tctl/sso/tester
          ├ github.com/gravitational/teleport/lib/auth ~
          ├ github.com/gravitational/teleport/lib/client ~
          └ github.com/gravitational/teleport/lib/service/servicecfg ~
      └ github.com/gravitational/teleport/tool/tctl/sso/tester ~


$ goda tree "reach(github.com/gravitational/teleport/tool/tsh...:all, github.com/gravitational/teleport/lib/auth)"
  ├ github.com/gravitational/teleport/tool/tsh
    └ github.com/gravitational/teleport/tool/tsh/common
      ├ github.com/gravitational/teleport/lib/auth
      ├ github.com/gravitational/teleport/lib/benchmark
        ├ github.com/gravitational/teleport/lib/client
          ├ github.com/gravitational/teleport/lib/auth ~
          └ github.com/gravitational/teleport/lib/srv/alpnproxy
            └ github.com/gravitational/teleport/lib/auth ~
        └ github.com/gravitational/teleport/lib/web
          ├ github.com/gravitational/teleport/lib/auth ~
          ├ github.com/gravitational/teleport/lib/client ~
          ├ github.com/gravitational/teleport/lib/client/conntest
            ├ github.com/gravitational/teleport/lib/auth ~
            └ github.com/gravitational/teleport/lib/client ~
          ├ github.com/gravitational/teleport/lib/client/db
            ├ github.com/gravitational/teleport/lib/auth ~
            ├ github.com/gravitational/teleport/lib/client ~
            └ github.com/gravitational/teleport/lib/client/identityfile
              ├ github.com/gravitational/teleport/lib/client ~
              └ github.com/gravitational/teleport/lib/kube/kubeconfig
                └ github.com/gravitational/teleport/lib/client ~
          ├ github.com/gravitational/teleport/lib/client/identityfile ~
          ├ github.com/gravitational/teleport/lib/integrations/awsoidc/deployserviceconfig
            └ github.com/gravitational/teleport/lib/config
              ├ github.com/gravitational/teleport/lib/client ~
              ├ github.com/gravitational/teleport/lib/pam
                └ github.com/gravitational/teleport/lib/service/servicecfg
                  └ github.com/gravitational/teleport/lib/auth ~
              └ github.com/gravitational/teleport/lib/service/servicecfg ~
          ├ github.com/gravitational/teleport/lib/proxy
            └ github.com/gravitational/teleport/lib/reversetunnelclient
              ├ github.com/gravitational/teleport/lib/auth ~
              └ github.com/gravitational/teleport/lib/proxy/peer
                └ github.com/gravitational/teleport/lib/auth ~
          ├ github.com/gravitational/teleport/lib/reversetunnelclient ~
          ├ github.com/gravitational/teleport/lib/srv/desktop/tdp
            └ github.com/gravitational/teleport/lib/client ~
          ├ github.com/gravitational/teleport/lib/web/app
            ├ github.com/gravitational/teleport/lib/auth ~
            └ github.com/gravitational/teleport/lib/reversetunnelclient ~
          └ github.com/gravitational/teleport/lib/web/ui
            └ github.com/gravitational/teleport/lib/reversetunnelclient ~
      ├ github.com/gravitational/teleport/lib/benchmark/db
        ├ github.com/gravitational/teleport/lib/benchmark ~
        ├ github.com/gravitational/teleport/lib/client ~
        └ github.com/gravitational/teleport/lib/srv/alpnproxy ~
      ├ github.com/gravitational/teleport/lib/client ~
      ├ github.com/gravitational/teleport/lib/client/db ~
      ├ github.com/gravitational/teleport/lib/client/db/dbcmd
        ├ github.com/gravitational/teleport/lib/client ~
        └ github.com/gravitational/teleport/lib/client/db ~
      ├ github.com/gravitational/teleport/lib/client/db/oracle
        └ github.com/gravitational/teleport/lib/client ~
      ├ github.com/gravitational/teleport/lib/client/identityfile ~
      ├ github.com/gravitational/teleport/lib/client/kube
        └ github.com/gravitational/teleport/lib/client ~
      ├ github.com/gravitational/teleport/lib/kube/kubeconfig ~
      ├ github.com/gravitational/teleport/lib/srv/alpnproxy ~
      ├ github.com/gravitational/teleport/lib/srv/desktop/tdp ~
      └ github.com/gravitational/teleport/lib/teleterm
        ├ github.com/gravitational/teleport/lib/teleterm/apiserver
          ├ github.com/gravitational/teleport/lib/teleterm/apiserver/handler
            ├ github.com/gravitational/teleport/lib/client ~
            ├ github.com/gravitational/teleport/lib/teleterm/clusters
              ├ github.com/gravitational/teleport/lib/auth ~
              ├ github.com/gravitational/teleport/lib/client ~
              ├ github.com/gravitational/teleport/lib/client/db ~
              ├ github.com/gravitational/teleport/lib/client/db/dbcmd ~
              ├ github.com/gravitational/teleport/lib/client/kube ~
              ├ github.com/gravitational/teleport/lib/kube/kubeconfig ~
              └ github.com/gravitational/teleport/lib/teleterm/gateway
                ├ github.com/gravitational/teleport/lib/client ~
                ├ github.com/gravitational/teleport/lib/kube/kubeconfig ~
                └ github.com/gravitational/teleport/lib/srv/alpnproxy ~
            ├ github.com/gravitational/teleport/lib/teleterm/cmd
              ├ github.com/gravitational/teleport/lib/client/db/dbcmd ~
              ├ github.com/gravitational/teleport/lib/teleterm/clusters ~
              └ github.com/gravitational/teleport/lib/teleterm/gateway ~
            ├ github.com/gravitational/teleport/lib/teleterm/daemon
              ├ github.com/gravitational/teleport/lib/client ~
              ├ github.com/gravitational/teleport/lib/teleterm/clusters ~
              ├ github.com/gravitational/teleport/lib/teleterm/cmd ~
              ├ github.com/gravitational/teleport/lib/teleterm/gateway ~
              ├ github.com/gravitational/teleport/lib/teleterm/services/clientcache
                ├ github.com/gravitational/teleport/lib/client ~
                └ github.com/gravitational/teleport/lib/teleterm/clusters ~
              ├ github.com/gravitational/teleport/lib/teleterm/services/connectmycomputer
                ├ github.com/gravitational/teleport/lib/client ~
                └ github.com/gravitational/teleport/lib/teleterm/clusters ~
              └ github.com/gravitational/teleport/lib/teleterm/services/unifiedresources
                └ github.com/gravitational/teleport/lib/teleterm/clusters ~
            └ github.com/gravitational/teleport/lib/teleterm/gateway ~
          └ github.com/gravitational/teleport/lib/teleterm/daemon ~
        ├ github.com/gravitational/teleport/lib/teleterm/clusters ~
        └ github.com/gravitational/teleport/lib/teleterm/daemon ~

tross/auth_client

$ goda tree "reach(github.com/gravitational/teleport/tool/tbot...:all, github.com/gravitational/teleport/lib/auth)"
  ├ github.com/gravitational/teleport/tool/tbot
    └ github.com/gravitational/teleport/lib/tbot
      └ github.com/gravitational/teleport/lib/auth

$ goda tree "reach(github.com/gravitational/teleport/tool/tctl...:all, github.com/gravitational/teleport/lib/auth)"
  ├ github.com/gravitational/teleport/tool/tctl
    └ github.com/gravitational/teleport/tool/tctl/common
      ├ github.com/gravitational/teleport/lib/auth
      ├ github.com/gravitational/teleport/lib/auth/windows
        └ github.com/gravitational/teleport/lib/auth ~
      ├ github.com/gravitational/teleport/lib/config
        ├ github.com/gravitational/teleport/lib/pam
          └ github.com/gravitational/teleport/lib/service/servicecfg
            └ github.com/gravitational/teleport/lib/auth ~
        └ github.com/gravitational/teleport/lib/service/servicecfg ~
      ├ github.com/gravitational/teleport/lib/service/servicecfg ~
      ├ github.com/gravitational/teleport/tool/tctl/common/accessmonitoring
        └ github.com/gravitational/teleport/lib/service/servicecfg ~
      ├ github.com/gravitational/teleport/tool/tctl/common/loginrule
        └ github.com/gravitational/teleport/lib/service/servicecfg ~
      ├ github.com/gravitational/teleport/tool/tctl/sso/configure
        ├ github.com/gravitational/teleport/lib/service/servicecfg ~
        └ github.com/gravitational/teleport/tool/tctl/sso/tester
          └ github.com/gravitational/teleport/lib/service/servicecfg ~
      └ github.com/gravitational/teleport/tool/tctl/sso/tester ~

$ goda tree "reach(github.com/gravitational/teleport/tool/tsh...:all, github.com/gravitational/teleport/lib/auth)"
  ├ github.com/gravitational/teleport/tool/tsh
    └ github.com/gravitational/teleport/tool/tsh/common
      ├ github.com/gravitational/teleport/lib/auth
      ├ github.com/gravitational/teleport/lib/benchmark
        └ github.com/gravitational/teleport/lib/web
          ├ github.com/gravitational/teleport/lib/auth ~
          ├ github.com/gravitational/teleport/lib/integrations/awsoidc/deployserviceconfig
            └ github.com/gravitational/teleport/lib/config
              ├ github.com/gravitational/teleport/lib/pam
                └ github.com/gravitational/teleport/lib/service/servicecfg
                  └ github.com/gravitational/teleport/lib/auth ~
              └ github.com/gravitational/teleport/lib/service/servicecfg ~
          └ github.com/gravitational/teleport/lib/web/app
            └ github.com/gravitational/teleport/lib/auth ~
      └ github.com/gravitational/teleport/lib/benchmark/db
        └ github.com/gravitational/teleport/lib/benchmark ~

Important

Depends on https://github.com/gravitational/teleport.e/pull/4174 - removal of authclient aliases here will break e builds if this merges first.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aliases were left behind here to prevent breaking e and limit further changes to this PR. I'll convert consumers to use the new types in authclient in a follow up.

@rosstimothy rosstimothy added backport/branch/v14 no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 labels May 15, 2024
@rosstimothy rosstimothy marked this pull request as ready for review May 16, 2024 00:22
@github-actions github-actions bot added application-access database-access Database access related issues and PRs kubernetes-access machine-id size/md tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels May 16, 2024
Copy link
Contributor

@tigrato tigrato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@rosstimothy
Copy link
Contributor Author

/excludeflake *

1 similar comment
@zmb3
Copy link
Collaborator

zmb3 commented May 16, 2024

/excludeflake *

@rosstimothy rosstimothy added this pull request to the merge queue May 16, 2024
Merged via the queue into master with commit 7fe7a6b May 16, 2024
39 checks passed
@rosstimothy rosstimothy deleted the tross/auth_client branch May 16, 2024 17:51
@public-teleport-github-review-bot

@rosstimothy See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Failed

rosstimothy added a commit that referenced this pull request May 17, 2024
* Remove authclient.Client/ClientI/NewClient aliases in lib/auth

* Remove WebSessionReq aliases in lib/auth

* Remove GithubAuthResponse aliases in lib/auth

* Remove GithubAuthRequest aliases in lib/auth

* Remove KubeCSR alias in lib/auth

* Remove KubeCSRResponse alias in lib/auth

* Remove OIDCAuthResponse alias in lib/auth

* Remove OIDCAuthRequest alias in lib/auth

* Remove ValidateOIDCAuthCallbackReq alias in lib/auth

* Remove OIDCAuthRawResponse alias in lib/auth

* Remove CreateUserTokenRequest alias in lib/auth

* Remove SAMLAuthResponse alias in lib/auth

* Remove SAMLAuthRequest alias in lib/auth

* Remove ValidateSAMLResponseReq alias in lib/auth

* Remove SAMLAuthRawResponse alias in lib/auth

* Remove ValidateTrustedClusterRequest alias in lib/auth

* Remove ValidateTrustedClusterRequestRaw alias in lib/auth

* Remove ValidateTrustedClusterResponse alias in lib/auth

* Remove ValidateTrustedClusterResponseRaw alias in lib/auth

* Remove AuthenticateUserRequest alias in lib/auth

* Remove ForwardedClientMetadata alias in lib/auth

* Remove PassCreds alias in lib/auth

* Remove OTPCreds alias in lib/auth

* Remove SessionCreds alias in lib/auth

* Remove AuthenticateSSHRequest alias in lib/auth

* Remove SSHLoginResponse alias in lib/auth

* Remove TrustedCerts alias in lib/auth

* Remove AuthoritiesToTrustedCerts alias in lib/auth

* Move auth.HostFQDN to authclient

* Move auth.WithClusterCAs, auth.DefaultClientCertPool and auth.ClientCertPool to authclient

* Switch alpn proxy to use authclient.CAGetter instead of auth.ReadProxyAccessPoint

* Use a smaller scoped interfaces in lib/proxy/peer to remove lib/auth dependency

* Move auth.TryCreateAppSessionForClientCertV15 to authclient

* Move auth.ErrNoMFADevices to authclient

* Move access point interfaces to authclient. Aliases left behind to prevent breaking builds

* remove lib/auth dependency from lib/reversetunnelclient

* fix lints

* fix license

* Bump e ref to include gravitational/teleport.e#4174

* Use authclient.Client in new tctl diag commands

* Stop using auth.UserTokenType aliases
rosstimothy added a commit that referenced this pull request May 17, 2024
* Remove authclient.Client/ClientI/NewClient aliases in lib/auth

* Remove WebSessionReq aliases in lib/auth

* Remove GithubAuthResponse aliases in lib/auth

* Remove GithubAuthRequest aliases in lib/auth

* Remove KubeCSR alias in lib/auth

* Remove KubeCSRResponse alias in lib/auth

* Remove OIDCAuthResponse alias in lib/auth

* Remove OIDCAuthRequest alias in lib/auth

* Remove ValidateOIDCAuthCallbackReq alias in lib/auth

* Remove OIDCAuthRawResponse alias in lib/auth

* Remove CreateUserTokenRequest alias in lib/auth

* Remove SAMLAuthResponse alias in lib/auth

* Remove SAMLAuthRequest alias in lib/auth

* Remove ValidateSAMLResponseReq alias in lib/auth

* Remove SAMLAuthRawResponse alias in lib/auth

* Remove ValidateTrustedClusterRequest alias in lib/auth

* Remove ValidateTrustedClusterRequestRaw alias in lib/auth

* Remove ValidateTrustedClusterResponse alias in lib/auth

* Remove ValidateTrustedClusterResponseRaw alias in lib/auth

* Remove AuthenticateUserRequest alias in lib/auth

* Remove ForwardedClientMetadata alias in lib/auth

* Remove PassCreds alias in lib/auth

* Remove OTPCreds alias in lib/auth

* Remove SessionCreds alias in lib/auth

* Remove AuthenticateSSHRequest alias in lib/auth

* Remove SSHLoginResponse alias in lib/auth

* Remove TrustedCerts alias in lib/auth

* Remove AuthoritiesToTrustedCerts alias in lib/auth

* Move auth.HostFQDN to authclient

* Move auth.WithClusterCAs, auth.DefaultClientCertPool and auth.ClientCertPool to authclient

* Switch alpn proxy to use authclient.CAGetter instead of auth.ReadProxyAccessPoint

* Use a smaller scoped interfaces in lib/proxy/peer to remove lib/auth dependency

* Move auth.TryCreateAppSessionForClientCertV15 to authclient

* Move auth.ErrNoMFADevices to authclient

* Move access point interfaces to authclient. Aliases left behind to prevent breaking builds

* remove lib/auth dependency from lib/reversetunnelclient

* fix lints

* fix license

* Bump e ref to include gravitational/teleport.e#4174

* Use authclient.Client in new tctl diag commands

* Stop using auth.UserTokenType aliases
rosstimothy added a commit that referenced this pull request May 17, 2024
* Remove authclient.Client/ClientI/NewClient aliases in lib/auth

* Remove WebSessionReq aliases in lib/auth

* Remove GithubAuthResponse aliases in lib/auth

* Remove GithubAuthRequest aliases in lib/auth

* Remove KubeCSR alias in lib/auth

* Remove KubeCSRResponse alias in lib/auth

* Remove OIDCAuthResponse alias in lib/auth

* Remove OIDCAuthRequest alias in lib/auth

* Remove ValidateOIDCAuthCallbackReq alias in lib/auth

* Remove OIDCAuthRawResponse alias in lib/auth

* Remove CreateUserTokenRequest alias in lib/auth

* Remove SAMLAuthResponse alias in lib/auth

* Remove SAMLAuthRequest alias in lib/auth

* Remove ValidateSAMLResponseReq alias in lib/auth

* Remove SAMLAuthRawResponse alias in lib/auth

* Remove ValidateTrustedClusterRequest alias in lib/auth

* Remove ValidateTrustedClusterRequestRaw alias in lib/auth

* Remove ValidateTrustedClusterResponse alias in lib/auth

* Remove ValidateTrustedClusterResponseRaw alias in lib/auth

* Remove AuthenticateUserRequest alias in lib/auth

* Remove ForwardedClientMetadata alias in lib/auth

* Remove PassCreds alias in lib/auth

* Remove OTPCreds alias in lib/auth

* Remove SessionCreds alias in lib/auth

* Remove AuthenticateSSHRequest alias in lib/auth

* Remove SSHLoginResponse alias in lib/auth

* Remove TrustedCerts alias in lib/auth

* Remove AuthoritiesToTrustedCerts alias in lib/auth

* Move auth.HostFQDN to authclient

* Move auth.WithClusterCAs, auth.DefaultClientCertPool and auth.ClientCertPool to authclient

* Switch alpn proxy to use authclient.CAGetter instead of auth.ReadProxyAccessPoint

* Use a smaller scoped interfaces in lib/proxy/peer to remove lib/auth dependency

* Move auth.TryCreateAppSessionForClientCertV15 to authclient

* Move auth.ErrNoMFADevices to authclient

* Move access point interfaces to authclient. Aliases left behind to prevent breaking builds

* remove lib/auth dependency from lib/reversetunnelclient

* fix lints

* fix license

* Bump e ref to include gravitational/teleport.e#4174

* Use authclient.Client in new tctl diag commands

* Stop using auth.UserTokenType aliases
rosstimothy added a commit that referenced this pull request May 17, 2024
* Remove authclient.Client/ClientI/NewClient aliases in lib/auth

* Remove WebSessionReq aliases in lib/auth

* Remove GithubAuthResponse aliases in lib/auth

* Remove GithubAuthRequest aliases in lib/auth

* Remove KubeCSR alias in lib/auth

* Remove KubeCSRResponse alias in lib/auth

* Remove OIDCAuthResponse alias in lib/auth

* Remove OIDCAuthRequest alias in lib/auth

* Remove ValidateOIDCAuthCallbackReq alias in lib/auth

* Remove OIDCAuthRawResponse alias in lib/auth

* Remove CreateUserTokenRequest alias in lib/auth

* Remove SAMLAuthResponse alias in lib/auth

* Remove SAMLAuthRequest alias in lib/auth

* Remove ValidateSAMLResponseReq alias in lib/auth

* Remove SAMLAuthRawResponse alias in lib/auth

* Remove ValidateTrustedClusterRequest alias in lib/auth

* Remove ValidateTrustedClusterRequestRaw alias in lib/auth

* Remove ValidateTrustedClusterResponse alias in lib/auth

* Remove ValidateTrustedClusterResponseRaw alias in lib/auth

* Remove AuthenticateUserRequest alias in lib/auth

* Remove ForwardedClientMetadata alias in lib/auth

* Remove PassCreds alias in lib/auth

* Remove OTPCreds alias in lib/auth

* Remove SessionCreds alias in lib/auth

* Remove AuthenticateSSHRequest alias in lib/auth

* Remove SSHLoginResponse alias in lib/auth

* Remove TrustedCerts alias in lib/auth

* Remove AuthoritiesToTrustedCerts alias in lib/auth

* Move auth.HostFQDN to authclient

* Move auth.WithClusterCAs, auth.DefaultClientCertPool and auth.ClientCertPool to authclient

* Switch alpn proxy to use authclient.CAGetter instead of auth.ReadProxyAccessPoint

* Use a smaller scoped interfaces in lib/proxy/peer to remove lib/auth dependency

* Move auth.TryCreateAppSessionForClientCertV15 to authclient

* Move auth.ErrNoMFADevices to authclient

* Move access point interfaces to authclient. Aliases left behind to prevent breaking builds

* remove lib/auth dependency from lib/reversetunnelclient

* fix lints

* fix license

* Bump e ref to include gravitational/teleport.e#4174

* Use authclient.Client in new tctl diag commands

* Stop using auth.UserTokenType aliases
github-merge-queue bot pushed a commit that referenced this pull request May 20, 2024
* Replace dependencies on lib/auth with lib/authclient (#41623)

* Remove authclient.Client/ClientI/NewClient aliases in lib/auth

* Remove WebSessionReq aliases in lib/auth

* Remove GithubAuthResponse aliases in lib/auth

* Remove GithubAuthRequest aliases in lib/auth

* Remove KubeCSR alias in lib/auth

* Remove KubeCSRResponse alias in lib/auth

* Remove OIDCAuthResponse alias in lib/auth

* Remove OIDCAuthRequest alias in lib/auth

* Remove ValidateOIDCAuthCallbackReq alias in lib/auth

* Remove OIDCAuthRawResponse alias in lib/auth

* Remove CreateUserTokenRequest alias in lib/auth

* Remove SAMLAuthResponse alias in lib/auth

* Remove SAMLAuthRequest alias in lib/auth

* Remove ValidateSAMLResponseReq alias in lib/auth

* Remove SAMLAuthRawResponse alias in lib/auth

* Remove ValidateTrustedClusterRequest alias in lib/auth

* Remove ValidateTrustedClusterRequestRaw alias in lib/auth

* Remove ValidateTrustedClusterResponse alias in lib/auth

* Remove ValidateTrustedClusterResponseRaw alias in lib/auth

* Remove AuthenticateUserRequest alias in lib/auth

* Remove ForwardedClientMetadata alias in lib/auth

* Remove PassCreds alias in lib/auth

* Remove OTPCreds alias in lib/auth

* Remove SessionCreds alias in lib/auth

* Remove AuthenticateSSHRequest alias in lib/auth

* Remove SSHLoginResponse alias in lib/auth

* Remove TrustedCerts alias in lib/auth

* Remove AuthoritiesToTrustedCerts alias in lib/auth

* Move auth.HostFQDN to authclient

* Move auth.WithClusterCAs, auth.DefaultClientCertPool and auth.ClientCertPool to authclient

* Switch alpn proxy to use authclient.CAGetter instead of auth.ReadProxyAccessPoint

* Use a smaller scoped interfaces in lib/proxy/peer to remove lib/auth dependency

* Move auth.TryCreateAppSessionForClientCertV15 to authclient

* Move auth.ErrNoMFADevices to authclient

* Move access point interfaces to authclient. Aliases left behind to prevent breaking builds

* remove lib/auth dependency from lib/reversetunnelclient

* fix lints

* fix license

* Bump e ref to include gravitational/teleport.e#4174

* Use authclient.Client in new tctl diag commands

* Stop using auth.UserTokenType aliases

* Update e to include gravitational/teleport.e#4198

* fix: tests
github-merge-queue bot pushed a commit that referenced this pull request May 20, 2024
* Replace dependencies on lib/auth with lib/authclient (#41623)

* Remove authclient.Client/ClientI/NewClient aliases in lib/auth

* Remove WebSessionReq aliases in lib/auth

* Remove GithubAuthResponse aliases in lib/auth

* Remove GithubAuthRequest aliases in lib/auth

* Remove KubeCSR alias in lib/auth

* Remove KubeCSRResponse alias in lib/auth

* Remove OIDCAuthResponse alias in lib/auth

* Remove OIDCAuthRequest alias in lib/auth

* Remove ValidateOIDCAuthCallbackReq alias in lib/auth

* Remove OIDCAuthRawResponse alias in lib/auth

* Remove CreateUserTokenRequest alias in lib/auth

* Remove SAMLAuthResponse alias in lib/auth

* Remove SAMLAuthRequest alias in lib/auth

* Remove ValidateSAMLResponseReq alias in lib/auth

* Remove SAMLAuthRawResponse alias in lib/auth

* Remove ValidateTrustedClusterRequest alias in lib/auth

* Remove ValidateTrustedClusterRequestRaw alias in lib/auth

* Remove ValidateTrustedClusterResponse alias in lib/auth

* Remove ValidateTrustedClusterResponseRaw alias in lib/auth

* Remove AuthenticateUserRequest alias in lib/auth

* Remove ForwardedClientMetadata alias in lib/auth

* Remove PassCreds alias in lib/auth

* Remove OTPCreds alias in lib/auth

* Remove SessionCreds alias in lib/auth

* Remove AuthenticateSSHRequest alias in lib/auth

* Remove SSHLoginResponse alias in lib/auth

* Remove TrustedCerts alias in lib/auth

* Remove AuthoritiesToTrustedCerts alias in lib/auth

* Move auth.HostFQDN to authclient

* Move auth.WithClusterCAs, auth.DefaultClientCertPool and auth.ClientCertPool to authclient

* Switch alpn proxy to use authclient.CAGetter instead of auth.ReadProxyAccessPoint

* Use a smaller scoped interfaces in lib/proxy/peer to remove lib/auth dependency

* Move auth.TryCreateAppSessionForClientCertV15 to authclient

* Move auth.ErrNoMFADevices to authclient

* Move access point interfaces to authclient. Aliases left behind to prevent breaking builds

* remove lib/auth dependency from lib/reversetunnelclient

* fix lints

* fix license

* Bump e ref to include gravitational/teleport.e#4174

* Use authclient.Client in new tctl diag commands

* Stop using auth.UserTokenType aliases

* Update e to include gravitational/teleport.e#4197

* fix: tests
justinas pushed a commit that referenced this pull request May 20, 2024
* Remove authclient.Client/ClientI/NewClient aliases in lib/auth

* Remove WebSessionReq aliases in lib/auth

* Remove GithubAuthResponse aliases in lib/auth

* Remove GithubAuthRequest aliases in lib/auth

* Remove KubeCSR alias in lib/auth

* Remove KubeCSRResponse alias in lib/auth

* Remove OIDCAuthResponse alias in lib/auth

* Remove OIDCAuthRequest alias in lib/auth

* Remove ValidateOIDCAuthCallbackReq alias in lib/auth

* Remove OIDCAuthRawResponse alias in lib/auth

* Remove CreateUserTokenRequest alias in lib/auth

* Remove SAMLAuthResponse alias in lib/auth

* Remove SAMLAuthRequest alias in lib/auth

* Remove ValidateSAMLResponseReq alias in lib/auth

* Remove SAMLAuthRawResponse alias in lib/auth

* Remove ValidateTrustedClusterRequest alias in lib/auth

* Remove ValidateTrustedClusterRequestRaw alias in lib/auth

* Remove ValidateTrustedClusterResponse alias in lib/auth

* Remove ValidateTrustedClusterResponseRaw alias in lib/auth

* Remove AuthenticateUserRequest alias in lib/auth

* Remove ForwardedClientMetadata alias in lib/auth

* Remove PassCreds alias in lib/auth

* Remove OTPCreds alias in lib/auth

* Remove SessionCreds alias in lib/auth

* Remove AuthenticateSSHRequest alias in lib/auth

* Remove SSHLoginResponse alias in lib/auth

* Remove TrustedCerts alias in lib/auth

* Remove AuthoritiesToTrustedCerts alias in lib/auth

* Move auth.HostFQDN to authclient

* Move auth.WithClusterCAs, auth.DefaultClientCertPool and auth.ClientCertPool to authclient

* Switch alpn proxy to use authclient.CAGetter instead of auth.ReadProxyAccessPoint

* Use a smaller scoped interfaces in lib/proxy/peer to remove lib/auth dependency

* Move auth.TryCreateAppSessionForClientCertV15 to authclient

* Move auth.ErrNoMFADevices to authclient

* Move access point interfaces to authclient. Aliases left behind to prevent breaking builds

* remove lib/auth dependency from lib/reversetunnelclient

* fix lints

* fix license

* Bump e ref to include gravitational/teleport.e#4174

* Use authclient.Client in new tctl diag commands

* Stop using auth.UserTokenType aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
application-access backport/branch/v14 backport/branch/v15 database-access Database access related issues and PRs kubernetes-access machine-id no-changelog Indicates that a PR does not require a changelog entry size/md tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants