app-registry / appr

Apache License 2.0
56 stars 18 forks source link

Store auth per namespace/repo #64

Closed ant31 closed 7 years ago

ant31 commented 7 years ago

Often different robot account are configured per namespace or repo. Currently login are stored per domain and we would like more fine control to scope auth per namespace / repo too. spin-off: #61

"auths":
  "domain":
      "*": {token: auth}      # default auth for the domain
      "namespace":
           "*": {token: auth}   # default auth for the namespace
           "repo": {token: auth} # auth for the repo  

or

"auths":
  "domain": {token: auth}   # default auth for the domain
   "domain/namespace": {token: auth}   # default auth for the namespace
   "domain/namespace/repo": {token: auth}    # auth for the repo  

CLI:

appr login quay.io
appr login quay.io/namespace
appr login quay.io/namespace/repo