recipe_alpine_ssh.ts

Alpine sshd service — ssh_service_core wired to OpenRC. The neutral ssh_hardening content, SSHD_VALIDATE, ssh_hardening_verify, and the core live in recipe_ssh.ts; the Debian sibling is recipe_debian_ssh.ts.

Alpine's OpenSSH service is named sshd (Debian's systemd unit is ssh).

Pure function evaluated in zap's sandboxed config eval (fgro eval).

view source

Declarations
#

alpine_ssh_service
#

recipe_alpine_ssh.ts view source

(options: SshServiceOptions): Required<Pick<ServiceResource, "service" | "enabled" | "running" | "reload_on">> import {alpine_ssh_service} from '@fuzdev/zap/recipe_alpine_ssh.js';

Build the sshd service payload for Alpine: OpenRC's sshd service, enabled, running, and reloaded when any of options.reload_on changes.

options

returns

Required<Pick<ServiceResource, "service" | "enabled" | "running" | "reload_on">>

the service payload.

Depends on
#