KMP PHP API Reference

TenantMigrateCommandScrubber
in package

FinalYes

Scrubs secret-like values from migration metadata before persistence.

Table of Contents

Methods

scrubMetadata()  : array<string, mixed>
scrubString()  : string
Redact common secret patterns in free-form text.
isSensitiveKey()  : bool
Check whether a metadata key should have its entire value redacted.

Methods

scrubMetadata()

public static scrubMetadata(array<string, mixed> $metadata) : array<string, mixed>
Parameters
$metadata : array<string, mixed>
Return values
array<string, mixed>

scrubString()

Redact common secret patterns in free-form text.

public static scrubString(string $message) : string
Parameters
$message : string
Return values
string

isSensitiveKey()

Check whether a metadata key should have its entire value redacted.

private static isSensitiveKey(string $key) : bool
Parameters
$key : string
Return values
bool
On this page

Search results