-
Notifications
You must be signed in to change notification settings - Fork 724
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
Support remote clusters using API keys #8089
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
851219b
Remote Clusters using API Keys
barkbay fb34ee7
Cosmetic changes
barkbay ed29168
Publish the remote cluster Service to the client, not the Pod IP
barkbay 4c2c6fe
Use existing headless service
barkbay 8735592
[DOC] Update issuing node transport certificates with third-party tools
barkbay 5ec1e8d
[E2E] Add end-to-end test
barkbay 875c169
[E2E] Also attempt to search + more details about errors
barkbay c1223bd
Only delete the keystore which has been initially loaded
barkbay ab442d1
Add API keystore Secret expectations
barkbay 2a8cd2d
Update from review
barkbay b6bf462
Add support for access.search.query
barkbay 3225307
Add support for allow_restricted_indices
barkbay 6576910
Fix unit tests
barkbay e9fd909
Apply Peter's suggestions
barkbay 8c0a6fb
Add ForgetChangeFor
barkbay c42c3f1
Handle conflict
barkbay ba62848
Merge remote-tracking branch 'origin/main' into rcs2-pr
barkbay 9af83ee
typos
barkbay 823ee1e
Apply suggestions from code review
barkbay e4e053a
Update comments
barkbay c1dab18
Merge remote-tracking branch 'origin/main' into rcs2-pr
barkbay a35d056
make generate
barkbay 610423a
Fix expected license
barkbay 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 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 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 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 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default the published host is the Pod's IP address. While that IP address is automatically added in the ECK managed transport certificate it is not possible to include it when using the cert-manager (cert-manager/csi-driver#17).
That's why I decided to use the Pod hostname as available through the existing headless Service (so it can be resolved by other Pods).
It still has the downside that when using cert-manager CSI driver, the
csi.cert-manager.io/dns-names
is now a bit involved, something along the lines of:${POD_NAME}.${POD_NAMESPACE}.svc.cluster.local
is the existing, recommended DNS name, from our documentation (I guess it only works because ofverification_mode: certificate
in the transport configuration)${POD_NAME}.<cluster-name>-es-<nodeset-name>.${POD_NAMESPACE}.svc
is to match the published host.<cluster-name>-es-remote-cluster.${POD_NAMESPACE}.svc
is to match the remote cluster service.(I think an alternative would be to try to use
verification_mode: certificate
for the remote cluster server, this is something I wanted to avoid)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine