Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary Access Token for a Robot Account #18595

Open
raviranjandutta opened this issue Apr 24, 2023 · 10 comments
Open

Temporary Access Token for a Robot Account #18595

raviranjandutta opened this issue Apr 24, 2023 · 10 comments
Assignees
Labels
area/robot-account kind/requirement New feature or idea on top of harbor

Comments

@raviranjandutta
Copy link

I'm trying to get a temporary access token of robot account for docker login through cli so that i can push or pull image.

my question is :
1> is it possible to get temp access token.
if yes, what is the curl to get that. if there is any example or document i can check at.

FYI, I'm running a harbor container in local.

thank you

@raviranjandutta
Copy link
Author

harbor version is latest docker image

@raviranjandutta
Copy link
Author

raviranjandutta commented Apr 26, 2023

does someone has answer for this. please comment

@wy65701436
Copy link
Contributor

no, harbor doesn't provide temp access token for robot account. I will make this as a feature request.

@wy65701436 wy65701436 self-assigned this May 3, 2023
@wy65701436 wy65701436 added area/robot-account kind/requirement New feature or idea on top of harbor labels May 3, 2023
@nidhey27
Copy link

nidhey27 commented May 3, 2023

By temporary access token, You mean an access token that would have an expiration time, ensuring that the token is only valid for a certain period of time.
@raviranjandutta @wy65701436

@raviranjandutta
Copy link
Author

yes have some expiration time say a min something

@raviranjandutta
Copy link
Author

raviranjandutta commented May 3, 2023

i am trying to docker login by robotacct and its password but it doesn't allow me to login. is that the expected behavior. i want to push/pull the image using docker cli.

@nidhey27
Copy link

nidhey27 commented May 3, 2023

I'm interested to work on this feature.

@wy65701436
Copy link
Contributor

By temporary access token, You mean an access token that would have an expiration time, ensuring that the token is only valid for a certain period of time. @raviranjandutta @wy65701436

yes, the current workaround is pretty much what you suggested.

@wy65701436
Copy link
Contributor

I'm interested to work on this feature.

You can file the proposal firstly at goharbor/community, and then the maintainers will take effort to review it.

@nidhey27
Copy link

@wy65701436 Please allow me some time to work on this. It's been more than a year since I last looked into the code, so I need to get familiar with it again before filing the proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/robot-account kind/requirement New feature or idea on top of harbor
Projects
None yet
Development

No branches or pull requests

3 participants