Raw file repositories
Raw stores binary files by path. Use it for build outputs, archives, and checksum sidecars. Publish and download through standard HTTPS requests.
Create repositories
Run these Bash commands with an authenticated administrator arkactl profile and jq. Replace the endpoint and upstream address. Grant the publisher Hosted write access and the consumer read access to Group and the relevant members. For each identity, sign in and run arkactl --json tokens create --name raw-ci --expires-in-days 30 | jq -er .plaintext. Store each token directly in your secret manager.
export ARKA_URL=https://packages.example.org
hosted=$(arkactl --json repo create --name raw-hosted --type hosted --format raw | jq -er .id)
proxy=$(arkactl --json repo create --name raw-proxy --type proxy --format raw \
--upstream-url https://downloads.example.org/releases | jq -er .id)
arkactl repo create --name raw-group --type group --format raw --member "$hosted,$proxy"
export WRITE="$ARKA_URL/repository/raw-hosted"
export READ="$ARKA_URL/repository/raw-group"Publish and download
sha256sum app-linux-amd64.tar.gz > app-linux-amd64.tar.gz.sha256
for file in app-linux-amd64.tar.gz app-linux-amd64.tar.gz.sha256; do
curl --fail-with-body -sS -H "Authorization: Bearer $ARKA_WRITE_TOKEN" \
--upload-file "$file" "$WRITE/releases/1.2.3/$file"
done
mkdir -p clean && cd clean
for file in app-linux-amd64.tar.gz app-linux-amd64.tar.gz.sha256; do
curl --fail-with-body -sS -H "Authorization: Bearer $ARKA_READ_TOKEN" \
"$READ/releases/1.2.3/$file" -o "$file"
done
sha256sum -c app-linux-amd64.tar.gz.sha256Proxy appends the path verbatim to the upstream URL. Group checks each member for that path in order. Use allow_once to protect released artifacts. In production CI, get the expected SHA-256 or signature from an independently trusted source.
| Symptom | What to check |
|---|---|
| HTTP 401 / 403 | Check the token, Group and member permissions, path grants, and content selectors. |
| HTTP 404 | Check casing, upstream base URL, Group member order, and negative cache TTL. |
| SHA-256 mismatch | Check whether the release path was reused, Group resolved another member, or the body is a proxy error page. |