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

add token service support for docker registry #14919

Closed
wants to merge 12 commits into from

Commits on Mar 7, 2021

  1. add token service support for docker registry

    - repo name ruler
      <owner>/<repo_name>[/<image_name>] (note: if `<image_name>` not set,
      will use `<repo_name>` as default)
    - add a new repo permission unit named as `package`, it's not a
      real unit in gitea, just use for permission check.
    - add a small api `GET /repos/{owner}/{repo}/packages/{type}/{name}` for
      test, maybe can add more later
    
    ref:
    - https://docs.docker.com/registry/spec/auth/token/
    - https://docs.docker.com/registry/notifications/
    - https://github.com/cesanta/docker_auth
    
    Signed-off-by: a1012112796 <1012112796@qq.com>
    a1012112796 committed Mar 7, 2021
    Configuration menu
    Copy the full SHA
    377c5ac View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2021

  1. Update routers/repo/package.go

    Co-authored-by: techknowlogick <matti@mdranta.net>
    a1012112796 and techknowlogick authored Mar 8, 2021
    Configuration menu
    Copy the full SHA
    cb934f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d3ae2f5 View commit details
    Browse the repository at this point in the history
  3. use decoder

    a1012112796 committed Mar 8, 2021
    Configuration menu
    Copy the full SHA
    9555233 View commit details
    Browse the repository at this point in the history
  4. split code

    a1012112796 committed Mar 8, 2021
    Configuration menu
    Copy the full SHA
    47e2a11 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b1f5379 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2021

  1. init third part api

    because if using token serve, it will be difficut
    to use docker registry api directly, try do
    someting to simplify it.`
    
    Signed-off-by: a1012112796 <1012112796@qq.com>
    a1012112796 committed Mar 9, 2021
    Configuration menu
    Copy the full SHA
    3548d25 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2021

  1. Configuration menu
    Copy the full SHA
    260fe61 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2021

  1. Configuration menu
    Copy the full SHA
    80b7e1d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    62c8142 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2021

  1. Configuration menu
    Copy the full SHA
    759a900 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff44fca View commit details
    Browse the repository at this point in the history