Skip to content

Override-control defaults: guarantees should not default to AllowAll #1720

Open

Description

@bplatz

Every config setting group (f:policyDefaults, f:shaclDefaults, f:reasoningDefaults, f:datalogDefaults, f:fullTextDefaults, f:transactDefaults) shares a blanket f:overrideControl default of f:OverrideAll (pinned by override_control_default_is_allow_all). That default is appropriate where an override costs the requester compute or inference completeness (reasoning, datalog), but questionable where it weakens a guarantee the operator wrote into the ledger:

Policy (merge_policy_opts): a ledger that pins f:defaultAllow false or a mandatory f:policyClass in config still lets an identity-carrying request supply its own default_allow: true / class list — and the request wins under the default. The operator who most explicitly asked for config-governed policy is the one who silently doesn't get it unless they also set f:overrideControl.

SHACL: opts.validationMode (PR #1717) is gated asymmetrically — strengthening free, softening requires permits_override — but under the AllowAll default any writer may soften Reject → Warn for its own writes on ledgers that never set override control.

Proposed principle: defaults may be overridden freely; guarantees may not. Concretely, consider per-group defaults — keep AllowAll for reasoning/datalog/full-text, default policy (and possibly SHACL softening) to OverrideNone — or an asymmetric rule for policy mirroring the SHACL one (a request may narrow its own access freely, but widening default_allow beyond config requires permission). Either is a behavior change for existing configs, so it needs its own decision + migration note.

Related follow-up worth considering in the same pass: stamp the effective validation mode / policy posture into commit metadata so softened writes are distinguishable in history and audit.

Context: docs/ledger-config/override-control.md, fluree-db-api/src/config_resolver.rs (merge_policy_opts, merge_shacl_opts), fluree-db-core/src/ledger_config.rs.

Activity

  1. added
    P1
    area:query
    triage:needs-decision
    breaking-change
    on Nov 14, 2026
  2. added this to the 5.0.0 milestone on Nov 14, 2026
  3. removed
    triage:needs-decision
    on Nov 23, 2026
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

    P1area:querybreaking-change

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions