Build / build (pull_request) Successful in 21s
Lint / renovate-config (pull_request) Successful in 4s
Molecule / select (pull_request) Successful in 3s
Lint / lint (pull_request) Successful in 5m20s
Molecule / scenarios (pull_request) Successful in 37m31s
Molecule / Result (pull_request) Successful in 1s
Go opens a :: listener dual-stack, so it already serves 127.0.0.1 and a second loopback listener failed to bind with "address already in use". :: again gets no loopback listener. The TLS file checks did not follow symlinks, so a certbot-style live/ path was refused as not a regular file; the stat now follows them, and the scenario reaches its certificate and key through symlinks. Also: - an owner or group with no name gives the readability message, not a templating error - openbao_port and openbao_cluster_port must be 1024 or higher: the unit grants no capability to bind a lower port - SystemCallErrorNumber=EPERM, so a filtered syscall fails instead of killing the server with SIGSYS - a warning when the installed binary differs from openbao_version, since main does not change an installed binary - the TLS file inputs are type path in the argument spec Refs: #536 Assisted-by: Claude Code
56 lines
1.5 KiB
Django/Jinja
56 lines
1.5 KiB
Django/Jinja
{{ ansible_managed | comment }}
|
|
[Unit]
|
|
Description=OpenBao secret store
|
|
Documentation=https://openbao.org/docs/
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
ConditionFileNotEmpty={{ openbao_config_dir }}/openbao.hcl
|
|
|
|
[Service]
|
|
Type=notify
|
|
User={{ openbao_user }}
|
|
Group={{ openbao_group }}
|
|
ExecStart={{ openbao_bin_path }} server -config={{ openbao_config_dir }}/openbao.hcl
|
|
# SIGHUP reloads the listener certificates and the log level without sealing the server. The
|
|
# shell's own kill, because the kill binary (procps) is not on every host.
|
|
ExecReload=/bin/sh -c 'kill -HUP "$MAINPID"'
|
|
KillMode=process
|
|
KillSignal=SIGINT
|
|
TimeoutStopSec=30
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
LimitNOFILE=65536
|
|
# OpenBao has no mlock since 2.0: keep its memory out of swap and out of core dumps instead.
|
|
MemorySwapMax=0
|
|
LimitCORE=0
|
|
UMask=0077
|
|
|
|
NoNewPrivileges=true
|
|
CapabilityBoundingSet=
|
|
AmbientCapabilities=
|
|
ProtectSystem=strict
|
|
ReadWritePaths={{ openbao_data_dir }}
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
ProtectClock=true
|
|
ProtectHostname=true
|
|
RestrictNamespaces=true
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|
|
SystemCallFilter=~@privileged @resources
|
|
# A filtered call fails with EPERM instead of killing the server with SIGSYS.
|
|
SystemCallErrorNumber=EPERM
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|