Add user and permission system

Add users, roles and permissions and rework the authentication to use
separate user and slave tokens for control and slave connections
respectively.

Add commands for listing permissions, roles and users, and creating,
editing and deleting roles and users.
This commit is contained in:
Hornwitser committed 2020-06-15 16:47:15 +02:00
1 parent 2acf57d23d
commit cf6f2cb70a
20 files changed
+1511 -153

No files matched your search

+2 -1
View File
@@ -30,7 +30,8 @@ const masterInventoryGauge = new prometheus.Gauge(
class MasterPlugin extends plugin.BaseMasterPlugin {
async init() {
let root = this.master.config.get("master.web_root");
let externalAddress = this.master.config.get("master.external_address");
let root = externalAddress ? new URL(externalAddress).pathname : "/";
this.ui = {
sidebar: [
{
-1
View File
@@ -1,7 +1,6 @@
const express = require("express");
const path = require("path");
const authenticate = require("lib/authenticate");
const prometheus = require("lib/prometheus");