Skip to content

Authorization link should not be printed to stdout #1125

@mstueer

Description

@mstueer

Description

The authorization link message Your browser has been opened to visit and the following link is printed on stdout in addition to the actual output of the stackit cli operation. This leads to unwanted input if the stackit cli output is piped into another program.

Steps to reproduce

  1. Start without being logged in to STACKIT yet
  2. Run for example stackit service-account key create -p project-id --email "sa-name@sa.stackit.cloud" -o json -y | vault kv patch -mount=engine path/to/secret key=-

Actual behavior

The Vault secret now contains

Your browser has been opened to visit:

https://accounts.stackit.cloud/oauth/v2/authorize?client_id=stackit-cli-0000-0000-000000000001&code_challenge=Zhx-5-nk3XrR54FFY5f9d1yIFtm4OZwsqYLX9b4xRxI&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A8000&response_type=code&scope=openid+offline_access+email

{
  "active": true,
  "createdAt": "2025-11-26T09:33:38.535Z",
[...]

Expected behavior

The secret should only contain

{
  "active": true,
  "createdAt": "2025-11-26T09:33:38.535Z",
[...]

Environment

  • OS: MacOS
  • Version: 0.48.0 (2025-11-18)

Additional information

Feel free to add any additional information here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions