Categorygithub.com/ezbastion/ezb_srv
repositorypackage
0.2.3
Repository: https://github.com/ezbastion/ezb_srv.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

ezBastion API frontend (ezb_srv)

The vault service, store key/value pair in a central store. It's used to not hardcode data in worker's scripts, like password or constant.

SETUP

1. Download ezb_srv from GitHub

2. Open an admin command prompte, like CMD or Powershell.

3. Run ezb_srv.exe with init option.

    PS E:\ezbastion\ezb_srv> ezb_srv init

this commande will create folder and the default config.json file.

{
    "listen": ":5002",
    "ezb_db": "https://localhost:8444/",
    "ezb_pki":"localhost:6000",
    "san":"ezbastion.public",
    "logger": {
        "loglevel": "debug",
        "maxsize": 10,
        "maxbackups": 5,
        "maxage": 180
    },    "cacheL1": 600,
    "privatekey": "cert/ezb_srv.key",
    "publiccert": "cert/ezb_srv.crt",
    "cacert": "cert/ca.crt",
    "jwtpubkey": "cert/ezb_sta.crt",
    "servicename": "ezBastion",
    "servicefullname": "Easy Bastion front"
}
  • loglevel: Choose log level in debug,info,warning,error,critical.
  • maxsize: is the maximum size in megabytes of the log file before it gets rotated. It defaults to 100 megabytes.
  • maxbackups: MaxBackups is the maximum number of old log files to retain.
  • maxage: MaxAge is the maximum number of days to retain old log files based on the timestamp encoded in their filename.

4. Install Windows service and start it.

    PS E:\ezbastion\ezb_srv> ezb_srv install
    PS E:\ezbastion\ezb_srv> ezb_srv start

Copyright

Copyright (C) 2018 Renaud DEVERS [email protected]

License

Used library:

NameCopyrightversionurl
ginMIT1.2github.com/gin-gonic/gin
cliMIT1.20.0github.com/urfave/cli
gormMIT1.9.2github.com/jinzhu/gorm
logrusMIT1.0.4github.com/sirupsen/logrus
go-fqdnApache v20github.com/ShowMax/go-fqdn
jwt-goMIT3.2.0github.com/dgrijalva/jwt-go
gopsutilBSD2.15.01github.com/shirou/gopsutil
lumberjackMIT2.1github.com/natefinch/lumberjack