I want to schedule an HTTP request with the usage of the Cloud scheduler. My service deployed on k8s is using basic auth. How to add such kind of authorization to the job? Does it require to specify this authorization inside the service account? I yes- then how? Should I use the OIDC token as the OAuth seems to be not a proper one? Lots of gratefulness for any answer from you. Wish you a good day anyway :)
Basic Auth is simply a login:password
base64 encoded in the header of the request. But, Cloud Scheduler doesn't propose to fill it on the UI.
However, if you use the gcloud CLI, you can do this
gcloud scheduler jobs create http --headers=Authorization="Basic <login:password base64 encoded> ...
You can have a look to the other parameters. You have retry policies which are also super great and not available on the UI.