Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@aikitori/node-red-dashboard-2-authelia-auth
Advanced tools
Use Authelia as an authentication provider for the Node-RED Dashboard 2.
Heavily copied from: node-red-dashboard-2-cloudflare-auth Thank you :)
You need an Authelia-protected Node-RED instance.
A working Authelia instance with the default snippets.
Refer to the Authelia Nginx Integration Guide
Please read the documentation from Authelia: https://www.authelia.com/integration/prologue/get-started/
Note: This setup is not secure and should be used for testing purposes only.
services:
authelia:
image: authelia/authelia
container_name: authelia
volumes:
- ./authelia:/config
ports:
- 9091:9091
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
configuration.yml
Create a configuration.yml file for Authelia with the following content:
server:
address: 'tcp://:9091/'
logs_level: 'debug'
jwt_secret: insecure_secret
authentication_backend:
file:
path: /config/users.yml
totp:
issuer: example.com
session:
cookies:
- domain: 'example.com'
authelia_url: 'https://auth.example.com'
default_redirection_url: 'https://www.red.example.com'
storage:
encryption_key: 'you_must_generate_a_random_string_of_more_than_twenty_chars_and_configure_this'
local:
path: /config/db.sqlite
access_control:
default_policy: bypass
rules:
- domain: "red.example.com"
policy: one_factor
notifier:
filesystem:
filename: /config/emails.txt
auth.conf
Create an auth.conf file for the authentication server:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name auth.*;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
set $upstream http://127.0.0.1:9091;
location / {
include /etc/nginx/snippets/proxy.conf;
proxy_pass $upstream;
}
location = /api/verify {
proxy_pass $upstream;
}
location /api/authz/ {
proxy_pass $upstream;
}
}
red.conf
Create a red.conf file for the Node-RED server:
server {
listen 443 ssl http2;
server_name red.example.com;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
include /etc/nginx/snippets/authelia-location.conf;
location / {
include /etc/nginx/snippets/proxy.conf;
include /etc/nginx/snippets/authelia-authrequest.conf;
proxy_pass http://127.0.0.1:1880;
}
}
This setup enables Authelia to act as an authentication provider for the Node-RED Dashboard, securing access through Nginx. Ensure you replace placeholders such as example.com with your actual domain and adjust paths and settings according to your environment.
FAQs
Dashboard Auth with Authelia
We found that @aikitori/node-red-dashboard-2-authelia-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.