Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/security / hardening

hardening ​

Hardening subsystem of @graphorin/security. Exposes the startup helpers, the POSIX file-mode utilities, the doctor library functions, and the bootstrap-token helpers.

References ​

_resetHardeningStatusForTesting ​

Re-exports _resetHardeningStatusForTesting


applyProcessHardening ​

Re-exports applyProcessHardening


ApplyProcessHardeningOptions ​

Re-exports ApplyProcessHardeningOptions


assessSecretStrength ​

Re-exports assessSecretStrength


BOOTSTRAP_TOKEN_LENGTH ​

Re-exports BOOTSTRAP_TOKEN_LENGTH


checkEncryption ​

Re-exports checkEncryption


checkPerms ​

Re-exports checkPerms


CheckPermsOptions ​

Re-exports CheckPermsOptions


CheckResult ​

Re-exports CheckResult


checkSecrets ​

Re-exports checkSecrets


CheckStatus ​

Re-exports CheckStatus


checkSystemd ​

Re-exports checkSystemd


encodeBase62 ​

Re-exports encodeBase62


ensureDirMode ​

Re-exports ensureDirMode


ensureFileMode ​

Re-exports ensureFileMode


FileModeMismatchError ​

Re-exports FileModeMismatchError


generateAesSalt ​

Re-exports generateAesSalt


generateBootstrapToken ​

Re-exports generateBootstrapToken


getHardeningStatus ​

Re-exports getHardeningStatus


GraphorinHardeningError ​

Re-exports GraphorinHardeningError


HardeningStatus ​

Re-exports HardeningStatus


parseSystemdScore ​

Re-exports parseSystemdScore


RefuseToRunAsRootError ​

Re-exports RefuseToRunAsRootError


SecretStrength ​

Re-exports SecretStrength


SecretStrengthOptions ​

Re-exports SecretStrengthOptions


verifyFileMode ​

Re-exports verifyFileMode