harbor-unauth

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

uauth

Unauth is a reverse proxy that allowes IP based access to a docker registry.

Setup

Create a /etc/harbor-unauth.json like this:

{
  "url": "https://harbor.example.com/",

  "proxy_count": 1,
  "allowlist": [
    "127.0.0.1/32",
    "172.17.0.1/32",
    "::1/128"
  ],

  "auths": {
    "apps": {
      "user": "<robot user>",
      "password": "<robot token>"
    },
    "images": {
      "user": "<robot user>",
      "password": "<robot token>"
    }
  }
}

Per default the the configuration is stored in /etc/harbor-unauth.json, overwrite using the UNAUTH_CONFIG environment variable.

Development

Setup a config.json and run UNAUTH_CONFIG=./config.json go run . Make sure your configuration name is included in .gitignore.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL