gatekey

command module
v0.0.0-...-799765a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

GateKey

Go Report Card

GateKey is a simple Go web server which generates and authenticates one time passwords for external connections.

Installation

Dependencies
  • GCC

  • Golang

Build
  1. WIth go installed simply run go get github.com/alecbcs/gatekey

or

  1. Clone this repository and run

  2. go build (This will build gatekey into a binary you can add to your bin.)

  3. If you've added your go bin to your system PATH you can also run go install

Configuration

Gatekey automatically builds a configuration directory in the /home/USER/.config/gatekey folder.

Update your configuration with a real username the password before using GateKey

Default Config Example:
[General]
  Version = "0.0.1"
  Port = 8080

[Authentication]
  User = ""
  Password = ""

[Database]
  Location = "/home/USER/.config/gatekey/tokens.db"

[Relay]
  Location = ""
  User = ""
  Password = ""
  TempFileLocation = "/home/USER/.config/gatekey/temp"

[Tokens]
  Length = 32

Usage

Create

curl -u "USERNAME":"PASSWORD" localhost:PORT/create/

Report

curl -F myFile=@/path/to/file localhost:PORT/report/TOKEN/

License

Copyright 2019-2020 Alec Scott alecbcs@gmail.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL