Skip to content

The engine cannot open an s3:// lake — build the object-store credential path #792

Closed

Description

@athvin

Split out of #549, which asked to move DuckDB onto the credential chain and
turned out to have nothing to move. #549's deliverable was the deletion of the
static S3 service key (PR #791) — it had no consumer. This issue is the feature
that was hiding behind that phrasing, and it is the one that actually makes an
s3:// lake reachable.

The gap

The Rust engine has no object-store path at all: no httpfs/aws load, no
CREATE SECRET, no ER_S3_* reader. .claude/skills/ducklake-lakehouse/SKILL.md
pins this, and
.claude/skills/ducklake-lakehouse/references/attach-and-tenancy.md records it
as a regression from the retired Python implementation rather than a
deliberate omission — that server resolved a secret:// indirection in its own
secrets module, and it was deleted with nothing put in its place. So there is no
design decision to respect here, which is what makes this a feature rather than
a reversal.

Consequence today: a lake is a filesystem path, and in-cluster that is EFS at
/srv/er. The er-dev-runner-pod Pod Identity role already carries the
lake-bucket grants (pod_identity.tf), so the identity side is done and
deliberately ahead of its first use. What is missing is the code that would use
it.

Scope

From attach-and-tenancy.md's own "In flight" list — both bullets, which are
the acceptance criteria:

  • An object-store config whose fields are all optional, producing a
    CREATE OR REPLACE SECRET, where the absence of an explicit key selects
    the credential chain
    (the pod's own identity in-cluster) rather than a
    mode flag choosing it. An explicit key stays, for MinIO and CI, which have
    no chain to consult. The absence-selects-chain shape is the point: a mode
    flag is a second thing that can disagree with the credential.
  • A credential filter so nothing credential-shaped is ever persisted
    into an org row — an org row is projected into job params and travels
    further than process env does.

Then the consequences of it working:

  • An s3:// lake opens from Rust, with a test that proves it (the existing
    lake tests are all filesystem paths).
  • The three skill references that currently say "there is no credential-chain
    path" are updated — they are correct today and PR feat(infra): delete the static S3 lake key, which had no consumer (#549) #791 left them correct,
    so they must move with this change, not before it.
  • scripts/ci/tf-static-credentials-check.sh rule 2 bans
    ER_S3_ACCESS_KEY_ID/ER_S3_SECRET_ACCESS_KEY assignments. If this
    feature reintroduces an explicit-key path for MinIO/CI, that rule needs
    narrowing to the deployed envs rather than deleting — the gate's comment
    says why.

Notes

  • Do not reach for ER_S3_* as the variable names without deciding they are
    right: nothing reads them, so they carry no compatibility obligation. The
    existing ER_LAKE_* set is the live convention, and ER_LAKE_CATALOG_SCHEMA
    vs ER_LAKE_METADATA_SCHEMA is a cautionary tale about naming in this area
    (the skill warns that reasoning from those names alone gets it backwards).
  • DesignDoc.md §S6 still specifies the Python-era ER_S3_* block and a
    lake/ducklake.py substitution helper. Treat it as the intent, not the
    interface.
  • The release flag here is inherited from Retire the S3 service access key in favour of the credential chain #549 and worth re-deciding: the
    engine runs on EFS today, so this may not gate the MVP. Retag if not.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 7, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in the draft PR linked above. Closing that PR releases the claim.

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

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions