-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Please add support for gitlab_content registries #3057
Comments
Thank you for your feedback. About http type registry, we need to consider the authentication. |
Thanks @suzuki-shunsuke, I understand. In terms of the http registry, the most basic implementation would use an HTTP GET without any authentication. So it is left to the user to ensure that the url they are trying to access is open. For users that need authentication, you could probably do what you did for For example: registries:
- name: foo1
type: https
url: https://your_private_gitlab_server.com/suzuki-shunsuke/private-aqua-registry-1/-/raw/main/registry.yaml
auth_env: MY_HTTP_AUTH_1
- name: foo2
type: https
url: https://your_private_gitlab_server.com/suzuki-shunsuke/private-aqua-registry-2/-/raw/main/registry.yaml
auth_env: MY_HTTP_AUTH_2
- name: foo3
type: https
url: https://your_private_gitlab_server.com/suzuki-shunsuke/private-aqua-registry-3/-/raw/main/registry.yaml
auth_env: MY_HTTP_AUTH_3
auth_env_encoding: base64
packages:
- name: suzuki-shunsuke/[email protected]
registry: foo1
- name: suzuki-shunsuke/[email protected]
registry: foo2
- name: suzuki-shunsuke/[email protected]
registry: foo3 In this example, the user sets two environment variables in their environment, which contain the content of the authorization header to access that resource, e.g.: export MY_HTTP_AUTH_1="Basic <credential>"
export MY_HTTP_AUTH_2="Bearer <credential>"
export MY_HTTP_AUTH_3="<base64 encoded digest auth>" In the case of digest authentication, the syntax might be cumbersome, so having a way to inform aqua to decode the environment variable from base64, could be helpful. This could be controlled by a registry setting ( |
Feature Overview
The documentation lists
local
andgithub_content
registry types. It would be nice to have agitlab_content
registry type to permit users of Gitlab Server (self-hosted) or gitlab.com as a source for aqua registries.Why is the feature needed?
To allow enterprise users that use Gitlab server to host private aqua registries.
Workaround
The workaround is to:
Example Code
It will be used like this:
This will use the registry defined at
https://your_private_gitlab_server.com/suzuki-shunsuke/private-aqua-registry/registry.yaml
(or more specifically:https://your_private_gitlab_server.com/suzuki-shunsuke/private-aqua-registry/-/raw/main/registry.yaml
)Note
A more generic alternative might be to add support for
https
registry types, that can be used like this:The text was updated successfully, but these errors were encountered: