Skip to content

Commit 03e5227

Browse files
committed
feat: create epithet service user automatically on pkg install
Add pre-install script to +MANIFEST that creates the epithet user via pw(8) if it doesn't already exist. Tested on FreeBSD 15.0.
1 parent 77d6bb8 commit 03e5227

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

contrib/freebsd/+MANIFEST

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ key-based authentication with short-lived certificates (2-10 minutes).
1515
It provides CA, policy, and combined server modes in a single binary,
1616
with OIDC-based authentication and per-connection SSH agents.
1717
EOD
18+
scripts: {
19+
pre-install: <<EOD
20+
pw usershow epithet >/dev/null 2>&1 || pw useradd epithet -d /nonexistent -s /usr/sbin/nologin -c "epithet CA"
21+
EOD
22+
}

contrib/freebsd/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ pkg add ./epithet-*.pkg
3838
vi /usr/local/etc/epithet/server.yaml
3939
```
4040

41-
3. Create a service user:
41+
3. Set CA key ownership (the `epithet` user is created automatically during install):
4242
```sh
43-
pw useradd epithet -d /nonexistent -s /usr/sbin/nologin -c "epithet CA"
4443
chown epithet /usr/local/etc/epithet/ca.key
4544
```
4645

0 commit comments

Comments
 (0)