Serve /.well-known/source #227

Merged
jcoffey-dev merged 1 commits from feat/well-known-source into main 2026-10-29 05:31:10 +00:00
Owner

Serves /.well-known/source as https://coffeylabs.org/specs/well-known-source/ defines it: name, version, license, the public repository and the commit the build was made from. JSON, Cache-Control: no-cache, open CORS, anonymous rate limit like the other well-known endpoints.

  • The commit is compiled in from INBUXA_REVISION (types::branding::BUILD_REVISION). The Docker context has no .git, so the Dockerfile takes it as a build arg, and both publish paths pass the tag's commit (Gitea publish.yml, GitHub ci.yml).
  • No full commit id, no document: the address answers 404. Local cargo builds are unaffected.
  • Checked: unit tests for the document; a debug build with INBUXA_REVISION set, run on an empty store, answered GET and HEAD with 200 and the expected body; fork checks and cargo fmt --check clean.

Ships with the next server release; nothing to deploy on its own.

Serves `/.well-known/source` as https://coffeylabs.org/specs/well-known-source/ defines it: name, version, license, the public repository and the commit the build was made from. JSON, `Cache-Control: no-cache`, open CORS, anonymous rate limit like the other well-known endpoints. - The commit is compiled in from `INBUXA_REVISION` (`types::branding::BUILD_REVISION`). The Docker context has no `.git`, so the Dockerfile takes it as a build arg, and both publish paths pass the tag's commit (Gitea `publish.yml`, GitHub `ci.yml`). - No full commit id, no document: the address answers 404. Local `cargo build`s are unaffected. - Checked: unit tests for the document; a debug build with `INBUXA_REVISION` set, run on an empty store, answered GET and HEAD with 200 and the expected body; fork checks and `cargo fmt --check` clean. Ships with the next server release; nothing to deploy on its own.
jcoffey-dev added 1 commit 2026-10-29 04:58:03 +00:00
Serve /.well-known/source
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 7m9s
d67b3f3125
The address https://coffeylabs.org/specs/well-known-source/ defines:
the server's name, version and license, its public repository, and the
commit the build was made from. The release images get the commit as
INBUXA_REVISION, since their build context has no .git; a build without
a full commit id answers 404, as a repository without a revision
doesn't name the build.
jcoffey-dev merged commit 0df0d1fe14 into main 2026-10-29 05:31:10 +00:00
jcoffey-dev deleted branch feat/well-known-source 2026-10-29 05:31:10 +00:00
Sign in to join this conversation.