If I want to publish private bucket content over the internet, meaning I want to host my static website on a private bucket and add an HTTPS load balancer as the frontend, it’s not working.
In AWS, it’s easily possible to publish a private bucket through CloudFront.
Take a look at this guide on how to configure a bucket to host a static website. Cloud Storage doesn’t support custom domains with HTTPS on its own, the mentioned guide utilizes Cloud Storage with an external Application Load Balancer to serve content from a custom domain over HTTPS.
what if there is an Org policy in place that prevents public access to the bucket. what would be Google’s workaround that ?
Message:
IAM policy update failed
You cannot add the principals allUsers or allAuthenticatedUsers to the bucket’s policy because public access prevention is enforced. This constraint could be enforced at the bucket, project, folder, or organization level. Ask your org or project administrator about access options.
@ZKH Unfortunately you can not do this with google cloud bucket, as the lb backend already has an GCS category, which doesnt have this option to use private origin