From 21e871b7ba75a6b107fba2f354946a31a33ebc8e Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 2 Mar 2023 16:06:54 +0300 Subject: [PATCH 1/2] docs: clarify max token life in ci/cd docs --- docs/templates/change-management.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/templates/change-management.md b/docs/templates/change-management.md index b0efa6c33373f..9c7fef96f415b 100644 --- a/docs/templates/change-management.md +++ b/docs/templates/change-management.md @@ -17,7 +17,7 @@ export CODER_TEMPLATE_NAME=kubernetes export CODER_TEMPLATE_DIR=.coder/templates/kubernetes export CODER_TEMPLATE_VERSION=$(git rev-parse --short HEAD) -# Push the new template template version to Coder +# Push the new template version to Coder coder templates push --yes $CODER_TEMPLATE_NAME \ --directory $CODER_TEMPLATE_DIR \ --name=$CODER_TEMPLATE_VERSION # Version name is optional @@ -25,3 +25,6 @@ coder templates push --yes $CODER_TEMPLATE_NAME \ > Looking for an example? See how we push our development image > and template [via GitHub actions](https://github.com/coder/coder/blob/main/.github/workflows/dogfood.yaml). + +> You need to set `CODER_MAX_TOKEN_LIFETIME` to a higher value on your coder server to allow creating tokens with a more than 1 month life. +>, e.g., for a system install, you can set `CODER_MAX_TOKEN_LIFETIME=8760h0m0s` in `/etc/coder/coder.env` to allow max token life of 1 year. From 2fa1ba0163e3c0d10e6063d8ea6f29a0e58f62da Mon Sep 17 00:00:00 2001 From: Ben Potter Date: Thu, 2 Mar 2023 16:13:26 -0600 Subject: [PATCH 2/2] Update docs/templates/change-management.md --- docs/templates/change-management.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/templates/change-management.md b/docs/templates/change-management.md index 9c7fef96f415b..b39bfc9c2c909 100644 --- a/docs/templates/change-management.md +++ b/docs/templates/change-management.md @@ -26,5 +26,4 @@ coder templates push --yes $CODER_TEMPLATE_NAME \ > Looking for an example? See how we push our development image > and template [via GitHub actions](https://github.com/coder/coder/blob/main/.github/workflows/dogfood.yaml). -> You need to set `CODER_MAX_TOKEN_LIFETIME` to a higher value on your coder server to allow creating tokens with a more than 1 month life. ->, e.g., for a system install, you can set `CODER_MAX_TOKEN_LIFETIME=8760h0m0s` in `/etc/coder/coder.env` to allow max token life of 1 year. +> To create tokens with over a 30 day lifetime, [configure Coder server to set a longer max token lifetime](../cli/coder_server#--max-token-lifetime)