Skip to main content

Installation

The libraries are published to Archenstack's GitLab Package Registry (project packages/archenstack on git.atolytix.com). You depend on them the way you depend on anything else — pin a name and version — and point your package manager's install location at the registry once. The name and version are the stable part; the install location is a single line you can change. When a package later goes public (PyPI, npm, Maven Central, crates.io), you drop that one line and nothing else moves.

You need a read token

The registry is private, so each install location authenticates. Create one deploy token: the Archenstack project → Settings → Repository → Deploy tokens, scope read_package_registry. GitLab shows a username and a token value once — those are TOKEN_NAME and TOKEN below. A Personal Access Token with read_api works too.

Point pip at the project index (keep PyPI as the fallback — the GitLab index doesn't proxy it, and archenstack-rbac-django pulls Django + DRF from PyPI):

# pip.conf (project-local, or ~/.config/pip/pip.conf)
[global]
index-url = https://TOKEN_NAME:TOKEN@git.atolytix.com/api/v4/projects/16/packages/pypi/simple
extra-index-url = https://pypi.org/simple
pip install archenstack-rbac # the pure core
pip install archenstack-rbac-django # the Django/DRF adapter (pulls the core + Django + DRF)

The instance-side reader​

A provisioned tenant's .env holds wrapped secrets, which the instance exchanges for their real values at boot. That half ships as its own library so an application does not have to implement the exchange — see Wrapped secrets for the mechanism. All five are at 1.0.0 and install from the same registries as the libraries above:

LanguageInstall
Pythonpip install archenstack-instance-env
Node.jsnpm install @archenstack/instance-env
Javaio.archenstack:archenstack-instance-env:1.0.0
Gogo get github.com/archenstack/archenstack-instance-env-go@v1.0.0
Rustarchenstack_instance_env = { git = "https://git.atolytix.com/packages/archenstack.git", tag = "archenstack-instance-env-rust/v1.0.0" }

Going public later​

The app keeps the same package name and version; you only change the install location:

EcosystemChangeFalls back to
Pythondelete the index-url linePyPI
Nodeswap the registry lineregistry.npmjs.org
Javadelete the <repository> blockMaven Central
Rustarchenstack_rbac = "1.0" instead of the git depcrates.io
Godrop the path from GOPRIVATEproxy.golang.org