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

Allow API access with an API-Key when OIDC is used #13093

Closed
Vad1mo opened this issue Sep 16, 2020 · 8 comments
Closed

Allow API access with an API-Key when OIDC is used #13093

Vad1mo opened this issue Sep 16, 2020 · 8 comments
Assignees
Labels
area/API area/robot-account kind/requirement New feature or idea on top of harbor

Comments

@Vad1mo
Copy link
Member

Vad1mo commented Sep 16, 2020

Is your feature request related to a problem? Please describe.
When OIDC is enabled, only the admin user/credential can use the API.

Describe the solution you'd like
Harbor should extend the "Robot Accounts" with READ/WRITE API

@Wykiki
Copy link

Wykiki commented Sep 18, 2020

Just encoutered that problem while trying to setup replication with Harbor as Provider.

@steven-zou
Copy link
Contributor

We're planning to enhance the robot account in the next 2.2 version. Supporting API permission is one of the items. Please stay tuned.

@Morriz
Copy link

Morriz commented Apr 14, 2021

@steven-zou is this delivered in 2.2.1 already?

@Vad1mo Vad1mo changed the title Access API with API-KEY in case of OIDC Allow API access with an API-Key when OIDC is used Apr 14, 2021
@Vad1mo
Copy link
Member Author

Vad1mo commented Apr 14, 2021

@Morriz take a look at #14145 (comment) and let us know if that did work for you

@Morriz
Copy link

Morriz commented Apr 15, 2021

got that to work! check out https://github.com/redkubes/otomi-tasks/blob/master/src/tasks/harbor/harbor.ts

@github-actions
Copy link

github-actions bot commented Jul 6, 2022

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

@github-actions github-actions bot added the Stale label Jul 6, 2022
@stonezdj stonezdj removed the Stale label Jul 7, 2022
@wy65701436
Copy link
Contributor

@Vad1mo does the robot v2 meet your requirement?

@YangJiao0817
Copy link
Member

In the new version(v2.8.x, v2.7.x, v2.6.x) of Harbor, you can use robot v2 to call the API of OIDC auth.

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

No branches or pull requests

8 participants