SensitiveSchemas

Whether a read can mask the @Sensitive values of a Manifest schema ($defs): decided here once, for the build (manifest-tools refuses at generation what no read can mask, naming the payload and the path) and for the reader (wow-query's ManifestSchemaReader, which refuses the same schema with the same reason), so the two cannot drift.

A read masks a sensitive value as a string. It admits an x-wow-sensitive node whose values, its $refs resolved and its allOf merged, are:

  • strings: type string (with null or not), or a const or an enum of strings;

  • an array whose items are such, at any depth;

  • a map (additionalProperties, no properties) whose values it admits;

  • alternatives (anyOf, oneOf) whose non-null branches it each admits.

And the alternatives of one value mask each path below them by one rule, since a value takes one: a path runs through properties, an array's items ([]) and a map's values ({}), a rule landing where the reader puts it (on the strings, on each value of a map, on each alternative).

Properties

Link copied to clipboard
const val MASK: String
Link copied to clipboard
const val SENSITIVE: String

Functions

Link copied to clipboard
fun conflict(alternatives: List<Map<*, *>>, defs: Map<String, Any?>): String?

Where the alternatives of one value, whose $refs point into defs, mask one path by two rules, said after the value's place (mask code by two rules, …); null when each path takes one.

Link copied to clipboard
fun unmaskable(schema: Map<*, *>, defs: Map<String, Any?>): String?

Why no read can mask the values of the sensitive schema, whose $refs point into defs, said after its place (is sensitive but holds integer values, …); null when a read masks them.