Go to file
2022-09-28 12:17:46 +02:00
cmd Add bbolt store 2022-08-31 23:22:20 +02:00
config Add bbolt store 2022-08-31 23:22:20 +02:00
honeypot Tryout go test fuzzing 2022-09-01 03:59:18 +02:00
models Initial commit 2021-04-10 07:58:01 +02:00
web Add config to not log requests to metrics endpoint 2022-08-28 02:35:33 +02:00
.dockerignore Initial commit 2021-04-10 07:58:01 +02:00
.gitignore Initial commit 2021-04-10 07:58:01 +02:00
apiary.service Fix service 2021-11-06 01:59:21 +01:00
apiary.toml Add config to not log requests to metrics endpoint 2022-08-28 02:35:33 +02:00
Dockerfile Add healtcheck endpoint 2021-11-06 00:56:15 +01:00
go.mod update dependencies 2022-09-28 12:17:46 +02:00
go.sum update dependencies 2022-09-28 12:17:46 +02:00
Makefile Fix Makefile 2022-02-09 15:18:34 +01:00
README.md Update dependencies and fix some linter warnings 2022-08-28 02:23:36 +02:00
version.go Add bbolt store 2022-08-31 23:22:20 +02:00

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 ./...