-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
testIssues related to tests, test coverage, or test infrastructureIssues related to tests, test coverage, or test infrastructuretest:CLITest case related to the CLITest case related to the CLI
Description
Description
Verifies that the CLI automatically refreshes an expired authentication token before executing a command, so the operator does not need to manually re-login after token expiry.
Steps
- Log in: run
synk loginwith valid credentials - Locate the CLI config file (typically
.synkronus.yamlin the home directory or working directory) - Manually edit the config file and set the
expiresAtfield to a timestamp in the past (e.g. one hour ago) - Save the config file
- Run any CLI command, for example:
synk app-bundle versions - Observe whether the command succeeds or prompts for re-login
- Open the config file again and check whether
expiresAthas been updated to a future time
Expected Result
The CLI detects the expired token automatically, refreshes it using the stored refresh token, updates the config file with the new token, and completes the command successfully - all without prompting the operator to log in again. No authentication error is shown.
Note during testing: Also check the terminal output for any DEBUG - Raw API response: lines. If this appears, it is a known bug (synkronus-cli/internal/auth/auth.go:64) that must be fixed before release as it may leak sensitive data in logs.
Actual Result
(To be filled during testing)
Priority
Medium
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
testIssues related to tests, test coverage, or test infrastructureIssues related to tests, test coverage, or test infrastructuretest:CLITest case related to the CLITest case related to the CLI