Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Timeout creating client in Google Cloud Function #12

Open
adambozson opened this issue Feb 23, 2021 · 3 comments
Open

Timeout creating client in Google Cloud Function #12

adambozson opened this issue Feb 23, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@adambozson
Copy link

adambozson commented Feb 23, 2021

I'm using service accounts set up and linked as per the documentation.
Setting the environment variable SECRETHUB_IDENTITY_PROVIDER=gcp, the python API works as expected inside containers running on GCP, e.g. in Cloud Run, under this service account.

I would like to access secrets inside serverless functions with python. Running the following in a Python 3.8 Google Cloud Function results in a hang and timeout:

import secrethub
client = secrethub.Client()

I have the appropriate service account and environment variable set on the Cloud Function. Egress is allowed to the internet. The secrethub package version is 0.1.1. Any tips would be appreciated (or even if someone could reproduce this), thanks!

@SimonBarendse
Copy link
Member

Thank you for reporting this experience! I'm sorry this isn't working as expected.

We're currently reproducing the problem and will keep you up-to-date in this ticket.

@SimonBarendse SimonBarendse added the bug Something isn't working label Feb 24, 2021
@Marton6
Copy link
Member

Marton6 commented Feb 24, 2021

We successfully reproduced the timeout. We're now investigating the underlying cause and possible solutions.

@Marton6
Copy link
Member

Marton6 commented Mar 16, 2021

I've pinpointed the problem to a specific function in the GCP SDK and am now investigating why this function hangs for Python Cloud functions functions specifically. I will let you know as soon as I find a solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants