Skip to content

Commit 70cc73b

Browse files
committed
Echo VirtFusion API tokens on paste so register shows the value landed.
1 parent c669a9d commit 70cc73b

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project are documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.7] - 2026-08-29
9+
10+
### Changed
11+
12+
- Echo VirtFusion Global API token and User API token while pasting so it is obvious the paste landed.
13+
814
## [1.0.6] - 2026-08-29
915

1016
### Changed

‎internal/cli/operator_collect.go‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,14 @@ func collectVirtFusionOperatorInstallInputs(
152152
return err
153153
}
154154
url = install.NormalizeHypervisorAPIURL(url)
155-
token, err := promptSecret("VirtFusion Global API token", false)
155+
// Echo on paste: VF tokens are long; hidden prompts look like the paste failed.
156+
token, err := promptString("VirtFusion Global API token", "")
156157
if err != nil {
157158
return err
158159
}
160+
if strings.TrimSpace(token) == "" {
161+
return fmt.Errorf("VirtFusion Global API token is required")
162+
}
159163
userName, err := promptString("VirtFusion client username (the panel user you created for NodeRings)", "")
160164
if err != nil {
161165
return err
@@ -168,10 +172,13 @@ func collectVirtFusionOperatorInstallInputs(
168172
if err != nil || userID < 1 {
169173
return fmt.Errorf("VirtFusion client user ID must be a positive integer")
170174
}
171-
userAPIToken, err := promptSecret("VirtFusion User API token (Account → API while logged in as that user)", false)
175+
userAPIToken, err := promptString("VirtFusion User API token (Account → API while logged in as that user)", "")
172176
if err != nil {
173177
return err
174178
}
179+
if strings.TrimSpace(userAPIToken) == "" {
180+
return fmt.Errorf("VirtFusion User API token is required")
181+
}
175182
inst := install.VirtFusionInstance{
176183
ID: id,
177184
URL: url,

0 commit comments

Comments
 (0)