How Render built OIDC with short-lived tokens and automatic refresh
Brief
Render details the security design and token delivery system behind its recently launched OIDC support for third-party service providers.
Token security
- Render-issued tokens expire 60 minutes after issuance, limiting the usefulness of a leaked token while leaving time to recover if token issuance is interrupted.
- The subject claim can identify a service, environment, or workspace. Each workspace also gets a distinct issuer URL, so a provider can reject tokens from other workspaces even if subject validation is disabled.
- Audience claims bind tokens to their intended provider, preventing one provider from reusing a token meant for another.
Automatic token delivery
- Because many provider SDKs expect to read OIDC tokens from files, Render runs an OIDC Daemon outside each service container to write and refresh token files.
- The daemon writes to a shared directory backed by the host’s in-memory filesystem; the service receives a read-only bind mount.
- Render configures provider-specific environment variables and credential files, so applications do not need to manage token fetching or rotation themselves.
Generated by AI from the original article. Check the source for full details.