nyckeln-under-dorrmattan

command module
v0.0.0-...-7742448 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 10 Imported by: 0

README

Nyckeln under dörrmattan

Like login and pls, but it always lets you in and thinks you can do anything.

The login part can be used as a drop in replacement, but it requires no configuration, and automatically lets everyone in as Ture Teknolog. You can also write someones kth id on stdin, which will make future login requests be for that user. Data is then fetched from hodis.

The pls part only works when validating that a user/mandate/token has a given permission. It can not list the given permissions for someone. If that isn't goot enough, use the pls in production and log in as someone with enough privileges, such as the current kassör or d-sys.

To build and run without docker and specifying custom ports:

go run . -login-port 1337 -pls-port 1338

To build and run with docker using the default ports:

docker build . -t nyckeln
docker run -it --rm --name nyckeln \
    -p 7001:7001 -p 7002:7002 nyckeln

The container is also published as a container at ghcr.io/datasektionen/nyckeln-under-dorrmattan, so you can also run it as

docker run -it --rm --name nyckeln \
    -p 7001:7001 -p 7002:7002 ghcr.io/datasektionen/nyckeln-under-dorrmattan

without even having to clone this repository.

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