Skip to content

Update generate token endpoint to take external addresses#13844

Merged
ndhanushkodi merged 1 commit intomainfrom
peering/gen-token-ext-addr
Jul 21, 2022
Merged

Update generate token endpoint to take external addresses#13844
ndhanushkodi merged 1 commit intomainfrom
peering/gen-token-ext-addr

Conversation

@ndhanushkodi
Copy link
Copy Markdown
Contributor

@ndhanushkodi ndhanushkodi commented Jul 21, 2022

Update generate token endpoint (rpc, http, and api module)

If ServerExternalAddresses are set, it will override any addresses gotten from the "consul" service, and be used in the token instead, and dialed by the dialer. This allows for setting up a load balancer for example, in front of the consul servers.

(Addresses comments from https://github.com/hashicorp/consul-enterprise/pull/2363, and 2363 will get closed.)

PR Checklist

  • updated test coverage
  • external facing docs updated -future PR
  • not a security concern

@github-actions github-actions bot added pr/dependencies PR specifically updates dependencies of project theme/api Relating to the HTTP API interface labels Jul 21, 2022
@ndhanushkodi ndhanushkodi added theme/cluster-peering Related to Consul's cluster peering feature pr/no-changelog PR does not need a corresponding .changelog entry labels Jul 21, 2022
@ndhanushkodi ndhanushkodi force-pushed the peering/gen-token-ext-addr branch from 5ad62ac to 9a3b9fa Compare July 21, 2022 17:58
@ndhanushkodi ndhanushkodi requested a review from freddygv July 21, 2022 17:59
@ndhanushkodi ndhanushkodi force-pushed the peering/gen-token-ext-addr branch from 9a3b9fa to 663e375 Compare July 21, 2022 18:11
Copy link
Copy Markdown
Contributor

@freddygv freddygv left a comment

Choose a reason for hiding this comment

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

🚀

@ndhanushkodi ndhanushkodi merged commit f47319b into main Jul 21, 2022
@ndhanushkodi ndhanushkodi deleted the peering/gen-token-ext-addr branch July 21, 2022 21:56
ndhanushkodi added a commit that referenced this pull request Oct 18, 2022
* Reverts "update generate token endpoint to take external addresses (#13844)"

This reverts commit f47319b.
ndhanushkodi added a commit that referenced this pull request Oct 19, 2022
#14930)

* Reverts "update generate token endpoint to take external addresses (#13844)"

This reverts commit f47319b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/dependencies PR specifically updates dependencies of project pr/no-changelog PR does not need a corresponding .changelog entry theme/api Relating to the HTTP API interface theme/cluster-peering Related to Consul's cluster peering feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants