Skip to content

Commit 464a59d

Browse files
authored
Merge pull request #44 from pgsty/codex/console-dependency-policy
fix: prioritize the maintained SILO dependency graph
2 parents dfc51ff + e9b77e3 commit 464a59d

19 files changed

Lines changed: 107 additions & 218 deletions

‎.github/workflows/jobs.yaml‎

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ concurrency:
2525
env:
2626
FIREFOX_VERSION: latest
2727
TESTCAFE_VERSION: 3.7.4
28+
# Historical test recipes call this MINIO_VERSION. The release gate uses the
29+
# maintained SILO server; upstream MinIO is probed separately as best effort.
30+
MINIO_VERSION: docker.io/pgsty/silo:RELEASE.2026-08-06T00-00-00Z
2831

2932
jobs:
3033
lint-job:
@@ -52,7 +55,10 @@ jobs:
5255
make verifiers
5356
5457
upstream-pkg-compat:
55-
name: Build with upstream minio/mc floor
58+
name: Best-effort build with upstream minio/mc graph
59+
# Compatibility with unmodified upstream components is useful evidence but
60+
# is not part of the supported SILO release graph.
61+
continue-on-error: true
5662
runs-on: ubuntu-latest
5763
steps:
5864
- name: Check out code
@@ -61,7 +67,7 @@ jobs:
6167
uses: actions/setup-go@v7
6268
with:
6369
go-version: 1.27.1
64-
- name: Remove the maintained mc replacement and test the advertised floor
70+
- name: Remove the maintained mc replacement and probe compatibility
6571
# hack/upstream-floor.sh models an embedder that does not copy the mc
6672
# replacement.
6773
run: hack/upstream-floor.sh
@@ -236,7 +242,10 @@ jobs:
236242
fi
237243
238244
latest-minio:
239-
name: Test Build latest MinIO with Console
245+
name: Best-effort build of latest upstream MinIO with Console
246+
# This workflow was inherited from the upstream Console. Keep it as an
247+
# advisory signal; the release-tested embedder is pgsty/silo.
248+
continue-on-error: true
240249
needs:
241250
- swagger-codegen
242251
- ui-assets
@@ -318,7 +327,6 @@ jobs:
318327
name: Compiles on Go ${{ matrix.go-version }} and ${{ matrix.os }}
319328
needs:
320329
- lint-job
321-
- upstream-pkg-compat
322330
- downstream-embedder-compat
323331
- ui-assets
324332
- semgrep-static-code-analysis
@@ -1171,7 +1179,7 @@ jobs:
11711179
key: ${{ runner.os }}-coverage-api-2-${{ github.run_id }}
11721180

11731181
b-integration-tests:
1174-
name: Integration Tests with Latest Distributed MinIO
1182+
name: Integration Tests with Pinned SILO
11751183
needs:
11761184
- lint-job
11771185
- ui-assets
@@ -1207,8 +1215,7 @@ jobs:
12071215
echo "Create Console image: $TAG";
12081216
docker build -q --no-cache -t $TAG . -f Dockerfile.release
12091217
1210-
echo "We are going to use the latest minio image on test-integration";
1211-
MINIO_VERSION="quay.io/minio/minio:latest";
1218+
echo "Use the pinned SILO image for integration tests";
12121219
echo $MINIO_VERSION;
12131220
12141221
make test-integration MINIO_VERSION=$MINIO_VERSION TAG=$TAG;
@@ -1246,8 +1253,7 @@ jobs:
12461253

12471254
- name: Build on ${{ runner.os }}
12481255
run: |
1249-
echo "We are going to use the latest minio image on test-integration";
1250-
MINIO_VERSION="quay.io/minio/minio:latest";
1256+
echo "Use the pinned SILO image for site-replication tests";
12511257
echo $MINIO_VERSION;
12521258
12531259
make test-replication MINIO_VERSION=$MINIO_VERSION;
@@ -1285,7 +1291,6 @@ jobs:
12851291
- name: Build on ${{ runner.os }}
12861292
run: |
12871293
echo "Use the pinned SILO release for the Console compatibility gate";
1288-
MINIO_VERSION="docker.io/pgsty/silo:RELEASE.2026-08-06T00-00-00Z";
12891294
echo $MINIO_VERSION;
12901295
12911296
make test-sso-integration MINIO_VERSION=$MINIO_VERSION;
@@ -1670,19 +1675,17 @@ jobs:
16701675
16711676
required-matrix:
16721677
# The release gate (release.yaml) and branch protection look at this one
1673-
# job. It lists every job of the matrix explicitly and fails unless each
1674-
# of them succeeded: a skipped, cancelled or failed job is a failure, and
1675-
# a job removed from this list is a reviewed contract change.
1678+
# job. It lists every release-gating job explicitly and fails unless each
1679+
# succeeded. Best-effort upstream compatibility jobs are intentionally not
1680+
# included: they report drift without overriding the maintained SILO graph.
16761681
name: Required matrix
16771682
if: always()
16781683
needs:
16791684
- lint-job
1680-
- upstream-pkg-compat
16811685
- downstream-embedder-compat
16821686
- semgrep-static-code-analysis
16831687
- ui-assets
16841688
- swagger-codegen
1685-
- latest-minio
16861689
- compile-binary
16871690
- release-artifacts
16881691
- test-nginx-subpath

‎AGENTS.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SILO Console Guide
2+
3+
SILO Console is maintained and release-tested for `pgsty/silo`. Compatibility
4+
with unmodified upstream MinIO is best effort, not a product or release
5+
guarantee. Inherited upstream-MinIO build jobs may provide advisory information,
6+
but must not constrain the maintained dependency graph or block a SILO release
7+
unless the user explicitly asks for that gate.
8+
9+
Use `github.com/pgsty/silo-pkg/v3` directly for shared SILO functionality. Do
10+
not pin, downgrade, or reimplement around it merely to compile against upstream
11+
`github.com/minio/pkg/v3`. An unavoidable transitive `minio/pkg` package is not
12+
the product implementation and should remain indirect and documented.
13+
14+
Use the verified upstream `github.com/minio/minio-go/v7` commit as the explicit
15+
exception. The maintained Console graph may select `pgsty/mc`; test integration
16+
against `pgsty/silo`. Preserve low-cost wire, configuration, CLI, migration, and
17+
import compatibility where practical, and describe it as best effort.
18+
19+
Do not treat a local build, tag, draft release, image, documentation preview, or
20+
another repository's CI result as proof that this repository has been released.

‎CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Security and build maintenance:
77
- Builds with Go 1.27.1 and GitHub Actions `setup-go` v7
88
- Updates the maintained dependency chain to released `silo-pkg` v3.13.2 and immutable `pgsty/mc` `RELEASE.2026-09-03T07-13-05Z` (`a2ef95c0`), while keeping `minio-go` on upstream master commit `0e78d3f18efe`
99
- Refreshes the compiled Go dependency closure, including `golang.org/x/crypto` v0.56.0 for the SSH channel denial-of-service fixes, gRPC-Go v1.83.2 for CVE-2026-84304, Protobuf v1.36.12, `klauspost/compress` v1.20.0, Prometheus libraries, JWX v3.2.0 and the current go-openapi line
10-
- Keeps the separate upstream `minio/pkg` compatibility module at v3.10.1, the latest release that builds with the current upstream MinIO server: v3.11.0 changes admin-action constants to a distinct type and breaks that embedder; maintained Console code uses `silo-pkg` v3.13.2 directly
10+
- Uses `silo-pkg` v3.13.2's strict policy API directly instead of duplicating it around an upstream compatibility floor. Any remaining `minio/pkg` package is transitive legacy code, not the maintained implementation; upstream MinIO/mc builds remain best-effort, non-blocking compatibility signals
11+
- Runs release-gating integration, permissions, replication, SSO, subpath and browser tests against the pinned SILO server and the exact released `pgsty/mc` source selected by `go.mod`; upstream server and client probes remain visible but advisory
1112
- Refreshes the embedded frontend dependency closure to remove the fixable Browserslist, fast-uri, qs, decode-uri-component, uuid, and structured-clone advisories; the remaining TestCafe `replicator` advisory is confined to the development-only browser test runner and has no patched release
1213
- Regenerates the embedded frontend and third-party notices from the final dependency graph; no Console route, API, configuration, or deployment migration is required
1314
- Marks verifier targets as phony so case-insensitive filesystems cannot mistake `CREDITS` for an already-completed `credits` check

‎DEVELOPMENT.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ CONSOLE_DEV_MODE=on
3939

4040
Refer to `/web-app` [instructions](/web-app/README.md) to run the web app locally.
4141

42-
# Compatibility testing inside MinIO
42+
# Best-effort compatibility testing inside upstream MinIO
4343

4444
To test Console embedded in an upstream-compatible MinIO binary, build it from
45-
the MinIO repository as described below. This is a compatibility workflow, not
46-
the SILO release workflow.
45+
the MinIO repository as described below. This is an advisory compatibility
46+
workflow, not the supported SILO release workflow, and its result must not
47+
override the maintained `silo-pkg` dependency selected for SILO.
4748

4849
### 0. Building with UI Changes
4950

‎Makefile‎

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ BUILD_VERSION:=$(shell git describe --exact-match --tags $(git log -n1 --pretty=
55
BUILD_TIME:=$(shell date 2>/dev/null)
66
TAG ?= "ghcr.io/pgsty/silo-console:$(BUILD_VERSION)-dev"
77
#TAG ?= "ghcr.io/pgsty/silo-console:dev"
8-
MINIO_VERSION ?= "quay.io/minio/minio:latest"
9-
#MINIO_VERSION ?= "quay.io/minio/minio:RELEASE.2025-04-22T22-12-26Z"
8+
# Retain the historical variable name for test-script compatibility. Release
9+
# gates run against a pinned SILO image; override it explicitly for an advisory
10+
# upstream compatibility probe.
11+
MINIO_VERSION ?= "docker.io/pgsty/silo:RELEASE.2026-08-06T00-00-00Z"
1012

1113
TARGET_BUCKET ?= "target"
1214
NODE_VERSION := $(shell cat .nvmrc)
@@ -230,7 +232,7 @@ test-sso-integration-run:
230232
-e MINIO_UPDATE=off \
231233
-e MINIO_ROOT_PASSWORD=minio123 $(MINIO_VERSION) server /data{1...4} --address :9000 --console-address :9001)
232234
@echo "run mc commands to set the policy"
233-
@(docker run -e MC_UPDATE=off --name minio-client --network my-net -dit --entrypoint=/bin/sh minio/mc)
235+
@(docker run -e MC_UPDATE=off --name minio-client --network my-net -dit --entrypoint=/bin/sh docker.io/pgsty/mc:RELEASE.2026-09-03T07-13-05Z)
234236
@(ready=0; \
235237
for attempt in $$(seq 1 30); do \
236238
if docker exec minio-client mc alias set myminio/ http://minio:9000 minio minio123; then ready=1; break; fi; \
@@ -247,60 +249,60 @@ cleanup-sso-integration:
247249
@docker network rm my-net >/dev/null 2>&1 || true
248250

249251
test-permissions-1:
250-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
252+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
251253
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-1/")
252254
@(docker stop minio)
253255

254256
test-permissions-2:
255-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
257+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
256258
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-2/")
257259
@(docker stop minio)
258260

259261
test-permissions-3:
260-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
262+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
261263
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-3/")
262264
@(docker stop minio)
263265

264266
test-permissions-4:
265-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
267+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
266268
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-4/")
267269
@(docker stop minio)
268270

269271
test-permissions-5:
270-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
272+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
271273
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-5/")
272274
@(docker stop minio)
273275

274276
test-permissions-6:
275-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
277+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
276278
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-6/")
277279
@(docker stop minio)
278280

279281
test-permissions-7:
280-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
282+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
281283
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-7/")
282284
@(docker stop minio)
283285

284286
test-permissions-8:
285-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
287+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
286288
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-8/")
287289
@(docker stop minio)
288290

289291
test-permissions-A:
290-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
292+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
291293
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-A/")
292294
@(docker stop minio)
293295

294296
test-permissions-B:
295-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
297+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
296298
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-B/")
297299
@(docker stop minio)
298300

299301
test-apply-permissions:
300302
@(env bash $(PWD)/web-app/tests/scripts/initialize-env.sh)
301303

302304
test-start-docker-minio:
303-
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
305+
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -e MINIO_UPDATE=off -d --name minio --rm -p 9000:9000 $(MINIO_VERSION) server /data{1...4})
304306

305307
initialize-permissions: test-start-docker-minio test-apply-permissions
306308
@echo "Done initializing permissions test"
@@ -319,7 +321,7 @@ test-start-docker-minio-w-redirect-url: initialize-docker-network
319321
-e MINIO_UPDATE=off \
320322
-v /data1 -v /data2 -v /data3 -v /data4 \
321323
-d --network test-network -p 9000:9000 --name minio --rm\
322-
quay.io/minio/minio:latest server /data{1...4})
324+
$(MINIO_VERSION) server /data{1...4})
323325

324326
test-start-docker-nginx-w-subpath: initialize-docker-network
325327
@(docker run \

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,15 @@ package is an ordinary direct requirement and needs no downstream replacement:
163163
| Module graph | Status |
164164
| :-- | :-- |
165165
| The single maintained replacement above | Supported; `downstream-embedder-compat` builds a minimal embedder from the published block and verifies `pgsty/silo-pkg` v3.13.2 is inherited directly |
166-
| No mc replacement | Build-compatible upstream mc floor, tested by `upstream-pkg-compat`; it is not the released SILO CLI behavior |
166+
| No mc replacement | Best-effort upstream compatibility signal, tested by the non-blocking `upstream-pkg-compat` job; it is neither the released SILO CLI behavior nor a dependency floor |
167167
| The retired three-replacement graph | Unsupported: do not replace `github.com/minio/pkg/v3` with silo-pkg v3.13.0 or later, whose declared module path is `github.com/pgsty/silo-pkg/v3` |
168168

169169
This is the coordinated own-module-path line introduced by silo-pkg v3.13.0.
170170
Console imports `github.com/pgsty/silo-pkg/v3` directly, while upstream
171171
dependencies that still use `github.com/minio/pkg/v3` may coexist as a distinct
172-
module. See [docs/Embedding.md](docs/Embedding.md).
172+
module. Compatibility with unmodified upstream MinIO and mc is maintained on a
173+
best-effort basis and never overrides the SILO dependency graph. See
174+
[docs/Embedding.md](docs/Embedding.md).
173175

174176
The complete, versioned list of differences from the upstream MinIO Console —
175177
restored features, removed features, and known gaps — is maintained in the

‎api/certs_manager_compat_test.go‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎api/config.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import (
3131
xnet "github.com/pgsty/silo-pkg/v3/net"
3232
)
3333

34-
// TLSCertsManager is the certificate-manager boundary shared with embedding
35-
// servers. Keeping it structural lets upstream MinIO and SILO provide their
36-
// respective pkg/certs manager while Console owns the silo-pkg module path.
34+
// TLSCertsManager keeps Console's embedding boundary structural. SILO provides
35+
// the maintained silo-pkg implementation; compatible implementations may also
36+
// satisfy the interface without becoming Console's product dependency.
3737
type TLSCertsManager interface {
3838
AddCertificate(certFile, keyFile string) error
3939
GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error)

0 commit comments

Comments
 (0)