https://github.com/karupanerura/gcsproxy
HTTP Proxy for Goolge Cloud Storage
https://github.com/karupanerura/gcsproxy
google-cloud
Last synced: 9 months ago
JSON representation
HTTP Proxy for Goolge Cloud Storage
- Host: GitHub
- URL: https://github.com/karupanerura/gcsproxy
- Owner: karupanerura
- License: mit
- Created: 2022-06-04T07:47:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T07:33:51.000Z (over 2 years ago)
- Last Synced: 2025-01-11T16:55:35.515Z (about 1 year ago)
- Topics: google-cloud
- Language: Go
- Homepage:
- Size: 80.1 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gcsproxy
HTTP Proxy for Goolge Cloud Storage.
[](https://deploy.cloud.run)
## Motivation
Cloud Load Balancing can use Identity Aware Proxy (IAP) to restrict access.
IAPs can be applied to the Backend Service, but not to the Backend Bucket.
Therefore, access to Google Cloud Storage (GCS) cannot be restricted using IAP.
To apply IAP to Google Cloud Storage, you must access Google Cloud Storage (GCS) via the Backend Service.
Therefore, a Proxy to GCS acting as a Backend Service is required to restrict access for GCS.
## Usage
Deploy the built docker image `ghcr.io/karupanerura/gcsproxy:v0.0.5` to Cloud Run or any other services of Google Cloud Platform.
### Environment Variables
* GCS_PROXY_BUCKET: GCS bucket name. (required)
* GCS_PROXY_PATH_PREFIX: URL path prefix. use it as GCS object key from URL path exclude the path prefix. (default: "/")
* GCS_PROXY_INDEX_FILE: Index file name. (e.g. "index.html")
* GCS_PROXY_NOT_FOUND_PATH: Path for not found error. (e.g. "/404.html")
* GCS_PROXY_BASIC_AUTH: Basic Authentication Settings in .htpasswd format. (e.g. "usr1:kI6oFWZHn9A\nusr2:kI6oFWZHn9AJA")