mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[GH-ISSUE #525] Strict auth UX: accept common truthy values (yes/y) or document ParseBool-only behavior #148
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Feb 14, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/525
Summary
ASC_STRICT_AUTHcurrently usesstrconv.ParseBool, so values likeyes/yare ignored (treated as disabled).Why this matters
Many CLI users expect
yesto behave like true in env flags. Silent fallback to disabled strict auth can weaken expected protections.Current behavior
internal/cli/shared/shared.go:strictAuthEnabled()parses env withstrconv.ParseBool.Expected behavior
One of:
yes/no,y/n,on/off), ORReproduction
Detailed implementation plan
strictAuthEnabled().Acceptance criteria
cc @cursor please implement this end-to-end.
@rudrankriyam commented on GitHub (Feb 14, 2026):
@cursor please implement this issue end-to-end using the checklist and acceptance criteria.
@cursor[bot] commented on GitHub (Feb 14, 2026):
Implemented end-to-end on
cursor/strict-auth-value-handling-27f3and pushed as commit611b04f.TestStrictAuthEnabled_EnvTruthyValuesTestStrictAuthEnabled_EnvFalseyValuesTestStrictAuthEnabled_InvalidValueWarnsAndDisablesTestCheckMixedCredentialSourcesStrictAuthEnvErrors(provesASC_STRICT_AUTH=yesenforces strict behavior)README.mdstrict-auth env docsAGENTS.mdenv var table entryinternal/cli/auth/auth.golong help textValidation evidence:
go test ./internal/cli/shared -run "TestStrictAuthEnabled_|TestCheckMixedCredentialSourcesStrictAuthEnvErrors"(failed onyes/y/onand missing invalid warning).make formatmake lintmake test@rudrankriyam commented on GitHub (Feb 14, 2026):
Fixed in #528 (merged to main).