Skip to content

stack-encrypt: JSON operators Contains, ContainedBy and AtPath #1187

Open

Description

@coderdan

Background

ADR-0009 decision 1 adds JSON operators: Contains and ContainedBy (@> and <@), and the accessor AtPath<Op>, which applies another operator at a JSON path. AtPath<Op> inherits the fidelity of its leaf (decision 4).

Problem

stack-encrypt has no JSON index, and EQL v4 has no JSON type that Stack Encrypt produces, so there is nothing for these operators to query.

Proposal

  • The operator types Contains, ContainedBy and AtPath<Op>.
  • AtPath<Eq> as a value-selector term, and AtPath<Lt> and the other orderings as a selector plus a leaf term, exposed as two parts for the SQL col -> selector < term.
  • AtPath<Op> is Probabilistic when Op is, and its verify applies Op at the path of the decrypted document.
  • ADR-0009's code matches what this ships.

Blocked by

  • A JSON index in stack-encrypt, and EQL v4 Json produced by Stack Encrypt.

Related

Metadata

Metadata

Assignees

Labels

SDKenhancementNew feature or requestrustPull requests that update Rust code

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions