Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/ba487dbc9d04e0634c64e3b1f0d25839a0a68246?narHash=sha256-WZNlK/KX7Sni0RyqLSqLPbK8k08Kq7H7RijPJbq9KHM%3D' (2025-03-03) → 'github:NixOS/nixpkgs/d69ab0d71b22fa1ce3dbeff666e6deb4917db049?narHash=sha256-k7VSqvv0r1r53nUI/IfPHCppkUAddeXn843YlAC5DR0%3D' (2025-03-05)
Apiary
SSH honeypot with web-frontend.
TODO
- Fix janky ass Makefile
Requirements
go >= 1.16
Requires a postgres database if you want data to persist through server restart.
Build
# make frontend
# make build
Install
# Build and install
INSTALL_PREFIX=/ sudo make install
# Edit config file
vim /etc/apiary/apiary.toml
# Run
/usr/bin/apiary serve
# 2021-04-10T11:27:42.783+0200 INFO APP Starting SSH server
# 2021-04-10T11:27:42.783+0200 INFO APP Starting web server
Development
Run postgres-tests by running a postgres container:
podman run -d -q -e POSTGRES_PASSWORD=apiary -e POSTGRES_USER=apiary -e POSTGRES_DB=apiary --rm --name apiary-test-db -p5432:5432 postgres:latest
export APIARY_TEST_POSTGRES_DSN="postgresql://apiary:apiary@localhost/apiary"
go test ./...
Description
Languages
Go
67.7%
TypeScript
21.7%
CSS
4.8%
Nix
4.3%
Dockerfile
1%
Other
0.5%