diff --git a/charts/kellnr/Chart.yaml b/charts/kellnr/Chart.yaml index ad7c8ac..51091fa 100644 --- a/charts/kellnr/Chart.yaml +++ b/charts/kellnr/Chart.yaml @@ -13,7 +13,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 4.4.0 +version: 4.5.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. diff --git a/charts/kellnr/templates/config.yaml b/charts/kellnr/templates/config.yaml index b1b067b..243cce8 100644 --- a/charts/kellnr/templates/config.yaml +++ b/charts/kellnr/templates/config.yaml @@ -11,6 +11,12 @@ data: KELLNR_REGISTRY__MAX_CRATE_SIZE: {{ .Values.kellnr.registry.maxCrateSize | quote }} KELLNR_REGISTRY__MAX_DB_CONNECTIONS: {{ .Values.kellnr.registry.maxDbConnections | quote }} KELLNR_REGISTRY__AUTH_REQUIRED: {{ .Values.kellnr.registry.authRequired | quote }} + KELLNR_REGISTRY__ALLOW_OWNERLESS_CRATES: {{ .Values.kellnr.registry.allowOwnerlessCrates | quote }} + KELLNR_REGISTRY__TOKEN_CACHE_ENABLED: {{ .Values.kellnr.registry.token.cache.enabled | quote }} + KELLNR_REGISTRY__TOKEN_CACHE_TTL_SECONDS: {{ .Values.kellnr.registry.token.cache.ttlSeconds | quote }} + KELLNR_REGISTRY__TOKEN_CACHE_MAX_CAPACITY: {{ .Values.kellnr.registry.token.cache.maxCapacity | quote }} + KELLNR_REGISTRY__TOKEN_DB_RETRY_COUNT: {{ .Values.kellnr.registry.token.db.retryCount | quote }} + KELLNR_REGISTRY__TOKEN_DB_RETRY_DELAY_MS: {{ .Values.kellnr.registry.token.db.retryDelayMs | quote }} {{- if .Values.kellnr.registry.cookieSigningKey }} KELLNR_REGISTRY__COOKIE_SIGNING_KEY: {{ .Values.kellnr.registry.cookieSigningKey | quote }} {{- end }} diff --git a/charts/kellnr/templates/secret-config.yaml b/charts/kellnr/templates/secret-config.yaml index 529d46e..15e2fa6 100644 --- a/charts/kellnr/templates/secret-config.yaml +++ b/charts/kellnr/templates/secret-config.yaml @@ -12,6 +12,12 @@ stringData: KELLNR_REGISTRY__CACHE_SIZE: {{ .Values.kellnr.registry.cacheSize | quote }} KELLNR_REGISTRY__MAX_CRATE_SIZE: {{ .Values.kellnr.registry.maxCrateSize | quote }} KELLNR_REGISTRY__AUTH_REQUIRED: {{ .Values.kellnr.registry.authRequired | quote }} + KELLNR_REGISTRY__ALLOW_OWNERLESS_CRATES: {{ .Values.kellnr.registry.allowOwnerlessCrates | quote }} + KELLNR_REGISTRY__TOKEN_CACHE_ENABLED: {{ .Values.kellnr.registry.token.cache.enabled | quote }} + KELLNR_REGISTRY__TOKEN_CACHE_TTL_SECONDS: {{ .Values.kellnr.registry.token.cache.ttlSeconds | quote }} + KELLNR_REGISTRY__TOKEN_CACHE_MAX_CAPACITY: {{ .Values.kellnr.registry.token.cache.maxCapacity | quote }} + KELLNR_REGISTRY__TOKEN_DB_RETRY_COUNT: {{ .Values.kellnr.registry.token.db.retryCount | quote }} + KELLNR_REGISTRY__TOKEN_DB_RETRY_DELAY_MS: {{ .Values.kellnr.registry.token.db.retryDelayMs | quote }} {{- $cookieKey := include "kellnr.cookieSigningKey" . -}} {{- if ne $cookieKey "" }} KELLNR_REGISTRY__COOKIE_SIGNING_KEY: {{ $cookieKey | quote }} diff --git a/charts/kellnr/values.yaml b/charts/kellnr/values.yaml index 4ae486e..37069cd 100644 --- a/charts/kellnr/values.yaml +++ b/charts/kellnr/values.yaml @@ -74,6 +74,18 @@ kellnr: newCratesRestricted: false maxDbConnections: 0 # 0 means no limit + # Allow publishing crates without an owner + allowOwnerlessCrates: false + + token: + cache: + enabled: true + ttlSeconds: 1800 + maxCapacity: 10000 + db: + retryCount: 3 + retryDelayMs: 100 + # Used to sign the session cookie. Must be at least 64 bytes. # If empty, a random 64-byte value is generated by the chart (when `secret.enabled: true`). # When `secret.enabled: false`, you should set this to a fixed value.