pulp / pulp/pulpcore

token authentication for api and cli in pulp

Open
#5,035 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Description

On github, or gitlab, it is possible to have api or cli access by token . I am wondering, is it possible for Pulp? or could add it as new feature? So instead of username and password, we can use token in pulp-cli and httpie?

To use it, maybe something like:

  • In http request: 'Authorization': "Token " + pulpuer_token
  • In pulp-cli : --token parameter or in a variable in .config/pulp/cli.toml

For token generation:

  • Pulp admin can create a token for a robot account for some automatic cron jobs
  • A user can also create his token by cli or by web interface

We are very interested to this feature!

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the authentication entry points for the HTTP API and pulp-cli, including the proposed .config/pulp/cli.toml setting. Clarify how tokens would be generated for users and robot accounts and how web or CLI issuance fits the scope. Done would mean an agreed design covering token use in httpie and pulp-cli.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.