Apify and Crawlee Official Forum

Updated 4 months ago

GCP Authentication

I want to authenticate a custom actor to write to GCP Cloud Storage. While coding this up is easy, does APIFY provide an option on the console to store the keys used for authentication?

I wonder if there is a way to provide authentication to GCP via GitHub CI/CD.

Can someone help me on this?
L
D
6 comments
Hi . Thanks for asking!
You can create so called "secret input", by adding "isSecret": true to your input schema property.

Here is an arctile regarding this
https://docs.apify.com/platform/actors/development/actor-definition/input-schema/secret-input

Also there is already an GCP Actor in the Apify store, ill share it here just in case you would want to use it / get inspired by it πŸ™‚
https://apify.com/vojtam/gcp-uploader
Hi Lukas, thank you for sharing this information! This is quite useful!!!
Hi Lukas,
I also found this option to set environment varibales for the actor:
https://docs.apify.com/platform/actors/development/programming-interface/environment-variables

Is using Actor input considered the best practise?

I would like to set the authentication key once and forget about it. (As we all do)
Hi , yes thats another option.
I would say if you just want to set it once and then not worry about it, I would go with the Environment variables. Secret Inputs are great if you want to release the Actor to store or if you plan to change the key often, but both approaches should achieve the same result. Hope it helps πŸ™‚
Hi Lukas, that helps!!
Thank you for your insight
No problem, glad it helped πŸ™‚.
Add a reply
Sign up and join the conversation on Discord