Rebrand user-visible CLI text; add legacy fallbacks for keyring, cache dir and version prefix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cb3bda43a
commit
ab4ed3c9e5
184 files changed
+934
-851
No files matched your search
@@ -59,15 +59,15 @@ func (d *OutputStringError) parseRequest() {
|
||||
for k, v := range d.Request.Header {
|
||||
for _, h := range v {
|
||||
if strings.ToLower(k) == "authorization" {
|
||||
tokenName := Getenv("BOUNDARY_TOKEN_NAME")
|
||||
keyringType := Getenv("BOUNDARY_KEYRING_TYPE")
|
||||
tokenName := Getenv("THRESHOLD_TOKEN_NAME")
|
||||
keyringType := Getenv("THRESHOLD_KEYRING_TYPE")
|
||||
switch {
|
||||
case tokenName == "none" || keyringType == "none":
|
||||
h = `Bearer <token>`
|
||||
case tokenName == "" && keyringType == "":
|
||||
h = `Bearer $(boundary config get-token)`
|
||||
h = `Bearer $(threshold config get-token)`
|
||||
default:
|
||||
h = fmt.Sprintf("Bearer $(boundary config get-token -keyring-type %s -token-name %s)", keyringType, tokenName)
|
||||
h = fmt.Sprintf("Bearer $(threshold config get-token -keyring-type %s -token-name %s)", keyringType, tokenName)
|
||||
}
|
||||
}
|
||||
d.parsedCurlString = fmt.Sprintf("%s -H \"%s: %s\"", d.parsedCurlString, k, h)
|
||||
|
||||
Reference in new issue
Block a user