Code Monkey home page Code Monkey logo

Comments (2)

Vad1mo avatar Vad1mo commented on July 16, 2024

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.

wy65701436 avatar wy65701436 commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.