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

external_account is not a valid Token enum value #722

Open
bjgbeelen opened this issue Apr 10, 2024 · 2 comments · May be fixed by #723
Open

external_account is not a valid Token enum value #722

bjgbeelen opened this issue Apr 10, 2024 · 2 comments · May be fixed by #723

Comments

@bjgbeelen
Copy link

I'm using the gcloud-aio-kms package locally and in production without any issues, thanks for that!

I'm now also trying to run my integration tests in Github Actions. i am using OIDC to authenticate via my github repo to act as a specific service account with permissions that are required. It looks like this approach returns some unexpected Token values. external_account is apparently not a valid enum value.

Thought I'd at least make you aware of the issue right now. I hope I will find the time soon to provide a PR to fix this, if this is still an issue by that time!

 File "/home/runner/work/payments/payments/.venv/lib/python3.11/site-packages/gcloud/aio/auth/token.py", line 166, in __init__
    |     self.token_type = Type(self.service_data['type'])
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/nix/store/2m6gdzz77ikkc5xwp3iiqi901339frp7-python3-3.11.8-env/lib/python3.11/enum.py", line 712, in __call__
    |     return cls.__new__(cls, value)
    |            ^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/nix/store/2m6gdzz77ikkc5xwp3iiqi901339frp7-python3-3.11.8-env/lib/python3.11/enum.py", line 1135, in __new__
    |     raise ve_exc
    | ValueError: 'external_account' is not a valid Type
@bjgbeelen bjgbeelen linked a pull request Apr 11, 2024 that will close this issue
@bjgbeelen
Copy link
Author

@msvensson222
Copy link

Hey @bjgbeelen - Did you find a way around getting your integration tests running in Github Actions? Facing similar issues.

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

Successfully merging a pull request may close this issue.

2 participants