Commit Graph

12674 Commits

Author SHA1 Message Date
abuckit 5d28a361c4 docs: add single-trip benchmark handoff 2026-06-08 14:04:35 -04:00
abuckit e5b0a6f47d perf: stabilize single-trip fast get 2026-06-08 14:04:14 -04:00
abuckit bb8b663c0f docs: record single-trip phase-1 benchmark results
Document the container A/B on the corrected single-pool rig (one 16-drive
EC:4 set, 2 MiB non-inlined objects):

- single-trip proven directly: with xl.meta and the canonical data dir
  deleted on all drives, FAST_GET=1 still serves byte-exact from the shadow
  (multi-pool returned 404).
- cold single-stream TTFB ~26% lower (server-side trace) / ~21% (curl),
  captured paired on the same requests; saturated throughput flat on the
  seek-free loopback medium.
- record the two rig traps (multi-pool xl.meta pre-read; inline cutoff is
  per-shard, so EC:4 inlines everything below ~1.5 MiB).

Design note: the on-disk shadow header should be variable-length with a
self-describing payload so fields can evolve without lockstep; the fixed
1024-byte positional header is a phase-1 shortcut.
2026-06-04 16:00:26 -04:00
abuckit 6d6579cb47 test: wire single-pool cluster for single-trip benchmark
cluster.sh emitted one endpoint arg per node, which brought the rig up as
four independent server pools. Multi-pool GET resolves the owning pool via
getLatestObjectInfoWithIdx (a per-pool xl.meta read) before the set-level
fast path runs, so BUCKIT_FAST_GET=1 still read xl.meta and the single-trip
path was never exercised.

Emit a single pool spanning all nodes (http://node{1...4}:9000/data/...)
so SinglePool() is true and GET dispatches straight to the set, letting the
fast path bypass xl.meta. Regenerated docker-compose.yml reflects the change.
2026-06-04 16:00:26 -04:00
abuckit e0e3955742 test: wire cluster rig for single-trip benchmark 2026-06-04 11:52:04 -04:00
abuckit 87ca27b872 docs: record single-trip smoke validation 2026-06-04 11:09:59 -04:00
abuckit 2807ace9f0 test: isolate single-trip counter assertions 2026-06-04 09:42:22 -04:00
abuckit eed84c8dbe test: allow body in tracking response writer test 2026-06-04 09:33:37 -04:00
abuckit 29982574ef feat: add single-trip GET phase 1 prototype 2026-06-04 09:10:40 -04:00
abuckit ba1e0cad1a test: allow body in tracking response writer test 2026-06-04 08:50:05 -04:00
abuckit f4b729273c docs(kms): pin epoch-key derivation, split MVP vs phase-2 security
Address security review: specify the exact epoch-key derivation scheme
(deterministic KMS MAC, or random-and-wrap) since cloud KMS GenerateDataKey
is random by default and would otherwise make keys unrecoverable. Promote
authenticated metadata binding, basic token scoping, a minimal revocation
path, and bounded historical cache into MVP requirements; keep full replay
protection and coordinated revocation as phase-2. Add the accepted-residual-
risk note and a multi-instance proxy section.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 15:53:44 -04:00
abuckit 88210b94ee docs(kms): revise KES replacement design to keep master key in KMS
Switch the design to a true-HSM model where the master key never leaves
the KMS, unlike KES/MinKMS which load it into memory. The KMS produces an
epoch key per window; bucket and object keys derive locally. Adds the
two-window model (12h epoch + ~15min Buckit cache TTL), corrected near-zero
cost analysis, the bounded-compromise security framing, and clarifies that
only the bucket key is cached.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 14:39:25 -04:00
abuckit c03f2e5bb8 Merge docs/kes-replacement-design: KES replacement design doc 2026-06-01 22:54:36 -04:00
abuckit 822d5d374d docs(kms): add KES replacement design
Design for replacing deprecated MinIO KES with an open-source approach:
a cached per-cluster encryption key in Buckit (L1) plus a stateless
KMS-auth proxy (Fargate, L2) that holds the cloud credentials so they
never live in Buckit. Covers cost analysis, the two-tier cache, security
boundary (credential isolation vs. key-material exposure), and open
decisions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 22:52:51 -04:00
abuckit 764a577ab8 add test container rig for migration 2026-05-31 13:51:53 -04:00
abuckit f9e878aa5e ci(release): restyle gh-pages release & archives pages to match bm landing design RELEASE.2026-05-31T17-41-53Z 2026-05-31 13:22:52 -04:00
abuckit d26fd31215 ci(gh-pages): keep hand-written styled root index out of regeneration RELEASE.2026-05-31T17-04-46Z 2026-05-31 12:43:17 -04:00
abuckit 42f49f3cc3 docs(manager): mark M1-M9 landed; document shipped installer approach
M9 reflects what shipped: embedded UI bundle, signed multi-platform
release pipeline + gh-pages download site, bm update self-update, and
the install.sh/install.ps1 per-user installers (Homebrew/Scoop dropped).
Refresh the Progress and resuming notes (mock layer removed; TS refs
ported to Go).
2026-05-31 12:00:21 -04:00
abuckit 3f9e6c8a6d deps: bump go-jose to v4.1.4 to fix govulncheck
Resolves GO-2026-4945 (JWE decryption panic in github.com/go-jose/go-jose/v4),
reachable via the OIDC init path (cmd/utils.go -> oidc.init -> jose.init).
Fixed in go-jose/v4 v4.1.4.
2026-05-29 23:09:58 -04:00
abuckit f0c2589239 deps: bump x/crypto to v0.52.0 and x/net to v0.55.0 to fix govulncheck
Resolves govulncheck failures flagged in CI:
- GO-2026-5013..5023 (golang.org/x/crypto/ssh) — fixed in v0.52.0
- GO-2026-5026 (golang.org/x/net/idna) — fixed in v0.55.0

x/sys bumped to v0.45.0 as a transitive dependency.
2026-05-29 23:01:51 -04:00
abuckit 27a73eae7e ci: remove SonarQube workflow 2026-05-29 22:54:51 -04:00
abuckit 371e426469 Create sonarqube.yml 2026-05-29 22:50:58 -04:00
abuckit b4011734af ci: remove Lock Threads workflow 2026-05-29 22:50:17 -04:00
abuckit 6cc3cf1a0e add local test setup 2026-05-26 10:18:46 -04:00
abuckit eb9bd45e13 Bump console dependency to pick up self-hosted Montserrat font
Pulls in buckit-io/console@f8ce35f8, which replaces the
CSP-blocked Google Fonts <link> with a 6.7 KB embedded
Montserrat subset for the BuckitLogo wordmark.
2026-05-23 22:07:03 -04:00
abuckit 019a533215 docs: rebrand package paths and update backend design milestones 2026-05-22 21:53:01 -04:00
abuckit b2b1237a8c ci: replace gh-pages binary storage with HTML index pages linking to GitHub Releases
- update-gh-pages: remove zip_binary/publish_package/trim_archives; only write
  4 buckit.sha256sum files for self-update; generate release/index.html with
  per-platform download links and archives/index.html from GitHub API listing
  all stable releases; add force_orphan to prevent git history bloat
- gh-pages-index.yml: skip server/buckit/release and server/buckit/archives
  so the auto-indexer does not overwrite the custom HTML pages
2026-05-22 17:33:05 -04:00
abuckit e9ee3eb59a feat: keep only last 30 releases in gh-pages archives/ 2026-05-22 17:03:56 -04:00
abuckit 4e8e603b63 feat: archive versioned packages (deb/rpm/apk) in gh-pages archives/ 2026-05-22 16:54:20 -04:00
abuckit 316d2707b4 feat: zip binaries into gh-pages release/ and archives/ directories RELEASE.2026-05-22T20-48-27Z 2026-05-22 16:47:50 -04:00
abuckit ce852535fa admin: log update progress and version comparisons 2026-05-22 11:20:20 -04:00
abuckit 9df885036d admin: expose server os and arch in server info RELEASE.2026-05-22T02-20-39Z 2026-05-21 22:05:22 -04:00
abuckit c4d5c58014 deps: switch buckit to buckit madmin-go and minio-go forks 2026-05-21 22:05:21 -04:00
abuckit f68ca79dfc fix: download binaries from GitHub Releases instead of gh-pages
Binaries exceed GitHub's 100MB git push limit so they cannot be stored
in the gh-pages branch. Two changes to fix this:

- release.yml: stop copying binaries/minisig to gh-pages; write
  buckit.sha256sum files with the release tag embedded in the filename
  field (e.g. 'buckit.RELEASE.xxx') so the Go code can construct the
  versioned GitHub Releases URL.

- update.go / admin-handlers.go: getBinaryURL now constructs a
  github.com/releases/download URL when the checksum source is github.io
  and the sha256sum filename contains a release tag. Fixes two dead-code
  bugs in both admin handlers where 'if updateURL == ""' was always
  false after updateURL had already been set.
RELEASE.2026-05-22T01-47-42Z
2026-05-21 21:47:16 -04:00
abuckit 338973577f fix: add dist/ prefix to package globs in update-gh-pages step RELEASE.2026-05-22T01-14-55Z 2026-05-21 21:12:50 -04:00
abuckit df9f18ef61 ci: generate directory indexes on gh-pages after each deploy 2026-05-21 20:42:30 -04:00
abuckit 6f17ed7db3 packaging: remove rpm preremove service stop 2026-05-21 18:34:29 -04:00
abuckit bdfebfb00e packaging: restore systemd unit install path 2026-05-20 17:18:05 -04:00
abuckit 2513d0a530 packaging: install buckit.service for systemd RELEASE.2026-05-20T21-14-57Z 2026-05-20 17:14:41 -04:00
abuckit 1edd1dff25 ci: keep generic package aliases off GitHub releases 2026-05-20 16:47:25 -04:00
abuckit 359e4edef9 fix: resolve CI failures in shfmt and decom tests
- packaging/scripts: convert 4-space indentation to tabs (shfmt)
- docs/distributed/decom*.sh: add consistent trailing slashes to
  mc ls bucket paths so before/after diffs compare identical formats
2026-05-19 11:30:13 -04:00
abuckit 1f25e6181b change Windows auto update sha256 url 2026-05-19 11:21:38 -04:00
abuckit 0801586b3b docs(manager): backend design; history page simplification; migrate TODOs
Add docs/manager/backend-design.md — companion to ui-architecture.md
covering the backend that replaces the in-memory mock: package
layout, bbolt schema, REST surface derived from the UI, unified
operation orchestration pipeline, security model, SSH layer,
and on-demand refresh.

Lays out the fork strategy for the MinIO Go ecosystem. bm aims for
full mc CLI parity, so we fork wholesale rather than selectively
port. One coordinated pass forks Tier 1 (mc, madmin-go, minio-go,
pkg, cli) and Tier 2 (selfupdate, colorjson, kms-go) under
buckit-io/* — no upstream rebase obligation thereafter. CLI uses
the forked urfave/cli framework; HTTP backend uses the forked
madmin-go directly. Tier 3 specialised libraries stay as upstream
deps. Includes an alias bridge so forked mc commands resolve
cluster names from the bm store.

ui-architecture.md updated to match the simplified History page:
single source (UI-initiated mutable actions), structured row shape
(opKind/opLabel/clusterId/clusterName/hostScope/result), status
filter chips, no CLI source column.

phase1-implementation.md picks up TODOs from prior design rounds:
M8 cutover writes a systemd drop-in to run buckit as MinIO's
user/group; rollback-to-MinIO becomes a cluster Action visible when
migratedFrom is set.
2026-05-18 19:05:24 -04:00
abuckit 56244d2fff docs(manager): envfile layer, M5 preflight TODOs, bm alias auto-save
- request-flow.md § 10.1: OS-level environment file as the layer that
  feeds the process before .minio.sys is reachable. Covers the three
  conventional paths (/etc/default/minio, /etc/minio/config.env,
  /etc/sysconfig/minio), what lives there (root creds, MINIO_VOLUMES,
  KMS bootstrap), and why those can't move into config.json.
- phase1-implementation.md: TODOs for M5 preflight (stale
  .minio.sys/format.json detection, hostname pattern + drive
  uniformity), drive preparation wizard deferred to M6.5 with full
  safety requirements, and auto-save of bm alias to ~/.bm/config.json
  (separate from mc's ~/.mc) on successful deploy/import. Data-key
  bootstrap section corrects the path from /etc/bm/data.key to
  ~/.config/bm/data.key for personal-tool framing.
2026-05-16 21:15:31 -04:00
abuckit ec65f5902d docs: add Buckit Manager Phase 1 plan, UI architecture, and supporting specs
Adds four documents that form the Buckit Manager design corpus
alongside the existing README.md and phase1-web-ui.md:

- phase1-implementation.md: Phase 1 milestone plan (M0-M9), repo
  layout, locked stack decisions, and a Progress section that tracks
  what's landed in github.com/buckit-io/bm so work can resume cleanly
  in a new session.

- ui-architecture.md: data flow (admin API + per-node connectivity
  probes + SSH facts), the on-demand fetch pipeline with failure
  isolation, REST contract sketch, per-page details for Clusters
  list, Cluster detail, History, and Manager Settings, and the
  proposed HostInfo extension to madmin.ServerProperties to surface
  OS / CPU / Memory / Network in /admin/info.

- metrics.md: spec for the per-cluster Metrics tab (Info, Usage,
  Traffic, Resources) — referenced by ui-architecture.md as the
  source-of-truth for the existing /admin/info shape.

- authentication.md: notes on Console + mc CLI auth flows.
2026-05-15 16:35:20 -04:00
abuckit df162d630f docs: add Buckit Manager design — architecture and Phase 1 web UI
Introduces docs/manager/ with two design documents:

- README.md: high-level architecture for bm, a single-binary
  operational control plane that ships as both a direct CLI and a
  long-running `bm server` exposing an HTTP API and embedded web UI.
  Covers the product model, distribution and packaging strategy,
  agentless SSH cluster management, and a phased delivery plan
  (Phase 1 manager foundation, Phase 2 CLI, Phases 3-4 progressive
  mc replacement). Implementation-level subsystems, task model,
  storage, and repository layout are kept in an appendix so the
  high-level design reads cleanly.

- phase1-web-ui.md: wireframe-level web UI design for the first
  release, scoped to the two operator journeys that only bm can
  serve — deploying a new Buckit cluster on fresh hosts, and
  migrating an existing MinIO deployment in place via binary swap.
  Includes screen catalog, supporting operational surfaces, an
  out-of-scope list that defers to the per-cluster Buckit console
  for data-plane operations, and appendices covering the MinIO
  compatibility surface and the package install path.
2026-05-11 19:13:18 -04:00
abuckit 6234f40b58 build: simplify self-update release flow 2026-05-11 18:01:52 -04:00
abuckit 9266053d7f build: drop pkger from hotfix Makefile target and release-process doc
Mirrors the earlier release.yml switch to nfpm. The local `make hotfix`
flow now downloads nfpm v2.46.3 (matching CI), stages the binary at
dist/buckit, computes a numeric PKG_VERSION from the RELEASE tag with
the same transformation CI uses (and additionally strips the
.hotfix.<sha> suffix that hotfix-vars appends), and builds rpm/deb/apk
from packaging/nfpm.yaml. Resulting packages are copied into the
existing buckit-release/$(GOOS)-$(GOARCH)/ directory so hotfix-push
keeps working unchanged.

clean target updated to remove nfpm_*.deb and the new dist/ directory.

release-process-plan.md table row updated to reflect the tool change.

Note: no Go-module dependency on pkger ever existed; pkger was only a
CI/Make-time download.
2026-05-11 15:29:51 -04:00
abuckit 343c2876d6 build: replace pkger with nfpm to ship a real systemd unit
The previous packaging step used minio/pkger, which is hardcoded for
MinIO's portfolio: its nfpm template only attaches a systemd unit when
the binary name matches "minio", "aistor", or "sidekick". Invoking it
with --appName buckit silently dropped the unit (and the maintainer/
homepage fields stayed MinIO-branded) — the published .rpm/.deb shipped
only /usr/local/bin/buckit with no service definition.

Switch to nfpm directly, driven by a config in packaging/nfpm.yaml that
we own. The packages now contain:

  /usr/local/bin/buckit
  /lib/systemd/system/buckit.service   (Type=notify, LimitNOFILE=1048576,
                                        OOMScoreAdjust=-1000, etc.)

A postinstall script creates the buckit system user/group idempotently;
preremove stops the service; postremove reloads systemd but deliberately
leaves the user in place to avoid orphaning data on attached storage.

The unit is modeled on MinIO's production unit but reads
EnvironmentFile=-/etc/default/minio (leading - = optional), keeping
fresh buckit nodes byte-compatible with the env file MinIO already
ships, so the manager's in-place migration story works without any
config translation.

Verified locally by building rpm/deb/apk against the published
RELEASE.2026-05-11T17-20-40Z binary and inspecting the output.
2026-05-11 15:21:58 -04:00
abuckit b6908c64d6 fix: remove unsupported pkger flag from release workflow RELEASE.2026-05-11T17-20-40Z 2026-05-11 13:16:54 -04:00