Skip to content

Option to fetch upload token from a command #12130

Description

@LaurentRDC

Describe the feature request

I'd like an option for cabal upload to pass the token via a command. Like --password-command, but for tokens.

I am happy to implement this if the maintainers are OK with it

Additional context

My Hackage token for package upload is currently stored in plaintext in a config file. Not good. Ideally, I would use my secrets manager handle this. Ideally, my cabal config would look like:

token-command: sh -c "<fetch token from secrets manager>"

Concretely, I use 1password, so my token command would be:

token-command: sh -c "op read op://hackage/upload-token"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions