Skip to content

fixes: Some architectural deviations - #93

Merged
brandonc merged 2 commits into
mainfrom
TF-39662-tfctl-bug-audit-architectural-deviations
Jul 29, 2026
Merged

fixes: Some architectural deviations#93
brandonc merged 2 commits into
mainfrom
TF-39662-tfctl-bug-audit-architectural-deviations

Conversation

@brandonc

Copy link
Copy Markdown
Collaborator

Description

Fixes:

  • Using auth login --dry-run no longer opens a web browser.
  • --dry-run now appears in argument autocomplete lists.
  • Using profile display --markdown no longer produces an error.
  • Removed Token property from json output when using profile profiles list --json, preventing accidental exposure.

Example Output

Before:
Screenshot 2026-07-29 at 10 19 22

PR Checklist

  • Run npx changie new or install changie to prepare a new changelog entry for the next set of release notes.
  • Ensure any command changes are sensitive to these global flags:
    • --json — Force machine readable output to stdout. Does not apply to stderr.
    • --markdown — Force markdown output to stdout. Does not apply to stderr.
    • --dry-run — Don't make any actual writes or other mutations. Describe what would have changed to stderr.
    • --quiet — Only render essential content.
  • Get the logging interface from the context and add debug logging for interesting conditions and nonfatal situations.
  • Run make gen/screenshot if the root command output changes.
  • Add the Autocomplete field to positional arguments and flags to assist shell autocomplete.

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

brandonc added 2 commits July 29, 2026 10:17
- Using `auth login --dry-run` no longer opens a web browser. --dry-run now appears in argument autocomplete lists.
- Using `profile display --markdown` no longer produces an error.
- Removed Token property from json output when using `profile profiles list --json`, preventing accidental exposure.
Comment on lines +255 to +258
profile := opts.Profile

profile.Token = token
if err := profile.Write(); err != nil {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Any reason for adding this intermediate var? Seems redudant since we're copying the pointer

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

At first I wrote a version that removed the pointer from the opts but ended up putting it back. This local is left over from that churn

@brandonc
brandonc merged commit dd1151a into main Jul 29, 2026
2 checks passed
@brandonc
brandonc deleted the TF-39662-tfctl-bug-audit-architectural-deviations branch July 29, 2026 20:34
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.

2 participants