GeezerVison is showing github.com — fix(cli): repair schema setup and inspect output for candidate 0.6.17… · PastureStack/cli@0390206
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/security-release-gate.yml +332-320Lines changed: 332 additions & 320 deletions Large diffs are not rendered by default. Collapse file Copy file name to clipboard +35-33Lines changed: 35 additions & 33 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# PastureStack CLI | 2 | | - | 3 | | -CLI manages compatible environments, hosts, stacks, services, containers, volumes, secrets, catalogs, and accounts through the preserved API. | 4 | | - | 5 | | -PastureStack is an independent community effort to preserve, audit, and modernize the Rancher 1.6 ecosystem. It is not affiliated with or endorsed by Rancher Labs or SUSE. | 6 | | - | 7 | | -**Upstream:** [`rancher/cli`](https://github.com/rancher/cli). This GitHub fork preserves upstream history, authorship, dates, tags, licenses, and bundled dependency notices. PastureStack maintenance is consolidated into one commit after the preserved upstream boundary. | 8 | | - | 9 | | -## Project status | 10 | | - | 11 | | -This is a migration proof of concept based on the latest reviewed upstream `v1.6` branch. Candidate `0.6.16` uses a digest-pinned Ubuntu 26.04 base, the `20260808T000000Z` Ubuntu package snapshot, Go 1.27.0, Docker 29.7.2, Go Modules with a checked-in vendor lock, non-root runtime packaging, and reproducible archives. The maintained binary and image name is `pasturestack`. | 12 | | - | 13 | | -The archived `docker/libcompose` source tree and duplicated Compose executor have been removed. The `up` command delegates to the matching maintained `pasturestack-compose` binary; set `PASTURESTACK_COMPOSE_BINARY` only when it is not on `PATH`. API keys are passed through the child environment rather than command-line arguments. | 14 | | - | 15 | | -The GitHub security release gate builds and packages twice, runs tests with the race detector, validates source contracts, produces review SBOMs, and scans the source, binary, build image, and runtime image. It does not publish binaries or images, create a release, or deploy software. | 16 | | - | 17 | | -## Configuration | 18 | | - | 19 | | -Use `PASTURESTACK_URL`, `PASTURESTACK_ACCESS_KEY`, and `PASTURESTACK_SECRET_KEY`. Generic `PLATFORM_*` names, historical environment-variable names, and the existing on-disk configuration are read as migration aliases so established installations and scripts continue to work. Set `PASTURESTACK_LOCALE=en-US` or `zh-TW` for operator messages. | 20 | | - | 21 | | -## Build and test | 22 | | - | 23 | | -```sh | 24 | | -make build | 25 | | -make test | 26 | | -make package | 27 | | -``` | 28 | | - | 29 | | -Packaging is local only and does not publish an image. Candidate archives use the numeric version `0.6.16`; the upstream-boundary `v0.6.14` tag remains immutable. See [COMPATIBILITY.md](COMPATIBILITY.md), [SECURITY.md](SECURITY.md), and [ORIGIN.md](ORIGIN.md). | 30 | | - | 31 | | -## License and attribution | 32 | | - | 33 | | -The inherited project remains licensed under [Apache License 2.0](LICENSE). Copyright and attribution for inherited work and bundled dependencies remain with their respective authors and contributors. PastureStack contributors claim authorship only for their own changes. | | 1 | +# PastureStack CLI | | 2 | + | | 3 | +CLI manages compatible environments, hosts, stacks, services, containers, volumes, secrets, catalogs, and accounts through the preserved API. | | 4 | + | | 5 | +PastureStack is an independent community effort to preserve, audit, and modernize the Rancher 1.6 ecosystem. It is not affiliated with or endorsed by Rancher Labs or SUSE. | | 6 | + | | 7 | +**Upstream:** [`rancher/cli`](https://github.com/rancher/cli). This GitHub fork preserves upstream history, authorship, dates, tags, licenses, and bundled dependency notices. PastureStack maintenance is consolidated into one commit after the preserved upstream boundary. | | 8 | + | | 9 | +## Project status | | 10 | + | | 11 | +This is a migration proof of concept based on the latest reviewed upstream `v1.6` branch. Candidate CLI `0.6.17` uses a digest-pinned Ubuntu 26.04 base, the `20260808T000000Z` Ubuntu package snapshot, Go 1.27.0, Docker 29.7.2, Go Modules with a checked-in vendor lock, non-root runtime packaging, and reproducible archives. The maintained binary and image name is `pasturestack`. | | 12 | + | | 13 | +CLI `0.6.17` removes a duplicated `/schemas` suffix during client setup and makes `inspect` flush successful JSON and return setup or HTTP errors. Environment URL normalization and Compose delegation remain unchanged. See [release notes](RELEASE-0.6.17.md). | | 14 | + | | 15 | +The archived `docker/libcompose` source tree and duplicated Compose executor have been removed. The `up` command delegates to the matching maintained `pasturestack-compose` binary; set `PASTURESTACK_COMPOSE_BINARY` only when it is not on `PATH`. API keys are passed through the child environment rather than command-line arguments. | | 16 | + | | 17 | +The GitHub security release gate builds and packages twice, runs tests with the race detector, validates source contracts, produces review SBOMs, and scans the source, binary, build image, and runtime image. Successful runs retain the complete numeric candidate archives, checksum manifest, and source revision for reviewed publication. The gate does not create a release, publish an image, or deploy software. | | 18 | + | | 19 | +## Configuration | | 20 | + | | 21 | +Use `PASTURESTACK_URL`, `PASTURESTACK_ACCESS_KEY`, and `PASTURESTACK_SECRET_KEY`. Generic `PLATFORM_*` names, historical environment-variable names, and the existing on-disk configuration are read as migration aliases so established installations and scripts continue to work. Set `PASTURESTACK_LOCALE=en-US` or `zh-TW` for operator messages. | | 22 | + | | 23 | +## Build and test | | 24 | + | | 25 | +```sh | | 26 | +make build | | 27 | +make test | | 28 | +make package | | 29 | +``` | | 30 | + | | 31 | +Packaging is local only and does not publish an image. Candidate CLI archives use the numeric version `0.6.17`; the upstream-boundary `v0.6.14` tag remains immutable. A reviewed numeric release remains a candidate/prerelease, not a stable-quality claim. See [COMPATIBILITY.md](COMPATIBILITY.md), [SECURITY.md](SECURITY.md), and [ORIGIN.md](ORIGIN.md). | | 32 | + | | 33 | +## License and attribution | | 34 | + | | 35 | +The inherited project remains licensed under [Apache License 2.0](LICENSE). Copyright and attribution for inherited work and bundled dependencies remain with their respective authors and contributors. PastureStack contributors claim authorship only for their own changes. |
Collapse file Copy file name to clipboard +35Lines changed: 35 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# CLI 0.6.17 candidate | | 2 | + | | 3 | +This version belongs to PastureStack CLI, not the Server runtime. It is not a | | 4 | +publication or native-acceptance receipt. The immutable upstream `v0.6.14` tag | | 5 | +is unchanged. Publication, if approved, remains a candidate/prerelease; the | | 6 | +broader CLI compatibility contract and migration-review state are unchanged. | | 7 | + | | 8 | +- Use the environment's existing schema URL directly; do not append a second | | 9 | + `/schemas` segment. | | 10 | +- Flush successful `inspect` output and return setup, HTTP, or output errors. | | 11 | +- Preserve `EnvironmentURL`, `NormalizeUrl`, API payloads, server-provided links, | | 12 | + configuration aliases, and `up` delegation to the maintained Compose binary. | | 13 | + | | 14 | +Focused validation selector: | | 15 | + | | 16 | +```sh | | 17 | +GOTOOLCHAIN=local GOPROXY=off GOSUMDB=off go test -mod=vendor ./cmd -run '^TestCLISchemaInspect017' -count=1 | | 18 | +``` | | 19 | + | | 20 | +The five focused tests use the real client and native inspect action against | | 21 | +local `httptest` responses. They cover the schema request URL, JSON flushing, | | 22 | +missing configuration, schema HTTP denial, and resource HTTP denial. They do | | 23 | +not constitute live Server, CLI publication, or BE-18 whole-row acceptance. | | 24 | + | | 25 | +The release gate packages numeric CLI version `0.6.17`. For a local candidate | | 26 | +build, use `VERSION_OVERRIDE=0.6.17`; source scripts otherwise retain their | | 27 | +existing tag-derived version behavior. | | 28 | + | | 29 | +After a successful complete gate, the artifact | | 30 | +`cli-release-candidate-0.6.17-<source revision>` retains all files under | | 31 | +`dist/artifacts/0.6.17/`, `evidence/artifacts.sha256`, and the source revision | | 32 | +for 14 days. Reviewed publication must use these actual checked bytes, verify | | 33 | +the checksum manifest and tag/source binding, and read back the uploaded | | 34 | +release assets. The gate itself does not publish a release or bypass required | | 35 | +repository checks. |
|