Comments (2)
The solution is simple and effective. Don't make projects public!
I would like to know how we can enforce authentication to ensure only authorized users can pull images from our public project.
Make the project private, that requires using authentication.
There are some options to keep project private.
- If you don't want your users to make projects public, run a cron job outside harbor to sets all project to private.
- you can also do it on the DB level (stored procedure that changes all public to private)
- Create projects for users (no self-service)
- Set up gitops workflow, where users can need to request project. The admin teams approve projects and can reject public project if needed, also enforce quota.
Options are (kind of) endless
Having said that, there is currently an RFP pending that addresses a similar concern: Enable / disable anonymous access #124
Please go ahead and vote for that, if you think it would solve your problem.
from harbor.
Allowing anonymous access to public resources is a common practice, similar to other SaaS platforms like Docker Hub. That's why we offer both public and private access levels.
If you want to restrict access to your project, just set it to private.
from harbor.
Related Issues (20)
- blob sync takes 18 minutes, replicate from guangzhou to shanghai HOT 7
- Air gap environment scanning reports getting deleted automatically after scan HOT 3
- GC data residuals when with large amount of artifact trash
- Using external network access to add external_URL: https://xxxx.xxxx.cn LAN login http://192.168.x.x Error prompt: username and password error. Does Harbor not support this HOT 3
- can't use group members with OIDC Google HOT 3
- Invalid Username or Password while trying to authenticate via OIDC provider(Keycloak) HOT 2
- Harbor API showing inconsistent data for repositories, including pull/push issues HOT 1
- When Replication, failed to push manifest of artifact HOT 1
- update harbor `2.6.2` to `2.10.3` succ. but `Helm Charts` disappeared HOT 2
- Docker Login failed with status: 401 Unauthorized - Secret Mismatch HOT 2
- Authorize bot to list global labels HOT 1
- MANIFEST_UNKNOWN after failed push HOT 1
- Robots UI Fails to Load After Harbor Upgrade Due to Missing Access Attribute HOT 1
- Response 401 Unauthorized when deleting tag from registry using robot account HOT 1
- Error response from daemon: Get "https://harbor-xxxx": dial tcp: lookup harbor-labnum.aphp.fr on xx.XXX.XX:53: no such host HOT 1
- Harbor Database cleanup doesn't work HOT 2
- Remove with_signature option from ListArtifact API
- Login to harbor via http protocol . Error response from daemon: Get http://harbor.hostname/v2/: received unexpected HTTP status: 500 Internal Server Error
- Does the Harbor support HTTPS bidirectional authentication? HOT 1
- Trivy fanal.db file is growing endlessly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harbor.