Skip to content

Conversation

alexcams
Copy link

@alexcams alexcams commented Sep 15, 2025

Avoid double-encoding opaque Elasticsearch API keys.

Previously, API keys that were already in encoded format were incorrectly re-encoded, causing connection failures. This update ensures that only raw keys are encoded, supporting both opaque and id:api-key formats without issue.

Closes #1222

@alexcams alexcams marked this pull request as draft September 15, 2025 15:17
@alexcams alexcams force-pushed the 17360-support-opaque-api-key branch from 11c27d6 to 574ec87 Compare September 15, 2025 15:19
@alexcams alexcams marked this pull request as ready for review September 15, 2025 17:24
Copy link
Contributor

@robbavey robbavey left a comment

Choose a reason for hiding this comment

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

Request to keep README.md as is, and a small nit

@alexcams alexcams force-pushed the 17360-support-opaque-api-key branch from 574ec87 to c2a9f32 Compare September 16, 2025 07:32
@alexcams alexcams requested a review from donoghuc September 16, 2025 17:17
Copy link
Contributor

@donoghuc donoghuc left a comment

Choose a reason for hiding this comment

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

Thanks for doing the refactor to make those internal methods actually private! This looks good. I see you added a section in the changelog (and proposed a patch release version there). We can follow up on all the steps to push a release separately. Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support opaque api_key
3 participants