Class PiiErrorFieldRule

Namespace
Kuestenlogik.Bowire.Linting.Rules
Assembly
Kuestenlogik.Bowire.dll

Flags a declared error response that carries a field which looks like personal data — a validation error that echoes the email it rejected, a not-found that names the phone it looked up (#583).

public sealed class PiiErrorFieldRule : IBowireLintRule
Inheritance
PiiErrorFieldRule
Implements
Inherited Members

Remarks

Errors travel further than responses. They are logged by every proxy and gateway on the way, copied into tickets, pasted into chat, and returned to callers who were not supposed to see the resource at all — a 404 that repeats the looked-up address tells a stranger the address is on file. Same list of PII names as PiiResponseFieldRule, same Medium.

It can only see errors a schema declares: REST from an OpenAPI document's 4xx / 5xx / default responses. gRPC and GraphQL do not describe their errors' shape in the schema, so against those this rule has nothing to read and stays silent — which is a gap in what discovery knows, not a clean bill of health.

Constructors

PiiErrorFieldRule()

public PiiErrorFieldRule()

Properties

Id

Stable machine id, e.g. BWR-LINT-MISSING-PAGINATION.

public string Id { get; }

Property Value

string

Severity

The severity every finding from this rule carries.

public BowireLintSeverity Severity { get; }

Property Value

BowireLintSeverity

Title

One-line human title for reports.

public string Title { get; }

Property Value

string

Methods

Inspect(BowireServiceInfo)

Inspect one service and yield any findings.

public IEnumerable<BowireLintFinding> Inspect(BowireServiceInfo service)

Parameters

service BowireServiceInfo

Returns

IEnumerable<BowireLintFinding>