-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Introduce config v3, add auth_server and proxy_server, remove auth_addresses #15761
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
Merged
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
00a2969
Introduce config v3, add auth_server and proxy_address
ryanclark 78d7af2
Rename `join_method` to `method`
ryanclark 98b729a
Remove random file
ryanclark 73c19a1
Add `AuthToken` back for config v1 & v2, error if used in v3
ryanclark e371fd5
Only validate that auth_server isn't set when the auth service isn't …
ryanclark 265a92c
Improve the error message for using auth_token with config v3
ryanclark ebc226c
Fix tests
ryanclark 53e267b
Set default config version for tctl commands
ryanclark a7f21a7
Fix tests, set default config version to v1
ryanclark b3d5491
Remove ProxyServer test
ryanclark 2485cdd
Change all nodes created during proxy testing to use config v3 & `Pro…
ryanclark b1a63a8
Allow proxy address to be given when registering a node
ryanclark c0910e0
Improve port checking warnings
ryanclark b0eb57d
Detect if a proxy address is an auth server during registration
ryanclark 6ce02d9
Only set the auth server address if a proxy address isn't given
ryanclark 7689635
Correctly set the CA path when `data_dir` is specified in the config
ryanclark 40c37fd
Improve the bad parameter error when using auth_servers with v3
ryanclark 3e36b08
Change `newClient` to use different connection strategies based on th…
ryanclark 1272025
Wording changes for consistency
ryanclark 10691d8
Add a changelog for the config versions
ryanclark 39b6f12
Fix typo, wrap error
ryanclark 66ea782
Remove duplicate error reporting
ryanclark 7d36d63
Change `switch` version checks to `if` statements
ryanclark 391bcf8
Use `TeleportConfigVersions` instead of `TeleportVersions`
ryanclark cbda2b7
Remove version check when retrieving the value of auth server addresses
ryanclark ae5d5ea
Simplify variable names now they're now scoped
ryanclark e62327e
Improve the API for getting & setting auth server addresses
ryanclark 92a8dc2
Fix comment spacing
ryanclark fcd8550
Add method for validating join methods
ryanclark 17f137e
Improve the token application logic
ryanclark 34797fa
Add the auth listen address to the auth servers list only when empty
ryanclark 1bc1f2d
Add discover_service to the expected error message
ryanclark 7e71303
Fix the logic for setting join params
ryanclark 989e429
Append to auth servers when starting a node during tests with config …
ryanclark 7339dbe
Apply suggestions from code review
ryanclark adb3e8b
Only attempt to registry through the proxy when given a proxy address
ryanclark faf76b1
Merge config checking and default setting into one method
ryanclark 213293c
Check if both proxy_server and auth_server are set when applying the …
ryanclark 949948f
Remove unneeded switch statement
ryanclark be9a4b3
Fix punctuation
ryanclark bdcff43
Improve the go doc for `JoinStrings`
ryanclark 216d971
Reword the messaging to convey a connection is actually going to the …
ryanclark f7ce5b4
Change the fake tokens to obvious fake ones
ryanclark 0977d5b
Undo whitespace changes
ryanclark 464832a
Apply suggestions from code review
ryanclark c3acd9d
Change the configure AD script to output a v3 config
ryanclark 9b4d0d3
Add `auth_token` back in
ryanclark 4c3f4b1
Remove notice from the top of the config page
ryanclark b956340
Update e ref
ryanclark e437493
Update helm snaphot
ryanclark a23a192
Change the configure AD script to use `auth_token`
ryanclark 83b4b11
Improve the error message for validating the join method
ryanclark 25dfbea
Fix correct assertion
ryanclark be6c859
Do not enable the kube service if the config version is empty
ryanclark a2f4ce5
Update bats tests
ryanclark 10225fb
Also check if the config version is empty
ryanclark dff9cfd
Update e ref
ryanclark 294edde
Update e ref
ryanclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.