Is it possible to directly send data to Cloud Pub/Sub from the internet? As far as i understand, this would be only possible using a service account. Is that right?
You can access Cloud Pub/Sub (and other Google Cloud Platform services) from outside the Google Cloud, yes. You need to be authenticated, which means either using a service account or authenticating as an end user who has access to the project. You can read more details in the Authentication Overview for Google Cloud Platform. The information is not specific th Cloud Pub/Sub.
Yes, it's possible. The schema here looks like that:
option.WithCredentialsJSON([]byte(JSON_KEY_CONTENT))No matter what language/library you use, the main idea is to sign every your request to GCP, using the created service account.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With