rill
rill copied to clipboard
Reduce runtime access token TTL to 30 mins by default
- Sets the TTL of JWTs issued for the UI and CLI to 30 minutes
- This TTL can be overridden if necessary using the new
access_token_ttl_secondsparameter for theAdminService.GetProjectAPI
- This TTL can be overridden if necessary using the new
- Keeps the default TTL of JWTs issued for embedding at 24 hours
- This is necessary since embedders with low-risk use cases won't implement in-browser refresh, and users may keep a tab open for several hours or longer
- Security conscious embedders should implement in-browser token refresh and set a lower TTL
- This TTL can be overridden by embedders using the
ttl_secondsparameter for theAdminService.GetIFrameAPI
This PR should not be merged until https://github.com/rilldata/rill/issues/3876 is closed.
This PR closes https://github.com/rilldata/rill-private-issues/issues/115.