You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The plugin in its latest version, take the environment variables Booleans as strings hence breaking the logic for the boolean flags
To Reproduce
Steps to reproduce the behavior:
put a breakpoint in the node_modules provider.js file in the package folder every where basically and you will see that the flags are always true because conditions are checking !boolean on string wich always returns true.
Expected behavior
boolean should remain boolean and not be parsed as string.
Screenshots
I had to duplicate the plugin and run it locally and push this fix which is not the best one but it is workaround that works for me.
Desktop (please complete the following information):
OS: MacOS
Additional context
Should be addressed because this can cause a lot confusion and burn time because this all provider thing is complicated enough with many moving parts starting from google cloud, bucket, service account etc. i mean there can be enough failure points and caveats so we should try and make sure we help the devs :)
And also make sure you mention that the dev needs to give the service account this role: gcloud projects add-iam-policy-binding PROJECT_ID --member=serviceAccount:ACCOUNT_EMAIL --role=roles/iam.serviceAccountTokenCreator
Because without that the app wont be able to sign those urls.
The text was updated successfully, but these errors were encountered:
I will push a new release code today with a quick fix for your problem, not sure eval are the best solution... but I've no time to find something better 🤣
Please try the latest release : 4.10.2 and tell me if it's working fine !!
Describe the bug
The plugin in its latest version, take the environment variables Booleans as strings hence breaking the logic for the boolean flags
To Reproduce
Steps to reproduce the behavior:
Expected behavior
boolean should remain boolean and not be parsed as string.
Screenshots
I had to duplicate the plugin and run it locally and push this fix which is not the best one but it is workaround that works for me.
Desktop (please complete the following information):
Additional context
Should be addressed because this can cause a lot confusion and burn time because this all provider thing is complicated enough with many moving parts starting from google cloud, bucket, service account etc. i mean there can be enough failure points and caveats so we should try and make sure we help the devs :)
Also I would suggest to add more flags to the return signed URL method like the cname or virtually control as can be seen here:
https://googleapis.dev/nodejs/storage/latest/Bucket.html#getSignedUrl
And also make sure you mention that the dev needs to give the service account this role:
gcloud projects add-iam-policy-binding PROJECT_ID --member=serviceAccount:ACCOUNT_EMAIL --role=roles/iam.serviceAccountTokenCreator
Because without that the app wont be able to sign those urls.
The text was updated successfully, but these errors were encountered: