Recheck the submitting principal and protect stored log output

This commit is contained in:
2026-11-18 10:10:06 +01:00
parent db2f5b407d
commit 0f15f91f65
16 changed files with 788 additions and 209 deletions
+4
View File
@@ -77,6 +77,10 @@ function Result({ value }: { value: unknown }) {
const windowsUpdate = evidence.script_sha256 === windowsUpdateScriptHash;
const reboot = windowsUpdate && Object.hasOwn(evidence, 'windows_update_reboot_required') ? evidence.windows_update_reboot_required : result.reboot_required;
const exit = typeof result.exit_code === 'number' && Number.isInteger(result.exit_code) ? String(result.exit_code) : 'Nicht gemeldet';
if (result.output_restricted === true) return <>
<p><strong>Exitcode {exit}</strong></p>
<p>Für diese Protokollausgabe fehlt dir die Leseberechtigung.</p>
</>;
return <>
<p><strong>Exitcode {exit}</strong>{typeof result.error_code === 'string' && result.error_code && ' · Fehlercode '+result.error_code}</p>
{reboot === true && <p className="warning">Ein Neustart ist erforderlich.</p>}