Access control
Access control determines who can access artifact version files through their URL from outside Buddy, for example, using a web browser or curl. The HTTP BA (HTTP Basic Authentication) option is available only for Bucket artifacts.
Access control does not determine which pipelines and sandboxes can access the artifact. Configure their access on the Permissions tab, as described in Permissions and access.
| UI | API | Authentication requirements |
|---|---|---|
| Buddy Auth | BUDDY | Requires authentication with a Buddy account |
| HTTP BA | BASIC | Requires the username and password configured for the artifact |
| Public | NONE | No authentication required |
Artifact version URLs
Each version of a Bucket artifact has the address https://<version>-<artifact>-<workspace>.bucket-2.registry.sh, e.g.:
https://1-0-0-my-app-build-my-workspace.bucket-2.registry.sh
The latest version has no prefix in the address. In a pipeline, the version address is in the BUDDY_ARTIFACT_VERSION_RAW_URL variable (Artifacts in pipelines).
A public artifact with an index.html file works as a static website (Bucket).
Setting access control when creating an artifact
Set access control in the UI
In the New artifact form, the Access control field has the options Buddy Auth, HTTP BA and Public. Buddy Auth is selected by default.
Image loading...
Set access control using the CLI
Use the -b flag with bdy artifact create to enable Buddy Auth, or -a user:pass to enable HTTP Basic Authentication.
bdy artifact create my-app-build -b -p my-project
bdy artifact create my-app-reports -a mike:secret-password -p my-project
$$-b or -a flag, an artifact created from the CLI is public, even when bdy artifact publish -c creates it.
For a complete list of available flags, see bdy artifact create.
## Change access control for an existing artifact
To change access control, open the artifact's Settings tab and modify the Access control field. Access to the Settings tab requires the Manage permission level.
Image loading...
bdy artifact update changes only the artifact notes, so from the terminal you change Access control through the REST API, with the authorization field:
{
"authorization": {
"type": "BASIC",
"user": "mike",
"password": "secret-password"
}
}
The other type values are BUDDY and NONE. The endpoint is described in the API reference.
Download files from outside Buddy
bdy artifact download authenticates with the CLI token, so it works the same way with Buddy Auth, HTTP BA and Public:
bdy artifact download my-app-build:1.0.0 ./dist -p my-project
$With HTTP BA, any client that supports Basic Auth works, e.g. curl with the -u flag:
curl -u mike:secret-password \
https://1-0-0-my-app-build-my-workspace.bucket-2.registry.sh/index.html
$$Without the login and password, or with wrong credentials, a version address with HTTP BA responds with code 401.
With Buddy Auth, the version address responds with code 302 and redirects to app.buddy.works/artifact/auth, the Buddy login. In scripts and on servers without a browser session, use bdy artifact download or HTTP BA.
Container and npm registries
Container Image and NPM Package have no version address. You log in to the registry separately:
- Container Image -
bdy artifact docker login, then regulardocker pushanddocker pull. See Container registry. - NPM Package - a token in
.npmrc. See npm registry.
See also:
- Permissions and access - access for pipelines, sandboxes and project roles
- Scopes - Workspace, Project and Environment scope
- Bucket - file upload and version addresses
bdy artifact download---mergeand--replaceflags for downloading to a non-empty directory
Last modified on Dec 2, 2026