Skip to content

Commit

Permalink
Move token lifecycle to 1.25 days from 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 5, 2024
1 parent ce790e5 commit 7e9ac5b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deployments/stacks/dpe-auth0/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ resource "auth0_resource_server" "k8s-cluster-telemetry" {
identifier = "${var.cluster_name}-telemetry"
signing_alg = "RS256"

allow_offline_access = false
token_lifetime = 86400
allow_offline_access = false
# 108000 seconds = 1.25 days
# An offset of 1.25 days allows a daily token refresh to occur by simple cronjob
# for the services that use the token
token_lifetime = 108000
skip_consent_for_verifiable_first_party_clients = true
# https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/resource_server_scopes
# Says to use the following, however it errors out:
Expand Down

0 comments on commit 7e9ac5b

Please sign in to comment.