Merge pull request #3002 from coreos-inc/joseph.schorr/QUAY-822/gc-app-tokens
Add a worker to automatically GC expired app specific tokens
This commit is contained in:
commit
d77aa9228f
7 changed files with 77 additions and 5 deletions
|
@ -495,6 +495,10 @@ class DefaultConfig(ImmutableConfig):
|
|||
# Feature Flag: If enabled, users can create and use app specific tokens to login via the CLI.
|
||||
FEATURE_APP_SPECIFIC_TOKENS = True
|
||||
|
||||
# How long expired app specific tokens should remain visible to users before being automatically
|
||||
# deleted. Set to None to turn off garbage collection.
|
||||
EXPIRED_APP_SPECIFIC_TOKEN_GC = '1d'
|
||||
|
||||
# The size of pages returned by the Docker V2 API.
|
||||
V2_PAGINATION_SIZE = 50
|
||||
|
||||
|
|
Reference in a new issue