You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation lists local and github_content registry types. It would be nice to have a gitlab_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:
download the registry file (https://your_private_gitlab_server.com/suzuki-shunsuke/private-aqua-registry/registry.yaml) and use it as a local registry
create a git submodule or git subtree to https://your_private_gitlab_server.com/suzuki-shunsuke/private-aqua-registry
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:
Thank you for your feedback.
We mainly focus on GitHub, not GitLab, so it's a bit difficult to prioritize GitLab support.
But we would be able to work on this when we have time.
About http type registry, we need to consider the authentication.
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 github_content registries, and read an environment variable, e.g. AQUA_HTTP_AUTH_HEADER. The difficulty is when users have more than one http registry requiring different authentication methods. One option would be to have them set their own environment variables and then just inform aqua which environment variables provide the authentication.
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.:
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 (auth_env_encoding=base64 or auth_env_base64=true).
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: