Authentication¶
Securing access to rninja cache.
Token-Based Auth¶
Server Configuration¶
Or environment:
Client Configuration¶
Token Best Practices¶
Generate Strong Tokens¶
Token Organization¶
| Token | Use |
|---|---|
team-dev-xxx |
Development team |
ci-prod-xxx |
CI pipelines |
readonly-xxx |
Read-only access |
Token Rotation¶
- Add new token to server
- Update clients to use new token
- Remove old token
# Server: add new token
--tokens "old-token,new-token"
# Update clients
export RNINJA_CACHE_TOKEN=new-token
# Remove old token
--tokens "new-token"