Skip to content

S3 destinations and administrator membership

These models configure the server. Applications select destination aliases and submit backend declarations; they do not supply provider credentials or administrator membership.

S3Config

Each value of LINHA_S3_DESTINATIONS is a destination configuration. Helm loads this JSON from s3.secretRef and s3.destinationsKey. Credentials use the server AWS default chain. The provider and its bucket are provisioned externally.

{
  "analytics": {
    "bucket": "example-results", "prefix": "linha", "region": "eu-west-1"
  },
  "application-data": {
    "bucket": "example-inputs", "prefix": "processing", "region": "eu-west-1",
    "allowWorkloadAccess": true
  }
}
Field Type Presence / default Meaning and constraints
bucket string Required Nonempty bucket name without / or backslash
prefix string Empty Relative base prefix, validated as a safe name; one trailing / is removed
endpoint string AWS endpoint resolution Optional S3-compatible service endpoint
region string us-east-1 Destination-specific SDK region
pathStyle boolean false Enable path-style bucket addressing for compatible stores
datasetRoleArn string Unset Role assumed for scoped distributed dataset writes; required for S3 datasets
stsEndpoint string AWS endpoint resolution Optional compatible STS endpoint for dataset delegation
allowWorkloadAccess boolean false Permit contexts to request application I/O across this entire destination prefix

Result identity hashes bucket, normalized prefix and endpoint. Credential rotation does not change it. Use a new alias when moving storage locations. Ordinary JSON/file results do not require STS. Distributed datasets require AssumeRole with enforced session policies, an allocation-scoped staging prefix and grants lasting at most one hour without mid-write renewal. Unsupported delegation returns DATASET_UNSUPPORTED; see dataset setup.

AdminMappings

Input under Helm security.admin or standalone LINHA_ADMIN_MAPPINGS. Browser OIDC issuer is authoritative. Membership is checked again on credential refresh; removing membership can end access before the absolute browser lifetime.

Field Type Presence / default Meaning and constraints
viewer RoleRules Empty Read-only administrator membership
operator RoleRules Empty Administrator mutation membership; takes precedence over viewer

RoleRules

Any matching subject or claim rule grants the containing role.

Field Type Presence / default Meaning and constraints
subjects array of SubjectRule [] Explicit subjects
claims array of ClaimRule [] Nested claim membership

SubjectRule

Field Type Presence / default Meaning and constraints
subject string Required Nonempty browser identity subject
issuer string Browser issuer Optional explicit value must match configured browser issuer

ClaimRule

Field Type Presence / default Meaning and constraints
path array of strings Required 1–8 nested keys; each nonempty, at most 128 bytes, not __proto__
values array of strings Required Nonempty set of allowed string values
issuer string Browser issuer Optional explicit value must match configured browser issuer
{"viewer":{"claims":[{"path":["groups"],"values":["linha-viewers"]}]},"operator":{"subjects":[{"subject":"operator-subject"}]}}

Use administrator setup for browser client registration, provider scopes, ingress and diagnostics.