Skip to content

Add scoped upload and materialization capabilities for managed contexts #45

Open

Description

@moonlight16

Goal

Allow an authorized client to upload and materialize a portable context directly into Context Service-managed storage.

This issue maps to one Context Service PR and builds on #40.

Scope

  • Issue short-lived, single-use upload capabilities for a managed context.
  • Scope each capability to one context, operation, size limit, and expiration time.
  • Stream compressed bundle data directly to Context Service rather than through MOCA.
  • Verify checksums and portable bundle structure.
  • Materialize atomically with portable consumer-readable permissions.
  • Do not expose Kubernetes credentials or unrestricted PVC names.
  • Reuse the upload and materialization work already developed locally where appropriate.

Acceptance criteria

  • A valid capability uploads and materializes one bundle.
  • Reuse, expiration, oversized payloads, and wrong-context access are rejected.
  • A non-root consumer can read a read-only mounted context.
  • Interrupted or invalid uploads do not leave a partial visible revision.
  • Unit and Kind tests cover the complete flow.

Related work

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions