Configuring Google Cloud Storage
Learn how to connect your Google Cloud Storage bucket to pdf noodle using HMAC access key + secret, allowing you to use GCS as an S3-compatible backend for private PDF uploads and downloads. This guide walks you through creating your bucket, enabling HMAC authentication, assigning the correct IAM permissions, and adding your credentials to pdf noodle.1. Create or Select Your GCS Bucket
If you don’t already have a bucket:- Go to Google Cloud Console → Cloud Storage → Buckets
- Click Create
- Choose:
- Bucket Name: Your choice (I’m using
pdfnoodle-gcp-test) - Location: Region closest to your users
- Storage class: Standard (recommended)
- Public access: Prevent public access (ON)
- Access control: Uniform (required)
- Finish creation
2. Create a service account
Now let’s set up the service account that pdf noodle will use when interacting with your Google Cloud Storage bucket. This account defines exactly what pdf noodle is allowed to do inside your bucket: uploading files, reading them back, or both. If you already have a dedicated service account for storage operations, feel free to move on to the next step. Here’s how to do it:- Go to Google Cloud Console → IAM & Admin → Service Accounts
- Click Create Service Account
- Enter a name (e.g., pdf-noodle-storage) and click Create and Continue
- Assign the required permissions:
Upload-only (maximum privacy)
Choose this if you want pdf noodle to upload files but never read them. Add the role:Upload + Read (full integration)
Choose this if you want pdf noodle to upload, read, or validate files. Add both roles:Important: This guide uses
Storage Object Creator under the assumption
that you won’t be overwriting files with the same key (filename). If your
workflow requires pdf noodle to replace existing files, switch to Storage Object Admin to avoid permission errors during upload.
3. Create Credentials and Grant Access to Your Bucket
Now that your service account is ready, you’ll generate the HMAC access key and secret that pdf noodle will use to communicate with Google Cloud Storage through the S3-compatible API.
- Go to Google Cloud Console → Cloud Storage → Settings → Interoperability
- Scroll to the HMAC keys section
- Click Create a key for a service account
- Select the service account you just created
- Click Create Key to generate your:
- Access Key ID
- Secret Access Key
These credentials allow pdf noodle to authenticate with your bucket using
S3-style requests. Make sure to store the secret key securely. It is only
shown once.
4. Add GCS Credentials to pdf noodle
1. In pdf noodle, go to Settings > S3 Configuration.
2. Click Add S3 Connection, then enter:
- Provider: Google Cloud Storage
- Access Key and Secret Key
- Bucket Name
- (Optional): Enable Upload access only if you don’t want pdf noodle to read from the bucket.
3. Click Continue. If everything’s configured properly, you’ll see a success message.
pdf noodle will attempt to upload a test file to:
pdfnoodle_test/delete_me_{date}.txt
Since we don’t have delete permissions, you’ll need to remove that file manually later.
Hint: If you see an error, double-check your credentials and bucket
permissions.
Step 6: Set as Default Storage
Go back to your S3 settings in pdf noodle and select your new connection as the default bucket. All future PDFs will now be saved there. 🎉