GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - replit/dev-modules

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
aws-oidc
aws-oidc
 
 
azure-oidc
azure-oidc
 
 
gcp-oidc
gcp-oidc
 
 
infisical-oidc
infisical-oidc
 
 
jfrog-oidc
jfrog-oidc
 
 
lib
lib
 
 
vault-oidc
vault-oidc
 
 
CODEOWNERS
CODEOWNERS
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 

Repository files navigation

Replit Dev Modules

Prebuilt modules for authenticating Replit development sandboxes to external services using workload identity federation (WIF) and OpenID Connect (OIDC).

These modules are for development sandboxes only. They do not provide authentication for published apps, including Autoscale, Reserved VM, and Scheduled Deployments.

Modules

Module What it does
aws-oidc Sets up the AWS CLI and SDKs with short-lived AWS credentials
gcp-oidc Sets up gcloud and the Google Cloud SDKs with short-lived Google Cloud credentials
azure-oidc Sets up the Azure CLI and SDKs with short-lived Microsoft Entra credentials
vault-oidc Sets up the HashiCorp Vault CLI with short-lived Vault tokens
infisical-oidc Sets up the Infisical CLI with short-lived Infisical access tokens
jfrog-oidc Sets up the JFrog CLI with short-lived JFrog access tokens

Each module's README covers its usage and options.

How OIDC works

Replit development sandboxes support workload identity federation. Replit is an OpenID Connect (OIDC) identity provider, so external services can trust tokens issued to a development sandbox without requiring long-lived credentials.

This authentication setup does not carry over when you publish an app. Configure the published app's authentication separately using production app secrets.

Mint a short-lived token for an audience:

replit identityv2 create --audience <audience>

Tokens are issued by https://sts.replit.com. Services discover it at https://sts.replit.com/.well-known/openid-configuration and verify signatures against https://sts.replit.com/.well-known/jwks.json.

Every token carries at least these claims:

{
  "iss": "https://sts.replit.com",
  "sub": "//replit.com/customer/<customer-id>/org/<org-id>/<kind>/<sandbox-id>",
  "aud": "<audience>",
  "exp": 1767225900,
  "jti": "00000000-0000-0000-0000-000000000000",
  "kind": "<kind>",
  "customer_id": "<customer-id>",
  "org_id": "<org-id>",
  "sandbox_id": "<sandbox-id>",
  "resource_group_id": "<resource-group-id>",
  ...
}

The sub prefix //replit.com/customer/<customer-id>/org/<org-id>/ is the same for every token in an organization; the rest identifies the workload that minted it, and varies by kind. Additional claims depend on the kind of workload. Bind trust to org_id (or the sub prefix), not to the full subject.

To see your own values, decode a token's body:

replit identityv2 create --audience TEST \
  | cut -d. -f2 | tr '_-' '/+' | base64 -d 2>/dev/null | python3 -m json.tool

Security

Report vulnerabilities as described in SECURITY.md.

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Readme
MIT license

Security policy

Security policy
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.