Plan Linux binary releases and prepare credential storage
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@ notarius
|
|||||||
notarius-output
|
notarius-output
|
||||||
workspace/
|
workspace/
|
||||||
.codebase-memory/
|
.codebase-memory/
|
||||||
|
/.releasekit/
|
||||||
|
|
||||||
# ---> Go
|
# ---> Go
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
# If you prefer the allow list template instead of the deny list, see community template:
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ validation, publication, build, and recovery mechanics. Notarius supplies produc
|
|||||||
facts, compatibility decisions, and any justified product-specific checks.
|
facts, compatibility decisions, and any justified product-specific checks.
|
||||||
|
|
||||||
This is a feature roadmap, not an implementation sequence. It authorizes no
|
This is a feature roadmap, not an implementation sequence. It authorizes no
|
||||||
release publication. Resolve the decisions below before preparing the staged
|
release publication. The approved distribution scope is source tags, hosted
|
||||||
implementation plan.
|
release notes, and Linux/amd64 binaries, using native ReleaseKit delivery.
|
||||||
|
|
||||||
## Reviewed Baseline
|
## Reviewed Baseline
|
||||||
|
|
||||||
@@ -60,8 +60,8 @@ identity. Both uses share the module-selected version.
|
|||||||
|
|
||||||
Use a root `releasekit.json` with product `Notarius`, the root Go module, and
|
Use a root `releasekit.json` with product `Notarius`, the root Go module, and
|
||||||
authoritative remote `origin`. Use native defaults where they express the selected
|
authoritative remote `origin`. Use native defaults where they express the selected
|
||||||
behavior; omit unnecessary settings. Build and delivery fields depend on the
|
behavior; omit unnecessary settings. Declare the selected build and delivery
|
||||||
decisions below. Do not add a separate Notarius configuration schema for releases.
|
settings below. Do not add a separate Notarius configuration schema for releases.
|
||||||
|
|
||||||
Invoke the tool by its full package path. If a convenience launcher is useful,
|
Invoke the tool by its full package path. If a convenience launcher is useful,
|
||||||
keep it to the upstream host-target selection and direct argument forwarding,
|
keep it to the upstream host-target selection and direct argument forwarding,
|
||||||
@@ -74,6 +74,40 @@ Go tool dependencies participate in the application's module graph. Update
|
|||||||
applicable attribution for the runtime import and any copied material under the
|
applicable attribution for the runtime import and any copied material under the
|
||||||
[OSS policy](../policy/oss.md), using the selected upstream source revision.
|
[OSS policy](../policy/oss.md), using the selected upstream source revision.
|
||||||
|
|
||||||
|
### Release deliverables and credential supply
|
||||||
|
|
||||||
|
Publish an annotated source tag with its committed release note, then deliver a
|
||||||
|
hosted Gitea release page and the native Linux/amd64 binary assets. Use the
|
||||||
|
complete committed release note as the hosted body, including its license and
|
||||||
|
attribution footer. ReleaseKit owns binary naming, version injection, hashing,
|
||||||
|
its native checksum manifest, upload, and delivery reconciliation. Do not add
|
||||||
|
custom packaging or upload scripts.
|
||||||
|
|
||||||
|
The single native profile selects:
|
||||||
|
|
||||||
|
- Build main package `./cmd/notarius`, binary name `notarius`, and exactly one
|
||||||
|
target: `linux/amd64`.
|
||||||
|
- Delivery forge `gitea`, base URL `https://forge.maximumdirect.net`, owner
|
||||||
|
`eric`, and repository `notarius`.
|
||||||
|
- Credential environment variable `RELEASEKIT_GITEA_TOKEN` and fallback token
|
||||||
|
file `.releasekit/gitea-token`, relative to the repository root. Native
|
||||||
|
precedence applies: a nonblank environment value takes precedence over the
|
||||||
|
file. These credentials are for hosted delivery, not source-tag publication.
|
||||||
|
|
||||||
|
The local `.releasekit/` directory is git-ignored. Put only the plain personal
|
||||||
|
access token in `gitea-token`, without a variable assignment or JSON wrapper.
|
||||||
|
Use owner-only access for this credential, following upstream token-file
|
||||||
|
guidance. The token needs access to the Notarius repository and permission to
|
||||||
|
create releases and upload release assets. Do not copy it into the profile,
|
||||||
|
documentation, or tracked files. CI supplies its own secret through the native
|
||||||
|
environment variable rather than depending on the maintainer's local file.
|
||||||
|
|
||||||
|
This replaces the current source-only distribution decision. Retain source-build
|
||||||
|
installation guidance and add the selected binary installation path. macOS,
|
||||||
|
Linux/arm64, and Windows binaries, OS packages, containers, custom archives,
|
||||||
|
and signing are not selected in this work set. Future targets may be considered
|
||||||
|
when there is a concrete need; this selection is not a permanent prohibition.
|
||||||
|
|
||||||
### Native publication and recovery
|
### Native publication and recovery
|
||||||
|
|
||||||
Adopt these intentional changes rather than preserving the old workflow through
|
Adopt these intentional changes rather than preserving the old workflow through
|
||||||
@@ -90,10 +124,12 @@ compatibility wrappers:
|
|||||||
preliminary invocation that duplicates `publish` validation.
|
preliminary invocation that duplicates `publish` validation.
|
||||||
|
|
||||||
Historical lightweight tags and published notes remain unchanged. Source
|
Historical lightweight tags and published notes remain unchanged. Source
|
||||||
publication completes at confirmed tag publication, independently of CI or any
|
publication completes at confirmed tag publication, independently of CI or
|
||||||
optional hosted delivery. Recovery must not become a routine successful-push
|
hosted delivery. Delivering the release page and binary assets is required work
|
||||||
read-back gate. No new manual approval, signing, consumer-installation, or
|
with a separate reported outcome; a delivery failure leaves the source release
|
||||||
provider-availability gate is part of this work.
|
intact and is recovered against the same immutable tag. Recovery must not become
|
||||||
|
a routine successful-push read-back gate. No new manual approval, signing,
|
||||||
|
consumer-installation, or provider-availability gate is part of this work.
|
||||||
|
|
||||||
### Proportionate native validation
|
### Proportionate native validation
|
||||||
|
|
||||||
@@ -102,9 +138,13 @@ checks. Remove the duplicated suite command from Notarius-owned release code.
|
|||||||
Prepare dependencies and the selected toolchain separately from offline
|
Prepare dependencies and the selected toolchain separately from offline
|
||||||
validation, following upstream conventions.
|
validation, following upstream conventions.
|
||||||
|
|
||||||
Preserve the rationale for exercising the built CLI and injected version, subject
|
Retain the executable/version gate through the same native Linux/amd64 build
|
||||||
to Open Decision 2. Use ReleaseKit's native build machinery rather than retaining
|
selection used for delivery. Candidate validation uses temporary build output;
|
||||||
custom linker flags or a shell build/version checker.
|
delivery builds from the published tagged source. On a different host,
|
||||||
|
ReleaseKit additionally builds a temporary native executable for its version
|
||||||
|
check. This is a deliberate move from a strictly host-only build to the selected
|
||||||
|
distribution target plus the native check, not a broader platform matrix.
|
||||||
|
Do not retain custom linker flags or a shell build/version checker.
|
||||||
|
|
||||||
Other native checks, including full vet, race testing, formatting, Markdown,
|
Other native checks, including full vet, race testing, formatting, Markdown,
|
||||||
module-distribution checks, forbidden paths, and file-size limits, are optional
|
module-distribution checks, forbidden paths, and file-size limits, are optional
|
||||||
@@ -130,11 +170,13 @@ Remove `.woodpecker/release.yml`'s redundant post-publication check. Native
|
|||||||
`check` requires a clean candidate on `main` with no existing release tag, so it
|
`check` requires a clean candidate on `main` with no existing release tag, so it
|
||||||
is not a drop-in command for that detached/tagged job.
|
is not a drop-in command for that detached/tagged job.
|
||||||
|
|
||||||
If hosted delivery is selected, use the maintained ReleaseKit consumer
|
Use the maintained ReleaseKit consumer tag-delivery workflow and native
|
||||||
tag-delivery workflow and native `ci-deliver`, adapted only for Notarius's actual
|
`ci-deliver`, adapted only for Notarius's actual profile and CI environment.
|
||||||
profile and CI environment. Keep source publication and delivery outcomes
|
Keep source publication and delivery outcomes
|
||||||
separate. Do not copy delivery automation or introduce forge credentials when
|
separate. Document native local delivery as the alternative when CI delivery is
|
||||||
delivery is not selected.
|
unavailable; both routes use the same committed profile and tagged source.
|
||||||
|
Use native retained build output and receipts when retrying delivery requires
|
||||||
|
preserving previously produced bytes, rather than adding local artifact tracking.
|
||||||
|
|
||||||
## Required Repository Changes
|
## Required Repository Changes
|
||||||
|
|
||||||
@@ -144,16 +186,16 @@ delivery is not selected.
|
|||||||
Keep only any genuinely useful, thin native launcher.
|
Keep only any genuinely useful, thin native launcher.
|
||||||
- Replace runtime version wiring and remove `internal/buildinfo`; adjust the
|
- Replace runtime version wiring and remove `internal/buildinfo`; adjust the
|
||||||
affected CommandKit CLI tests.
|
affected CommandKit CLI tests.
|
||||||
- Remove the redundant advisory release CI job, or replace it with native
|
- Replace the redundant advisory release CI job with native hosted-page and
|
||||||
delivery only if that distribution option is approved.
|
Linux/amd64 asset delivery, including its separately supplied CI secret.
|
||||||
- Rewrite `docs/release.md` around Notarius's selected native workflow. Include
|
- Rewrite `docs/release.md` around Notarius's selected native workflow. Include
|
||||||
product-specific preparation, actual entry commands, selected toolchain,
|
product-specific preparation, actual entry commands, selected toolchain,
|
||||||
release-note location/footer, delivery choice, and upstream recovery links.
|
release-note location/footer, delivery choice, and upstream recovery links.
|
||||||
- Update `docs/policy/release.md` for annotated tags, pre-pushed `main`, native
|
- Update `docs/policy/release.md` for annotated tags, pre-pushed `main`, native
|
||||||
validation ownership, the selected build gate, and any approved delivery
|
validation ownership, the selected build gate, and hosted/binary delivery
|
||||||
change. Preserve versioning, immutability, and compatibility decisions not
|
instead of source-only distribution. Preserve versioning, immutability, and
|
||||||
changed by this roadmap. Avoid restating upstream implementation mechanics as
|
compatibility decisions not changed by this roadmap. Avoid restating upstream
|
||||||
additional local guarantees.
|
implementation mechanics as additional local guarantees.
|
||||||
- Update `docs/cli.md` for native runtime identity, and relevant links or local
|
- Update `docs/cli.md` for native runtime identity, and relevant links or local
|
||||||
integration statements in README, `docs/development.md`, and internal docs.
|
integration statements in README, `docs/development.md`, and internal docs.
|
||||||
Document upstream features through canonical upstream links, not a duplicated
|
Document upstream features through canonical upstream links, not a duplicated
|
||||||
@@ -181,6 +223,10 @@ The adoption is complete when:
|
|||||||
identity through CommandKit.
|
identity through CommandKit.
|
||||||
- Product facts and any selected targets/delivery destination are accurate and
|
- Product facts and any selected targets/delivery destination are accurate and
|
||||||
release policy, runbook, profile, and automation agree.
|
release policy, runbook, profile, and automation agree.
|
||||||
|
- The profile selects only Linux/amd64, the hosted body comes from the committed
|
||||||
|
note, and delivery uses native binary/checksum assets and native retry paths.
|
||||||
|
Local credential loading and CI secret mapping use the same native contract;
|
||||||
|
no secret is committed or required by the offline test suite.
|
||||||
- Maintained examples and the normal offline Go suite pass after dependency and
|
- Maintained examples and the normal offline Go suite pass after dependency and
|
||||||
version-wiring changes; run vet/build checks appropriate to those changes.
|
version-wiring changes; run vet/build checks appropriate to those changes.
|
||||||
- Focused consumer verification covers actual wiring, not a copied ReleaseKit
|
- Focused consumer verification covers actual wiring, not a copied ReleaseKit
|
||||||
@@ -192,61 +238,3 @@ The adoption is complete when:
|
|||||||
Do not publish a real release, create hosted pages, or upload assets merely to
|
Do not publish a real release, create hosted pages, or upload assets merely to
|
||||||
verify adoption. Native integration must be verifiable without production API
|
verify adoption. Native integration must be verifiable without production API
|
||||||
keys or a new release tag on `origin`.
|
keys or a new release tag on `origin`.
|
||||||
|
|
||||||
## Open Decisions
|
|
||||||
|
|
||||||
### 1. Which release deliverables should Notarius publish?
|
|
||||||
|
|
||||||
**Recommendation: retain source-only delivery for the initial adoption.**
|
|
||||||
Publish the annotated source tag and committed release note, without hosted
|
|
||||||
release objects or downloadable binaries. Notarius's current audience already
|
|
||||||
builds from source, and its deployment workflow has not established a need for
|
|
||||||
binary distribution. This is the smallest operational surface and requires no
|
|
||||||
forge API credential or delivery job. ReleaseKit-native adoption remains complete
|
|
||||||
with this choice; delivery is a separately selectable capability.
|
|
||||||
|
|
||||||
**Alternative: source tags plus a hosted release-note page, without binaries.**
|
|
||||||
ReleaseKit can publish the complete committed note through native page-only
|
|
||||||
delivery. This improves release discoverability with little application code,
|
|
||||||
but adds forge credentials, profile destination settings, and an independently
|
|
||||||
recoverable delivery operation. If selected, omit build targets from the
|
|
||||||
page-delivery profile; use a separate small native validation profile if the
|
|
||||||
build gate below is retained. This prevents validation-only builds from becoming
|
|
||||||
downloadable assets by virtue of shared profile settings.
|
|
||||||
|
|
||||||
**Alternative: source tags, a hosted page, and native binary assets.**
|
|
||||||
This makes installation easier where Go/private-module build access is
|
|
||||||
inconvenient. ReleaseKit can build, name, hash, deliver, and reconcile the assets
|
|
||||||
without custom packaging code. It nevertheless introduces target selection and
|
|
||||||
ongoing distribution/support work. If chosen, agree on a small explicit Linux
|
|
||||||
target set; macOS binaries are a separate convenience choice. Windows support,
|
|
||||||
OS packages, containers, signatures, and custom archives do not follow
|
|
||||||
automatically from selecting binaries. Keep delivery completion distinct from
|
|
||||||
successful source publication under every option.
|
|
||||||
|
|
||||||
### 2. How should the executable/version validation gate map to native builds?
|
|
||||||
|
|
||||||
**Recommendation: retain the protection through one native Linux/amd64 build
|
|
||||||
target.** Declare `./cmd/notarius`, binary name `notarius`, and that target in
|
|
||||||
the validation profile. ReleaseKit's candidate path builds into temporary
|
|
||||||
storage and checks a native executable's injected version; these temporary
|
|
||||||
products are not published. This replaces the current custom gate with native
|
|
||||||
machinery and avoids a broad build matrix.
|
|
||||||
|
|
||||||
This is a small deliberate change from a strictly host-only build: on another
|
|
||||||
host ReleaseKit also performs its native version check, while still compiling
|
|
||||||
the selected Linux target. The current profile has no host-only target keyword;
|
|
||||||
do not implement custom target interpolation to conceal that difference.
|
|
||||||
|
|
||||||
**Alternative: use the native source-only baseline without a build selection.**
|
|
||||||
This has the smallest profile and retains the default test suite, but deliberately
|
|
||||||
drops the release gate exercising linker injection and the actual executable.
|
|
||||||
Ordinary CLI tests are useful but do not provide the same end-to-end evidence.
|
|
||||||
Choose this only as an explicit revision of the current gate rationale.
|
|
||||||
|
|
||||||
**Alternative: request upstream host-only build/version validation.**
|
|
||||||
This would preserve the exact current scope with no target selection or local
|
|
||||||
build implementation. It is a useful possible upstream enhancement, but the
|
|
||||||
reviewed release does not provide it, so making it a prerequisite would delay
|
|
||||||
adoption. Prefer the existing native option unless exact host-only scope is
|
|
||||||
important enough to justify that dependency.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user