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

Error when getting secret from google #659

Open
Hraesvelg opened this issue Nov 11, 2024 · 0 comments
Open

Error when getting secret from google #659

Hraesvelg opened this issue Nov 11, 2024 · 0 comments

Comments

@Hraesvelg
Copy link

SUMMARY

When i try a simple task to get secret from google secret manager i got an unexpected result

ISSUE TYPE
  • Bug Report
ANSIBLE VERSION
ansible [core 2.17.3]
COLLECTION VERSION
  - name: google.cloud
    version: "1.4.1"
OS / ENVIRONMENT

Linux

STEPS TO REPRODUCE
- name: Test secret using env variables for credentials
  debug:
    msg: "secret : {{ lookup('google.cloud.gcp_secret_manager', key='projects/xxx/my_secret', auth_kind='machineaccount', version='1') }}"
EXPECTED RESULTS

Get my secret value

ACTUAL RESULTS
fatal: [project]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'google.cloud.gcp_secret_manager'. Error was a <class 'requests.exceptions.JSONDecodeError'>, original message: Expecting value: line 1 column 1 (char 0). Expecting value: line 1 column 1 (char 0)"}
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

No branches or pull requests

1 participant