10BC0
Skip to content

lxd/cluster/config: actually set a default expiry on remote token#17081

Merged
tomponline merged 4 commits intocanonical:mainfrom
simondeziel:remote-token-expiry-upper-bound
Nov 27, 2025
Merged

lxd/cluster/config: actually set a default expiry on remote token#17081
tomponline merged 4 commits intocanonical:mainfrom
simondeziel:remote-token-expiry-upper-bound

Conversation

@simondeziel
Copy link
Copy Markdown
Member
@simondeziel simondeziel commented Nov 26, 2025

Fixes 82f1401 part of #16595

tomponline
tomponline previously approved these changes Nov 26, 2025
Copy link
Copy Markdown
Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where the core.remote_token_expiry configuration option was documented to have a default value of 15d but the default was not actually set in the code. The fix ensures that remote add tokens will expire after 15 days by default, matching the documented behavior.

  • Adds Default: "15d" to the core.remote_token_expiry configuration schema entry

Comment thread lxd/cluster/config/config.go Outdated
Fixes 82f1401

Reported-by: Thomas Parrott <thomas.parrott@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@simondeziel simondeziel force-pushed the remote-token-expiry-upper-bound branch from 6b1a877 to 5d1ef3b Compare November 26, 2025 17:41
…kens

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
…s of type string

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@simondeziel simondeziel force-pushed the remote-token-expiry-upper-bound branch from 70d2110 to 6a30932 Compare November 26, 2025 18:04
Copy link
Copy Markdown
Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread lxd/config/schema.go
@simondeziel simondeziel marked this pull request as ready for review November 26, 2025 18:36
@simondeziel
Copy link
Copy Markdown
Member Author
simondeziel commented Nov 26, 2025

Extracted from the GH runner logs:

++ lxc config trust list-tokens -f json
++ jq --exit-status --raw-output '.[].ExpiresAt'
++ timeout --foreground 120 /home/runner/go/bin/lxc config trust list-tokens -f json --verbose
+ expiresAt='2025/12/11 18:16 UTC'
+ [[ 2025/12/11 18:16 UTC =~ UTC$ ]]

@tomponline tomponline merged commit 69af6c0 into canonical:main Nov 27, 2025
130 of 134 checks passed
@simondeziel simondeziel deleted the remote-token-expiry-upper-bound branch November 27, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0