Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Do not set auth gateway public addrs. (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
r0mant authored Aug 15, 2019
1 parent bd080ed commit 870b30d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.assets/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ TELEKUBE_TSH_PKG := gravitational.io/tsh_$(OS)_$(ARCH):$(GRAVITY_TAG)

# Version of tsh binary that gets published into distribution OpsCenter, may differ from
# the one Gravity currently depends on
TELEKUBE_TSH_TAG := v3.0.4
TELEKUBE_TSH_TAG := v3.2.7

# Extra flags that may be provided when publishing telekube artifacts (e.g. --insecure)
TELEKUBE_PUBLISH_FLAGS ?=
Expand Down
5 changes: 1 addition & 4 deletions lib/process/teleport.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (p *Process) getOrInitAuthGatewayConfig() (storage.AuthGateway, error) {
// process which doesn't support auth gateway reconfiguration.
return nil, nil
}
cluster, err := p.backend.GetLocalSite(defaults.SystemAccountID)
_, err := p.backend.GetLocalSite(defaults.SystemAccountID)
if err != nil {
if trace.IsNotFound(err) {
// There's no local cluster which likely means that process is
Expand Down Expand Up @@ -127,9 +127,6 @@ func (p *Process) getOrInitAuthGatewayConfig() (storage.AuthGateway, error) {
if err != nil {
return nil, trace.Wrap(err)
}
// Initially the local cluster name is set as a principal.
authGateway.SetSSHPublicAddrs([]string{cluster.Domain})
authGateway.SetKubernetesPublicAddrs([]string{cluster.Domain})
err = opsservice.UpsertAuthGateway(client, p.identity, authGateway)
if err != nil {
return nil, trace.Wrap(err)
Expand Down

0 comments on commit 870b30d

Please sign in to comment.