Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions chart/epinio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ Epinio configures the ingress with settings that are important for application d

These settings can be adjusted in the `ingress` section of your `values.yaml` file to match your specific deployment requirements and cluster capabilities.

#### Server Configuration

- **`server.defaultTokenExpiry`**: Controls the default expiry time for auth tokens (e.g. `"30s"`, `"60s"`, `"2m"`). Use this to mitigate clock drift in environments where short-lived tokens may expire before use—for example, in staging workloads or when Kubernetes hosts have time synchronization issues. The value is capped at 5 minutes for security. Default is `"30s"`.

```yaml
server:
defaultTokenExpiry: "60s" # Example: increase to 1 minute for clock drift
```

### Cert Manager

Epinio needs [cert-manager](https://cert-manager.io/) in order to create TLS
Expand Down
2 changes: 2 additions & 0 deletions chart/epinio/templates/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ spec:
value: "{{ default .Values.global.tlsIssuer .Values.global.customTlsIssuer }}"
- name: TRACE_LEVEL
value: "{{ .Values.server.traceLevel }}"
- name: AUTH_TOKEN_DEFAULT_EXPIRY
value: "{{ .Values.server.defaultTokenExpiry }}"
- name: CHART_VERSION
value: "{{ .Chart.Version }}"
- name: DEFAULT_BUILDER_IMAGE
Expand Down
4 changes: 4 additions & 0 deletions chart/epinio/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
"traceLevel": {
"type": "integer"
},
"defaultTokenExpiry": {
"type": "string",
"description": "Default expiry time for auth tokens (e.g. 30s, 60s, 2m). Use to mitigate clock drift."
},
"disableTracking": {
"type": "boolean"
},
Expand Down
3 changes: 3 additions & 0 deletions chart/epinio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ server:
timeoutMultiplier: 1
# Increase this value to instruct the API server to produce more debug output
traceLevel: 0
# Default expiry time for auth tokens (e.g. "30s", "60s", "2m"). Use to mitigate clock drift
# in environments where short-lived tokens may expire before use. Capped at 5 minutes.
defaultTokenExpiry: "30s"
# The ingressClassName is used to select the ingress controller for apps.
# If empty ingress.ingressClassName (see below) is used
ingressClassName: ""
Expand Down
Loading