Skip to content
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

vault_read module shows an error when disabling certificate validation #456

Open
imaximov89 opened this issue Oct 9, 2024 · 0 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@imaximov89
Copy link

SUMMARY

When using vault_read module with cert auth_method and validate_certs: false parameter an error message is shown

The error was: hvac.api.auth_methods.cert.CertificateAuthError: cacert must be True, a file_path, or valid CA Certificate.
ISSUE TYPE
  • Bug Report
COMPONENT NAME

vault_read

ANSIBLE VERSION
ansible [core 2.15.9]
COLLECTION VERSION
community.hashi_vault         6.2.0 
STEPS TO REPRODUCE
    - name: Read secret
      community.hashi_vault.vault_read:
        url: "https://vault:8200"
        path: secret/test
        auth_method: cert
        cacert: /home/user/certs/ca.crt
        cert_auth_private_key: /home/user/certs/psa.key
        cert_auth_public_key: /home/user/certs/psa.cer
        validate_certs: false
EXPECTED RESULTS

Vault secret information is displayed.

ACTUAL RESULTS

Error message is shown

hvac.api.auth_methods.cert.CertificateAuthError: cacert must be True, a file_path, or valid CA Certificate.
@imaximov89 imaximov89 changed the title vault_read module shows an error when disabling certificate valiadtion vault_read module shows an error when disabling certificate validation Oct 9, 2024
@briantist briantist added bug Something isn't working help wanted Extra attention is needed labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants