feat(logging): strengthen secret redaction and add admin controls (#12151)

This commit is contained in:
Andras Bacsai
2026-10-13 20:43:19 +02:00
committed by GitHub
parent 9302395063
commit 448dc8ea0a
92 changed files with 4582 additions and 417 deletions
+3 -1
View File
@@ -158,12 +158,14 @@ class ResourceStartActivity
}
/**
* Mark an activity as failed, append the reason to its log and stop log polling.
* Mark an activity as failed, append the redacted reason to its log and stop log polling.
*
* @param array<string, mixed> $extraProperties
*/
public static function markFailed(Activity $activity, string $message, array $extraProperties = []): void
{
// Callers can pass exception or command output text, which can contain secrets.
$message = remove_iip($message);
$properties = [
...$extraProperties,
'status' => ProcessStatus::ERROR->value,