Skip to content

Fix cert validation become for remote_src certificates#97

Closed
Oddly wants to merge 1 commit intomainfrom
fix/cert-validate-become-remote-src
Closed

Fix cert validation become for remote_src certificates#97
Oddly wants to merge 1 commit intomainfrom
fix/cert-validate-become-remote-src

Conversation

@Oddly
Copy link
Owner

@Oddly Oddly commented Mar 12, 2026

Summary

  • When elasticsearch_tls_remote_src: true, certificate files live on the remote host and may require elevated privileges to read (e.g. FreeIPA-managed certs in /etc/pki)
  • The validation tasks previously hardcoded become: false, causing permission denied errors
  • Sets become dynamically based on _validate_remote_src — local certs validated without privilege escalation, remote certs use become as expected

Test plan

  • Run with elasticsearch_tls_remote_src: true and certificates requiring root access on the remote host
  • Verify elasticsearch_tls_remote_src: false (default) still works without become

🤖 Generated with Claude Code

When elasticsearch_tls_remote_src is true, certificate files live on
the remote host and may require elevated privileges to read (e.g.
FreeIPA-managed certs in /etc/pki). The validation tasks previously
hardcoded become: false, which caused permission denied errors when
validating remote certificates.

Set become dynamically based on _validate_remote_src so that local
certs are validated without privilege escalation while remote certs
use become as expected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Oddly
Copy link
Owner Author

Oddly commented Mar 12, 2026

Recreating from up-to-date main branch.

@Oddly Oddly closed this Mar 12, 2026
Oddly added a commit that referenced this pull request Mar 12, 2026
When elasticsearch_tls_remote_src is true, certificate files live on the
remote host and may require elevated privileges to read (e.g. FreeIPA
certs in /etc/pki). The validation tasks previously hardcoded become:
false, causing permission denied errors. Now become is set dynamically
based on _validate_remote_src — local certs are validated without
privilege escalation, remote certs use become as expected.

Replaces #97 (rebased on current main).
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.

1 participant