bugy / script-server

Web UI for your scripts with execution management
Other
1.59k stars 247 forks source link

FEATURE: read group members from external file #752

Open muzzol opened 3 months ago

muzzol commented 3 months ago

I'm testing google_oauth on my last setup and is hard to manage members. my proposal is having an external file (similar to includes) to read members from, something like

{
    "port": 5000,
    "address": "127.0.0.1",
    "title": "My Script Server",
    "auth": {
        "type": "google_oauth",
        "client_id": "COPY PASTE HERE",
        "secret": "COPY PASTE HERE"
    },
    "access": {
        "allowed_users": "/opt/allowed_google_operators.txt"
    }
}

and the file is one member per line:

operator1
operator2
operator3
...

also it would be nice if the file is polled for changes periodically so we don't need to restart the whole instance to reload it.

thanks a lot for your time.