Skip to content

Add the environment volume catalog - #4748

Draft
kmatasfp wants to merge 11 commits into
mainfrom
gol-1619-volumes-catalog
Draft

kmatasfp wants to merge 11 commits into
mainfrom
gol-1619-volumes-catalog

Conversation

@kmatasfp

@kmatasfp kmatasfp commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

resolves GOL-1619

Add an environment catalog for S3 volumes. Operators can register a bucket without a deployment. REST and golem volume store the secret reference and do not read or return its value. The environment.volume card class controls access.

Reject a JSON object in place of the auth string. Reject an auth string that contains a JSON object with accessKeyId or secretAccessKey at the top level. Reject endpoints with credentials, a query, a fragment, an empty host, or an invalid port. Accept the bucket root or a directory prefix that the S3 adapter can use as stored. The volume routes return fixed messages for invalid paths, queries, bodies, and unsupported media types. Volume permission denials also use a fixed message. Omit the raw reference and endpoint from debug output.

An update adds a revision. A delete frees the name but keeps the entry and its revisions. The repository decides the new phase from the stored phase, then applies it only if the entry ID and expected revision still match. A request for a deleted entry cannot change an entry that reuses its name. Volume list, update, and delete look up the application and environment without creating either. Update and delete still read the current volume before sending the write.

The concept page explains which state belongs to an environment and which state a deployment records. This change does not change deployments, placements or rollback. This is the bottom PR of the remaining volume stack; GOL-1620 adds placement and manifest behavior.

The plain and TLS registry fixtures use PostgreSQL 17.7, the version used by the shared test framework.

EnvironmentVolumeName uses String because the transparent Desert derive needs the field's binary codec. The pinned Desert version has no codec for Box<str> or Arc<str>.

The volume API object fields use String because the pinned Poem OpenAPI Object derive needs field traits that it does not provide for Box<str>. VolumeListView takes the owned Vec<Volume> directly from the generated client. Both constructors already receive a vector. Boxing it would add a conversion to each construction, and the view does not retain the list beyond output.

The card layout does not grow on x86-64 Linux:

Type Before (bytes) After (bytes)
PermissionPattern 328 328
PermissionTarget 208 208
PolymorphicPermissionPattern 328 328
PolymorphicManifestPermissionPattern 328 328
Card 248 248
ScopeCard 160 160
PolymorphicCard 184 184
StoredCard 248 248
GrantSurface 48 48
NormalizedHttpTarget 288 288

volume_catalog_rest, volume_catalog_rest_tls, and volume_catalog_revisions exercise the registry catalog. volume_catalog_cli_round_trip exercises the golem volume commands against the local server.

@netlify

netlify Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for golemcloud canceled.

Name Link
🔨 Latest commit a749f3d
🔍 Latest deploy log https://app.netlify.com/projects/golemcloud/deploys/6b0d01bf90ba655428e945ea

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

📖 Docs preview: https://docs-bgf4onubb-golem-cloud.vercel.app

Built from commit a749f3d634fc44018769ae8a24168f55b694ec9f by docs.yaml.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant