Repository navigation
Conversation
✅ Deploy Preview for golemcloud canceled.
|
|
📖 Docs preview: https://docs-bgf4onubb-golem-cloud.vercel.app Built from commit |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves GOL-1619
Add an environment catalog for S3 volumes. Operators can register a bucket without a deployment. REST and
golem volumestore the secret reference and do not read or return its value. Theenvironment.volumecard class controls access.Reject a JSON object in place of the
authstring. Reject anauthstring that contains a JSON object withaccessKeyIdorsecretAccessKeyat 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.
EnvironmentVolumeNameusesStringbecause the transparent Desert derive needs the field's binary codec. The pinned Desert version has no codec forBox<str>orArc<str>.The volume API object fields use
Stringbecause the pinned Poem OpenAPIObjectderive needs field traits that it does not provide forBox<str>.VolumeListViewtakes the ownedVec<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:
PermissionPatternPermissionTargetPolymorphicPermissionPatternPolymorphicManifestPermissionPatternCardScopeCardPolymorphicCardStoredCardGrantSurfaceNormalizedHttpTargetvolume_catalog_rest,volume_catalog_rest_tls, andvolume_catalog_revisionsexercise the registry catalog.volume_catalog_cli_round_tripexercises thegolem volumecommands against the local server.