Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Scribd Tech 2 min read Announcement mediumAdept

Don’t hardcode IAM credentials in GitHub!

Instead of distributing long-lived IAM access keys to GitHub Actions, Scribd uses an AWS IAM OIDC identity provider so workflows assume IAM roles via aws-actions/configure-aws-credentials, avoiding key rotation and tracking problems. To avoid repeating per-repository setup of the OIDC provider, role trust scoped to a repo and branch, and S3/ECR read or write policies, Scribd open sourced terraform-oidc-module, shown with a sample configuration taking the token URL, client IDs, thumbprints, repo refs and custom policy ARNs.

Related posts

  • Inside Figma: getting out of the (secure) shell

    Figma mediumAdept

    Figma replaced its SSH bastion hosts with a zero-trust shell access system built on AWS SSO (backed by Okta with WebAuthn and device trust) and AWS Systems Manager Session Manager, so instances need no exposed SSH ports and access uses short-lived, minimally privileged IAM role credentials. Practical guidance covers scoping IAM policies for EC2 and ECS targets, restricting SSM documents, using RunCommand instead of SSH in deploy scripts, shipping session logs to a locked-down S3 account, and locking down SSM even when unused, since the preinstalled agent and broad default policies are an attack surface. Rollout went from SSH tunneled over SSM, through a grace period and a block on inbound bastion traffic with break-glass access, to a CLI script wrapping aws-vault and the AWS CLI that replaced SSH entirely and gave full session transcripts.

  • How Hugging Face Scaled Secrets Management for AI Infrastructure

    Hugging Face mediumAdept

    Hugging Face moved secrets management to Infisical as its infrastructure grew from AWS-only to multi-cloud (Azure, GCP), choosing it over HashiCorp Vault for developer workflows and multi-cloud abstraction. In Kubernetes, the Infisical Operator syncs secrets via an InfisicalSecret CRD into native Kubernetes secrets and can auto-reload Deployments. Engineers still prefer manual redeploys for control at over 10 million requests per minute. RBAC is mapped from Okta groups, the CLI replaces local .env files, and CI/CD uses GitHub Actions with OIDC, Terraform and self-hosted runners.

  • Docker OIDC connections for GitHub Actions available for Docker Orgs

    Docker mediumAdept

    Docker Hub now accepts GitHub Actions OIDC tokens, letting workflows exchange a signed per-run JWT for a short-lived, scoped Docker access token instead of storing long-lived PATs or OATs as secrets. Docker verifies the token signature against GitHub's keys and matches its subject claim against up to five rulesets per connection, which can pin access to specific repos and branches. Setup requires creating a connection in Docker Home, granting `id-token: write`, and setting `DOCKERHUB_OIDC_CONNECTIONID` for docker/login-action v4.5.0+. It is available to Team, Business, DHI and DSOS organizations; existing tokens keep working and non-GitHub CI still uses PATs/OATs.

  • How to create an AWS S3 bucket for Postgres backups

    Neon mediumAdept

    Part 1 of a series on automating nightly Postgres backups from many Neon projects to S3 via scheduled GitHub Actions covers the AWS setup. It registers GitHub's OIDC identity provider (token.actions.githubusercontent.com, audience sts.amazonaws.com), creates a web-identity IAM role scoped to a specific repository, and creates a general-purpose S3 bucket. A bucket policy then grants that role List, Get, Put and Delete access. Bucket region matters, since distance from the databases lengthens backup jobs, and the account ID, bucket name and role name should be stored as GitHub Secrets for part 2.

  • Security Disclosure Recommendation: Redeploy Buckets and Reconnect GitHub After the Credential Reset

    Railway mediumAdept

    After a security disclosure, Railway invalidated and regenerated S3 access keys for every storage bucket and removed the GitHub tokens it held, including GHCR registry tokens stored on services. These resets show in the audit log under the Railway Staff actor type. Services pick up new bucket credentials only on redeploy because containers read variables at startup, so each service using a bucket needs a redeploy. Any pasted key values should be replaced with reference variables, and external tools need updating. Users must also reconnect their GitHub account and repo sources, revoke and recreate GHCR personal access tokens with read:packages, then check bucket files and audit logs for misuse during the exposure window.

The quest for software engineering knowledge.

Look:
Layout: