Skip to content

Make --identity-token an alias of --password #742

Closed

Description

@shizhMSFT

What is the version of your ORAS CLI

v0.16.0

What would you like to be added?

Make --identity-token an alias of --password

Why is this needed for ORAS?

oras supports using identity token as the credential without a username.

The UX of oras login $REGISTRY --password $TOKEN does not seem good enough. It will be better if it is

oras login $REGISTRY --identity-token $TOKEN

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    on Jan 10, 2023
  2. qweeah commented on Jan 11, 2023

    @qweeah
    Contributor

    What if a user mistakenly use oras login $REGISTRY --username $USERNAME --identity-token $TOKEN

  3. shizhMSFT commented on Jan 20, 2023

    @shizhMSFT
    ContributorAuthor

    What if a user mistakenly use oras login $REGISTRY --username $USERNAME --identity-token $TOKEN

    I think we should return error for this case.

  4. added
    good first issue
    on Feb 27, 2023
  5. added this to the v1.2.0 milestone on Mar 22, 2023
  6. rafiya2003 commented on Jun 6, 2023

    @rafiya2003

    I would like to work on this

  7. qweeah commented on Jun 7, 2023

    @qweeah
    Contributor

    @rafiya2003 If you have any questions, feel free to join oras slack and ping me

  8. qweeah commented on Jun 7, 2023

    @qweeah
    Contributor

    Not all registry support token refreshing from identity token to registry token. E.g. ghcr returns 405 for token refreshing.

    @shizhMSFT We should also add a flag --registry-token allow user to use registry token in oras commands.

  9. shizhMSFT commented on Jun 7, 2023

    @shizhMSFT
    ContributorAuthor

    Not all registry support token refreshing from identity token to registry token. E.g. ghcr returns 405 for token refreshing.

    @shizhMSFT We should also add a flag --registry-token allow user to use registry token in oras commands.

    That can be another issue and I noticed that you have created one #968

  10. sbdtu5498 commented on Jun 27, 2023

    @sbdtu5498

    I have completed the implementation. Will try to push it soon,

  11. qweeah commented on Jul 12, 2023

    @qweeah
    Contributor

    @sbdtu5498 Any update on this?

  12. sbdtu5498 commented on Jul 14, 2023

    @sbdtu5498

    Oh sorry for the delays. I was busy with some other stuff and left the task hanging. Will push it before Monday.

  13. qweeah commented on Aug 1, 2023

    @qweeah
    Contributor

    @shizhMSFT Do we also need --registry-token-stdin?

  14. shizhMSFT commented on Aug 1, 2023

    @shizhMSFT
    ContributorAuthor

    @shizhMSFT Do we also need --registry-token-stdin?

    SGTM but is that --identity-token-stdin?

  15. qweeah commented on Aug 3, 2023

    @qweeah
    Contributor

    @sbdtu5498 So we need to add another flag to enable read identity token from stdin like:

    echo $TOKEN | oras login $REGISTRY --identity-token-stdin 
  16. sbdtu5498 commented on Aug 6, 2023

    @sbdtu5498

    Sure, will do it ASAP. Sorry for the delayed response.

  17. modified the milestones: v1.2.0, v1.3.0 on Dec 26, 2023
  18. modified the milestones: v1.3.0, v1.2.0-rc.1 on Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementgood first issue

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions