crossbario / crossbar

Crossbar.io - WAMP application router
https://crossbar.io/
Other
2.05k stars 274 forks source link

Env var expansion for proxy worker configs #1999

Open oberstet opened 2 years ago

oberstet commented 2 years ago

Automatic expansion of environment variables is a feature of router workers that allows to enable an env var

"options": {
    "env": {
        "inherit": ["MYSECRET"]
    }
}

to then use eg in static authentication configuration

"wampcra": {
    "type": "static",
    "users": {
        "client1": {
            "secret": "${MYSECRET}",
            "role": "frontend"
        }
    }
}

see here for an example https://github.com/crossbario/crossbar-examples/blob/master/authentication/wampcra/static/.crossbar/config.json

This feature seems to not work with proxy workers ...