Skip to content

Support token-based authentication in osc #1907

@matwey

Description

@matwey

Is your feature request related to a problem? Please describe.

When running osc commands in our CI environment, we're currently required to store and provide full openSUSE credentials (username and password). This presents two significant challenges:

  • Security Risk: Even with secret storage solutions, exposing primary credentials in CI workflows creates potential vulnerability points.
  • Maintenance Burden: Password changes require manual CI reconfiguration, creating unnecessary overhead and potential service disruptions.

Describe the solution you'd like
I'd like to propose adding support for OBS authentication tokens in the oscrc configuration. The implementation could offer two flexible options:

  • Direct token specification in the config file (plaintext)
  • External token reading via /run/secrets/osc_token (Docker secrets compatible)

Additional context
Reference to the initial mail-list discussion:
https://lists.opensuse.org/archives/list/[email protected]/thread/WLXHNBY2RGR7UZPVXMKEURMCMQV2J4ZE/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions