Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
360 commits
Select commit Hold shift + click to select a range
82f101a
Sentinels: at startup remove only those a killed run left
pbuncic Nov 25, 2026
fe68b5b
Revisions: escape package, version and arch in the link target pattern
pbuncic Nov 25, 2026
5c03537
Build: gather a failure's report only when the build failed
pbuncic Nov 25, 2026
9b8c6cf
Build: a failure's report reads only the end of its log
pbuncic Nov 25, 2026
d5ea01d
Build: quote the build's environment whole, name and value
pbuncic Nov 25, 2026
cc81954
Build: quote hook_params values, refuse names that are not variables
pbuncic Nov 25, 2026
c8f862b
Build: a hook: list is its names with commas
pbuncic Nov 25, 2026
bad4b2c
Build: read the template with 'with', import NoRemoteSync plainly
pbuncic Nov 25, 2026
978d82d
Sources: evaluate $(...) entries without credentials
pbuncic Nov 25, 2026
480a450
Reuse symlinks: run SYMLINK_STAGE hooks without credentials
pbuncic Nov 25, 2026
c4a4161
Sources: extract again when a recipe drops its last patch
pbuncic Nov 25, 2026
f03676d
Build script: empty TMP/<hash> before unpacking a reused tarball
pbuncic Nov 25, 2026
247b435
Build script: drop the unused gcc lookups
pbuncic Nov 25, 2026
c601093
Reuse symlinks: stage again when the stage marker is damaged
pbuncic Nov 25, 2026
0493ccf
Stores: fetch the object named as the tarball, not the first listed
pbuncic Nov 25, 2026
85f8781
Provenance: record a reused package's builder as origin
pbuncic Nov 25, 2026
6bda8e7
Trust: warn about a manifest that never expires
pbuncic Nov 25, 2026
ef1a03c
Build: -e NAME alone passes the host's value, as docker run -e
pbuncic Nov 25, 2026
bc6520b
Build: run a native build without credentials
pbuncic Nov 25, 2026
3870592
Revisions: reserve a counter revision in the store before building
pbuncic Nov 25, 2026
e6377c1
Stores: keep an object's metadata when stamping its sha256
pbuncic Nov 26, 2026
473e005
Stores: record the stored sha256 after a b3 upload
pbuncic Nov 26, 2026
59e1935
bits-store: a refused marker keeps a restricted build on this host
pbuncic Nov 26, 2026
a71ddde
Stores: split a read and a write store of different kinds
pbuncic Nov 26, 2026
39d4fea
Stores: an HTTP download's temporary file is its own
pbuncic Nov 26, 2026
c1ed1d3
Stores: a b3 read store keeps the local version links
pbuncic Nov 26, 2026
296667d
Stores: say when an HTTP store did not answer, not that it had none
pbuncic Nov 26, 2026
47dfd67
Sources: copy into the source dir without a shell
pbuncic Nov 26, 2026
5d0aa59
Sources: fetch a git source without a shell
pbuncic Nov 26, 2026
13d242a
Sources: fetch a pip source without a shell
pbuncic Nov 26, 2026
00169f6
prepub: stop polling a job on a 4xx
pbuncic Nov 26, 2026
1f0bb6a
Sources: drop a cached copy that fails its checksum
pbuncic Nov 26, 2026
2c4f4b6
Sources: a URL with a login works
pbuncic Nov 26, 2026
e259cbe
Sources: a timeout and a length check for HTTP downloads
pbuncic Nov 26, 2026
d502fa2
cvmfs-publish: fingerprint the tree only on a dry run
pbuncic Nov 26, 2026
5f12a06
cvmfs-publish: retry a submission on a 5xx or network error
pbuncic Nov 26, 2026
d17fd5a
cvmfs-publish: the build's tar-slip guard before unpacking
pbuncic Nov 26, 2026
5f5dc77
publish: working copy and tar under the work dir, always removed
pbuncic Nov 26, 2026
5c916be
Sandbox: a macOS build cannot read the user's credentials
pbuncic Nov 26, 2026
1756c4c
Docs: a recipe lifting the network block is a deliberate exception
pbuncic Nov 26, 2026
3ac39b1
cvmfs-publish: publish the tarball the manifest certifies
pbuncic Nov 26, 2026
7be45c5
publish: relocate the package's tarball, not the installed tree
pbuncic Nov 26, 2026
42e91a3
certify: retire the certification merge request
pbuncic Nov 26, 2026
5e47209
forge: drop the GitLab merge-request helpers
pbuncic Nov 26, 2026
63a22ce
sandbox: nested podman gets the build container's mounts and variables
pbuncic Nov 26, 2026
03234a8
sandbox: local podman mounts what the build reads
pbuncic Nov 26, 2026
f7b7e8a
sandbox: with --docker the build container is the sandbox
pbuncic Nov 26, 2026
73d04a2
containers: --container-engine podman runs them with podman
pbuncic Nov 26, 2026
b0d3330
Credentials: none for system checks and pip source downloads
pbuncic Nov 26, 2026
341bea0
download: a source that cannot be copied stops the download
pbuncic Nov 26, 2026
fb0d63a
Sandbox: macOS builds cannot read more credential files
pbuncic Nov 26, 2026
d4a1293
Credentials: no agent, ticket or proxy pointers for recipe code
pbuncic Nov 26, 2026
767714f
sandbox: the container's network from its argument list
pbuncic Nov 26, 2026
9306273
cvmfs-publish: the signed manifests certify the tarball first
pbuncic Nov 26, 2026
3622451
store: --stale-rev-markers lists and removes failed builds' claims
pbuncic Nov 26, 2026
77afd0a
cvmfs-publish: the package root is the package's own .meta.json
pbuncic Nov 26, 2026
7718c6e
cvmfs-publish: --wait waits for all jobs within one timeout
pbuncic Nov 26, 2026
d287c95
trust: a manifest's sequence is remembered per signing key too
pbuncic Nov 26, 2026
7c7a805
relocate-me.sh: read .bits-pkginfo, never source it
pbuncic Nov 26, 2026
b648117
workarea: an unchanged extracted archive is not read again
pbuncic Nov 26, 2026
460e9e5
build: a vouched reused tarball is not listed before unpacking
pbuncic Nov 26, 2026
39e526f
sync: a version's revision markers are read at once
pbuncic Nov 26, 2026
4edef76
sync: a revision claim taken again is written again
pbuncic Nov 26, 2026
185efd3
relocate-me.sh: no .bits-relocate entry through a link out
pbuncic Nov 26, 2026
8a71078
publish: a published package carries its .build-hash
pbuncic Nov 26, 2026
4554981
build-nice: no --cpu-shares when no controller is delegated
pbuncic Nov 26, 2026
b4d7315
publish: PACKAGE -n publishes nothing
pbuncic Nov 26, 2026
80f84a5
Messages and docs: certify, publish PACKAGE, the roadmap
pbuncic Nov 26, 2026
0774b54
cvmfs-publish: no dependency rewrite through a link out
pbuncic Nov 26, 2026
8480eed
publish: --release-view -n makes no view
pbuncic Nov 26, 2026
a052ad9
publish: refuse a tarball packed by a bits before 2026-07-11
pbuncic Nov 26, 2026
947d1e5
cvmfs-publish: refuse a tarball no manifest records the sha256 of
pbuncic Nov 26, 2026
cad8e18
publish PACKAGE: publish the tarball the manifests certify
pbuncic Nov 26, 2026
20e3bf7
cvmfs-publish: a view list entry may not leave its package
pbuncic Nov 26, 2026
3276900
compliance --enforce --key: sign the signed manifests again
pbuncic Nov 26, 2026
1851baf
certify: an entry's group is its manifest's directory
pbuncic Nov 26, 2026
3501323
forge: a group member counts at Developer level, active
pbuncic Nov 26, 2026
66e820c
console: a token never goes over plain http
pbuncic Nov 27, 2026
81f1e21
args: warn for a secret given on the command line
pbuncic Nov 27, 2026
01ab945
cleanup --retain: a dry run unlinks nothing
pbuncic Nov 27, 2026
c407c89
cleanup: a sentinel stands beside its install tree
pbuncic Nov 27, 2026
8662789
args: move only the subcommand ahead of the options
pbuncic Nov 27, 2026
789e337
cvmfs stage: name what failed, not a missing swissknife
pbuncic Nov 27, 2026
5769ed2
sign_console: --insecure does not carry over to later calls
pbuncic Nov 27, 2026
6784a67
sign_console: a 5xx while waiting for the signature asks again
pbuncic Nov 27, 2026
67b8781
cleanup --retain: an empty signed manifest sweeps nothing
pbuncic Nov 27, 2026
a82191a
compliance --enforce: a folder is held by the entry's own tarballs
pbuncic Nov 27, 2026
a564f43
recipe checks run without credentials in deps, compliance, init
pbuncic Nov 27, 2026
3b983c0
manifest: write it at most every few seconds, not per package
pbuncic Nov 27, 2026
b7f6b6f
sign: --digest-cache hashes a store tarball once
pbuncic Nov 27, 2026
59b2d54
manifest: a tarball the reuse gate checked is not hashed again
pbuncic Nov 27, 2026
fdbe02e
console-backend: a build job's host, from the start of its log
pbuncic Nov 28, 2026
bcf1386
cvmfs catalog: a fetched object must be the one named
pbuncic Nov 28, 2026
47c0d9e
cleanup: what a running build uses is neither evicted nor swept
pbuncic Nov 28, 2026
1fd2a9a
publish: --no-relocate is removed
pbuncic Nov 28, 2026
fd9363d
build: --cvmfs-prefix is removed
pbuncic Nov 28, 2026
1d89274
sign: the BOMs to merge are required
pbuncic Nov 28, 2026
af4b981
forge: approvals count only of a merged merge request
pbuncic Nov 28, 2026
4b942aa
notice: the source offer names only archives the store has
pbuncic Nov 28, 2026
f8dff34
publish: the pipeline record says whether the compliance files went up
pbuncic Nov 28, 2026
3e230de
forge: the merge request is the one that merged the commit here
pbuncic Nov 28, 2026
ee5e241
sign: the certifier is never $GITLAB_USER_LOGIN
pbuncic Nov 28, 2026
5e1b37d
release: the compliance warning names only the build released
pbuncic Nov 28, 2026
1e3921a
manifest: a build in the same second gets its own file
pbuncic Nov 28, 2026
21631e9
orchestrated: an action without an id is not waited for
pbuncic Nov 28, 2026
2cdc9ed
cleanup: the retention sweep matches a hash as the leftovers do
pbuncic Nov 28, 2026
188229e
sbom: a malformed hash or licence is no traceback
pbuncic Nov 28, 2026
d33d1dc
args: a % in --reference-sources, a list as --from-manifest
pbuncic Nov 28, 2026
d73abeb
args: a network in --docker-extra-args is not followed by host
pbuncic Nov 28, 2026
231033a
cleanup: a publish marker is keyed by the build's architecture
pbuncic Nov 28, 2026
933fd95
sbom: a secret in a URL's fragment is left out
pbuncic Nov 28, 2026
2f4a4ac
sign: the store checks run 8 at a time
pbuncic Nov 28, 2026
2c25153
compliance: the store's manifests are read 8 at a time
pbuncic Nov 28, 2026
6fa353b
cvmfs publish: release and module links are looked up 8 at a time
pbuncic Nov 28, 2026
a89344d
sbom: a package listed twice is found in a set
pbuncic Nov 28, 2026
78afde1
forge: an access-token bot or service account is no group admin
pbuncic Nov 28, 2026
665267a
sign: the signing service's redirect is not followed with the token
pbuncic Nov 28, 2026
da7d763
manifest: a failed build says so
pbuncic Nov 28, 2026
c6531fc
cleanup: a dry run says what the real run would do
pbuncic Nov 28, 2026
29e1c10
build: a package built here gets its cleanup sentinel
pbuncic Nov 28, 2026
837fd88
console-backend: the digest cache serves signing too, its doc says
pbuncic Nov 28, 2026
45ee3df
certify: an object two groups certify is listed for each
pbuncic Nov 28, 2026
fa12d31
console-backend: the certifier's approver administers the build's group
pbuncic Nov 28, 2026
56020ff
console: the approver types the terminal's code
pbuncic Nov 28, 2026
1a0b05b
console: bits login gives the terminal a console session
pbuncic Nov 28, 2026
c8f5279
login: the terminal's console session, sent instead of a GitLab token
pbuncic Nov 28, 2026
3f56509
console: a manifest signing approval needs the terminal's code
pbuncic Nov 28, 2026
39c32d3
console: audit wrong approval codes and the CLI session
pbuncic Nov 28, 2026
378cfaa
login: a refused console session says to run bits login
pbuncic Nov 28, 2026
8535838
login: bits logout ends the console session
pbuncic Nov 28, 2026
425dfc9
console: a caller is a backend session, not a GitLab token
pbuncic Nov 28, 2026
81497fa
login: the CLI sends the console its bits login session only
pbuncic Nov 28, 2026
ea7f778
console: the backend's old signing routes are gone
pbuncic Nov 28, 2026
f24c648
sign: --sign-via-service is retired
pbuncic Nov 28, 2026
10be87b
console: a build's variables have their values checked
pbuncic Nov 28, 2026
262bf6c
docs: what a console pre-approval vouches for
pbuncic Nov 28, 2026
643ef0f
console: the admin policy is resolved off the event loop
pbuncic Nov 28, 2026
b318e34
console: a build pre-approval names at least one group
pbuncic Nov 28, 2026
65c54ce
console: a passkey approval asks for user verification as it is checked
pbuncic Nov 28, 2026
78708cf
console: an unreadable passkey file is never written over
pbuncic Nov 28, 2026
cd2a1d1
docs: the admin policy's delays and the order of a manifest's writes
pbuncic Nov 28, 2026
390b594
console: the CI audience named as it is set
pbuncic Nov 28, 2026
6691564
console: the manifests CI's pre-approval check is gone
pbuncic Nov 28, 2026
797ed6b
console: a client address holds a few pending CLI requests
pbuncic Nov 28, 2026
56f7cc2
console: a store token is an event of the audit chain
pbuncic Nov 28, 2026
bf4692f
console: log redaction in linear time
pbuncic Nov 28, 2026
a6091e5
console: the GitHub proxy refuses encoded and dot segments
pbuncic Nov 28, 2026
12afa77
console: a schedule's publishing run takes the approval's runs
pbuncic Nov 28, 2026
a88d75f
console: a pre-approval's passkey signs its build and groups
pbuncic Nov 28, 2026
4e1c115
console: the approve page shows where a request came from
pbuncic Nov 28, 2026
d3a2265
console: a queued batch approves its ref's commit
pbuncic Nov 28, 2026
1dca5a9
console: a schedule's commit builds, never publishes
pbuncic Nov 28, 2026
9dc635e
bits-admin: Settings and Store leave what the site trusts to the host
pbuncic Nov 28, 2026
1732fd2
bits-admin: who is an admin changes with a touch of one's own key
pbuncic Nov 28, 2026
cc57f0e
console: a passkey touch to prune or pause a host, or delete from the…
pbuncic Nov 28, 2026
3dd7b03
publish: a refused tarball says why with a reason, not in words
pbuncic Nov 28, 2026
da56705
publish: no fallback to the build manifest when a signed one does not…
pbuncic Nov 28, 2026
77e0f52
publish: say when a package is published on its build manifest alone
pbuncic Nov 28, 2026
8873fae
compliance: check every manifest before enforce removes anything
pbuncic Nov 28, 2026
59accd3
console: the set's layout problem is the one bits has
pbuncic Nov 28, 2026
e0dd25f
console: the approve pages get a script policy and no framing
pbuncic Nov 28, 2026
2bb55fa
prune: an install tree without a sentinel gets one
pbuncic Nov 28, 2026
c93060f
publish: the final destination takes an earlier run's package only si…
pbuncic Nov 29, 2026
7f5f38b
console: a refused build in the queue can be dismissed
pbuncic Nov 29, 2026
e39376b
console: a build GitLab refuses is logged and listed with the failures
pbuncic Nov 29, 2026
ebc0a4d
console: a CI configuration GitLab rejects holds the queue 6 hours at…
pbuncic Nov 29, 2026
17b64a5
console: only a build the queue started is certified
pbuncic Nov 29, 2026
28191b2
console: unreadable variables come from the queued build, not the name
pbuncic Nov 29, 2026
f88ba87
console: certifying without an outside audit copy is said
pbuncic Nov 29, 2026
88b52b9
console: a deferral is an event once per reason, and ends after 7 days
pbuncic Nov 29, 2026
1ef7102
console: action and worker step errors are redacted
pbuncic Nov 29, 2026
60f2149
console: Run now's requester in its event, the unread community named
pbuncic Nov 29, 2026
3b05d0f
console: the chat reads the site's GitLab docs with its read token
pbuncic Nov 29, 2026
4d67c51
site: the chat's docs without the obsolete bits-manifests README
pbuncic Nov 29, 2026
0951930
console: the old schedule files counted by the backend
pbuncic Nov 29, 2026
dbb5f0f
docs: bits-manifests is the certified set's mirror, not where it is s…
pbuncic Nov 29, 2026
5637035
Queue: the community with the fewest builds running goes next
pbuncic Nov 29, 2026
2bacf98
Queue: a missing host's hour is kept in the database
pbuncic Nov 29, 2026
fb9dadd
Worker: the collectors run on a thread of their own
pbuncic Nov 29, 2026
93b7372
Watches: connect to the address checked to be public
pbuncic Nov 29, 2026
1f23bfc
Schedules: the community directory as the console project names it
pbuncic Nov 29, 2026
5dd0b75
Vulnerabilities: a development-head claim names who made it
pbuncic Nov 29, 2026
3581809
Forge: a list over 5000 entries is an error, not cut
pbuncic Nov 29, 2026
0712074
Backend: /ops/file is gone
pbuncic Nov 29, 2026
f071fb6
Forge: one rule for GitLab's answers; a 502 says its reason for a 4xx…
pbuncic Nov 29, 2026
17a4851
Backend: BITS_DESIRED_REF must be a git ref
pbuncic Nov 29, 2026
3958a46
Mirror: BOMs are committed as their bytes
pbuncic Nov 29, 2026
4d8eba1
SBOMs: read up to 32 MiB
pbuncic Nov 29, 2026
d0d607b
Redaction: bits' read tokens by name
pbuncic Nov 29, 2026
fde2138
Deps: one store client per process, anonymous and keyed apart
pbuncic Nov 29, 2026
dd0e535
Worker: the database and backup directories are 0700
pbuncic Nov 29, 2026
1e6cc4e
bits-admin: the last events read from the end of the file
pbuncic Nov 29, 2026
90c4363
bits-admin: a key added with the setup code says so
pbuncic Nov 29, 2026
4773380
bits-admin: a Content-Length that is not a number is refused
pbuncic Nov 29, 2026
6777904
Certified set: a certification reads its architectures' BOMs only
pbuncic Nov 29, 2026
299dfe3
SBOMs: a build's is for its community
pbuncic Nov 29, 2026
00979ef
docs: what the orchestrator's database and the store marker do not guard
pbuncic Nov 29, 2026
f7b349f
docs: an approve link with its code, and what steers the help chat
pbuncic Nov 29, 2026
cf6006d
docs: a publishing run is decided when it fires
pbuncic Nov 29, 2026
a10f320
cvmfs stage: a prepare is stopped after 30 minutes
pbuncic Nov 29, 2026
b33a12b
cvmfs publish: a manual run has a job id of its own
pbuncic Nov 29, 2026
2830d3a
bits-admin: the touch helper's name is its own
pbuncic Nov 29, 2026
cd93a8c
Queue: a community with n builds running takes turn n
pbuncic Nov 29, 2026
e89e3f5
Forge: a list of exactly 5000 entries is whole
pbuncic Nov 29, 2026
dc4329f
Queue: a refused build's row is read once
pbuncic Nov 29, 2026
45f7f13
Watches: each checked address is tried in turn
pbuncic Nov 29, 2026
bb9d43c
Worker: the collectors' progress is each step that ends
pbuncic Nov 29, 2026
b6668de
Queue: a rejected CI configuration holds its own ref only
pbuncic Nov 29, 2026
650f8e1
console-backend: cap pending CLI requests per user on an address
pbuncic Nov 29, 2026
68c3261
cvmfs publish: a missing manifest in an orchestrated store refuses
pbuncic Nov 29, 2026
5416cb0
console-backend README: every store token needs the audit chain writable
pbuncic Nov 29, 2026
65ba80d
Risk over time: a community's admins can hide a release
pbuncic Nov 30, 2026
a2c88c8
Worker: the behind mark is cleared when the outside copy is not ahead
pbuncic Nov 30, 2026
8b47251
bits: the architectures of MODULES and of the work dir together
pbuncic Nov 30, 2026
f463fe4
Worker: an owned set is matched against the store again
pbuncic Nov 30, 2026
27e1e99
Certifier: a refused build is asked again under a newer pre-approval
pbuncic Nov 30, 2026
2fa6b4b
Sandbox: TMPDIR writable, backslash refused, checked before the build
pbuncic Nov 30, 2026
c064085
Docs: set -e applies inside recipe hooks from bits-recipe-tools 0.0.38
pbuncic Nov 30, 2026
818d5ec
Provider ready: a banner, like the fetch it closes
pbuncic Nov 30, 2026
c256d11
Certifier: a half-written first manifest is re-signed from the set
pbuncic Nov 30, 2026
fd65237
compliance --enforce: a manifest certified again meanwhile is waited for
pbuncic Nov 30, 2026
0f3a10f
Console: sessions and console store tokens last 12 hours by default
pbuncic Nov 30, 2026
7d1507a
Reuse: do not query the store for installed packages
pbuncic Dec 1, 2026
e0585c9
Reuse: let the revision counter reuse the plan's store listings
pbuncic Dec 1, 2026
d25efa6
Reuse: foresee the store keys the revision counter will ask for
pbuncic Dec 1, 2026
bd70abb
Docs: give the site a home page and list FAQ and tasks
pbuncic Dec 1, 2026
d73c817
Docs: link the FAQ to the README by its address
pbuncic Dec 1, 2026
ff6211d
README: say what bits is, install, one example, and link the rest
pbuncic Dec 1, 2026
1b4fa50
README: acknowledge aliBuild and the use of Claude
pbuncic Dec 1, 2026
080fb2b
Docs: a tutorial for the first build
pbuncic Dec 1, 2026
14b0fb7
Docs: make the site's heading anchors the ones GitHub makes
pbuncic Dec 1, 2026
89b5652
Docs: a glossary
pbuncic Dec 1, 2026
06ae425
Docs: one page for renamed and removed commands and options
pbuncic Dec 1, 2026
984266b
Mirrors: skip a fetch for a mirror that already has what this build w…
pbuncic Dec 1, 2026
49df64f
User guide: current names only; old ones are on the renamed page
pbuncic Dec 1, 2026
a653d78
Reference: current names only; old ones are on the renamed page
pbuncic Dec 1, 2026
c78d2a9
Docs: bits.rc is mostly not needed, not replaced by environment varia…
pbuncic Dec 1, 2026
14ca99c
User guide: say how ALICE differs in one place
pbuncic Dec 1, 2026
1a76552
Docs: move the pages for bits developers out of the reference
pbuncic Dec 1, 2026
a562be7
Add CONTRIBUTING.md
pbuncic Dec 1, 2026
5960ebf
Reference: one sentence per bits build option, details below the table
pbuncic Dec 1, 2026
5a4bae2
Removing obsolete ROADMAP.md
pbuncic Dec 2, 2026
404f862
Through bits-store: an architecture's first build goes on
pbuncic Dec 2, 2026
918a27c
Reference: short rows for the remaining long options and recipe fields
pbuncic Dec 1, 2026
29de3f3
plan: recognise an installed package with no cached tarball
pbuncic Dec 2, 2026
999fc5b
CHANGELOG: cut 0.8.0
pbuncic Dec 2, 2026
1e646c6
Tests: the CVMFS variable-slot tests run under unittest
pbuncic Dec 2, 2026
5508ec8
Add SECURITY.md
pbuncic Dec 1, 2026
1536fe4
Docs: drop the links to the removed roadmap
pbuncic Dec 2, 2026
ad46ecc
Tests: bitsStore with the test's Python, and nothing left behind
pbuncic Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
277 changes: 277 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Contributing to bits

- Open an issue at <https://github.com/bitsorg/bits/issues> before non-trivial work.
- Branch from `main` and open a pull request.
- Run `ruff check .` and the tests (`pytest`, or `tox` for the full suite).
- Sign off your commits: `git commit -s` (Developer Certificate of Origin).

Setting up, where the code is, how to test and which document to update are in
[Developing bits](docs/DEVELOPING.md). Licences are described in the
[README](README.md#licensing).

Security flaws are reported privately: see [SECURITY.md](SECURITY.md).
385 changes: 79 additions & 306 deletions README.md

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Security

## Reporting a vulnerability

If you find a security flaw in bits, do not open a public issue. Report it privately:
on the repository's **Security** tab choose **Report a vulnerability**, or go to
<https://github.com/bitsorg/bits/security/advisories/new>.

Say what is affected, how to reproduce it and what an attacker gains. The report is
visible only to you and the maintainers until a fix is published.

This covers the `bits` command and the console backend in this repository: for
example a way to have an unsigned binary reused, to forge an approval or a signature,
or to read or change a store without the right to. A flaw in another bits repository
can be reported the same way there, or here if that is not possible.

## Supported versions

Fixes are made on `main` and in the latest release. Earlier releases are not patched.

## What does not belong here

Vulnerabilities in the software that bits *builds* (a CVE in a package of a stack)
are the business of the community that publishes the stack. Its SBOMs and scan
results are in bits-console.
8 changes: 8 additions & 0 deletions aliBuild
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ export BITS_LEGACY_ARCH="${BITS_LEGACY_ARCH:-1}"
# directory (you are normally inside a recipe repo). BITS_REPO_DIR seeds the
# --config-dir default in args.py; an explicit --config-dir still overrides it.
export BITS_REPO_DIR="${BITS_REPO_DIR:-alidist}"
# aliBuild's names for the work dir and the build dir (BUILD/ on another disk), as
# ALICE's scripts and sites set them; the BITS_ ones, when set, win.
if [[ -z "${BITS_WORK_DIR:-}" && -n "${ALIBUILD_WORK_DIR:-${ALICE_WORK_DIR:-}}" ]]; then
export BITS_WORK_DIR="${ALIBUILD_WORK_DIR:-$ALICE_WORK_DIR}"
fi
if [[ -z "${BITS_BUILD_WORK_DIR:-}" && -n "${ALIBUILD_BUILD_WORK_DIR:-}" ]]; then
export BITS_BUILD_WORK_DIR="$ALIBUILD_BUILD_WORK_DIR"
fi
exec "$(dirname "$0")/bits" "$@"
33 changes: 24 additions & 9 deletions bits
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Building:
use [SECTION] ARGS save options for the commands run in this directory
checksums check (--write: record) a repository's checksums
upgrade PACKAGE set new versions of packages in the recipes
rpm PACKAGE relocatable RPMs of built packages
stats the resource report of a monitored build
brew a Homebrew Brewfile from the recipes (macOS)
clean remove temporary build trees and unused versions
Expand All @@ -73,6 +74,8 @@ Trust and compliance:

Binary store:
store SUBCOMMAND ls, cat, verify, stats, upload, rm, gc
login [--group GROUP] log in to bits-console (and get GROUP's store token)
logout end the bits-console login

Documentation: https://github.com/bitsorg/bits/tree/main/docs
EoF
Expand Down Expand Up @@ -744,6 +747,17 @@ if [[ "${1:-}" == "trace" ]]; then
BITS_SELF="${BITSDIR}" exec "${BITS_PY:-python3}" ${BITS_PY:+-E -s} -c 'import os,sys; sys.path.insert(0, os.environ.get("BITS_SELF","")); from bits_helpers.trace import main; sys.exit(main())' "$@"
fi

# `bits login [--group G]`: a console session (~/.bits/console-session) and G's
# bits-store token (~/.bits/token); `bits logout` ends the session. Backend only.
if [[ "${1:-}" == "login" ]]; then
shift
BITS_SELF="${BITSDIR}" exec "${BITS_PY:-python3}" ${BITS_PY:+-E -s} -c 'import os,sys; sys.path.insert(0, os.environ.get("BITS_SELF","")); from bits_helpers.store_login import main; sys.exit(main())' "$@"
fi
if [[ "${1:-}" == "logout" ]]; then
shift
BITS_SELF="${BITSDIR}" exec "${BITS_PY:-python3}" ${BITS_PY:+-E -s} -c 'import os,sys; sys.path.insert(0, os.environ.get("BITS_SELF","")); from bits_helpers.store_login import logout_main; sys.exit(logout_main())' "$@"
fi

# `bits cvmfs {platforms,show,summary,stage,publish} …` → the CVMFS group.
# platforms/show/summary read a deployed tree (no work dir); stage/publish are
# the producer-side ops, delegated inside cvmfs_inspect.main to their
Expand All @@ -757,7 +771,7 @@ fi
for arg in "$@"
do
case $arg in
architecture|brew|build|certify|checksums|clean|cleanup|prune|compliance|cvmfs-path|deps|doctor|import|init|publish|sbom|sign|stats|status|upgrade|verify|version|--debug|-d)
architecture|brew|build|certify|checksums|clean|cleanup|prune|compliance|cvmfs-path|deps|doctor|import|init|publish|rpm|sbom|sign|stats|status|upgrade|verify|version|--debug|-d)
# (the same list in the unknown-command check below)
# bitsBuild creates the work directory when a command runs (not for
# --help, version or architecture).
Expand Down Expand Up @@ -851,7 +865,7 @@ case "$ACTION" in
help) printHelp; exit 0 ;;
"") [[ -z "$_HELP" ]] || { printHelp; exit 0; }
usageError "no command given"; exit 1 ;;
architecture|brew|build|certify|checksums|clean|cleanup|prune|compliance|cvmfs-path|deps|doctor|import|init|publish|sbom|sign|stats|status|upgrade|verify|version|store|use|cvmfs|cvmfs-stage|cvmfs-publish|store-stats|preload|overlay|lcg-view)
architecture|brew|build|certify|checksums|clean|cleanup|prune|compliance|cvmfs-path|deps|doctor|import|init|publish|rpm|sbom|sign|stats|status|upgrade|verify|version|store|use|cvmfs|cvmfs-stage|cvmfs-publish|store-stats|preload|overlay|lcg-view)
usageError "$ACTION takes its options after it: bits $ACTION [OPTIONS]"; exit 1 ;;
*) usageError "unknown command: $ACTION"; exit 1 ;;
esac
Expand Down Expand Up @@ -965,13 +979,14 @@ if [[ -z "$_ARCH_GIVEN" ]]; then
# reuse-from-modules overlays live under MODULES/<build_id>/<arch>, so MODULES/
# can also hold <build_id> dirs with no CPU token — exclude those so an overlay
# is never mistaken for an architecture.
# Those of MODULES/ and of the work dir together, newest first: a MODULES/<arch> an
# earlier enter made must not hide an arch built since.
_present=()
[[ -n "$NO_WORK_DIR" ]] || for _d in "$WORK_DIR/MODULES" "$WORK_DIR"; do
for _a in $(ls -1t "$_d" 2> /dev/null); do
[[ -d "$_d/$_a" && "$_a" =~ (x86[-_]64|aarch64|arm64|ppc64le|ppc64|riscv64) ]] && _present+=("$_a")
done
(( ${#_present[@]} )) && break
done
[[ -n "$NO_WORK_DIR" ]] || while IFS= read -r _p; do
_a=${_p##*/}
[[ -d "$_p" && "$_a" =~ (x86[-_]64|aarch64|arm64|ppc64le|ppc64|riscv64) &&
" ${_present[*]} " != *" $_a "* ]] && _present+=("$_a")
done < <(ls -1td "$WORK_DIR"/MODULES/* "$WORK_DIR"/* 2> /dev/null)
if [[ ${#_present[@]} -eq 1 ]]; then
ARCHITECTURE="${_present[0]}" # sole installed arch — no python spawn
elif [[ ${#_present[@]} -gt 1 ]]; then
Expand All @@ -993,7 +1008,7 @@ if [[ -z "$_ARCH_GIVEN" ]]; then
for _m in "${ARGS[@]}"; do [[ "$_m" == -* ]] && continue; _want="${_m%%/*}"; break; done
if [[ -n "$_want" ]]; then
for _a in "${_present[@]}"; do
[[ -d "$WORK_DIR/MODULES/$_a/$_want" ]] && { ARCHITECTURE="$_a"; break; }
[[ -d "$WORK_DIR/MODULES/$_a/$_want" || -d "$WORK_DIR/$_a/$_want" ]] && { ARCHITECTURE="$_a"; break; }
done
fi
fi
Expand Down
12 changes: 11 additions & 1 deletion bitsBuild
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,23 @@ def doMain(args, parser):
sys.exit(0)

if args.action == "build":
doBuild(args, parser)
try:
doBuild(args, parser)
except BaseException as exc:
if getattr(args, "manifest", None) is not None:
args.manifest.stopped(exc) # an error or Ctrl-C does not leave it "in_progress"
raise
sys.exit(0)

if args.action == "publish":
_rc = doPublish(args, parser) # --release-view returns a bool; package path returns None
sys.exit(0 if _rc is None or _rc else 1)

if args.action == "rpm":
from bits_helpers.rpm import doRpm
doRpm(args, parser)
sys.exit(0)

if args.action == "certify":
from bits_helpers.publish import doCertify
doCertify(args, parser)
Expand Down
Loading
Loading