netalertx-authentication-tokens
Tool for troubleshooting and managing API authentication tokens in NetAlertX.
Install
mkdir -p .claude/skills/netalertx-authentication-tokens && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2292" && unzip -o skill.zip -d .claude/skills/netalertx-authentication-tokens && rm skill.zipInstalls to .claude/skills/netalertx-authentication-tokens
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Manage and troubleshoot API tokens and authentication-related secrets. Use this when you need to find, rotate, verify, or debug authentication issues (401/403) in NetAlertX.Key capabilities
- →Locate API tokens
- →Validate API tokens
- →Rotate API tokens
- →Troubleshoot 401 errors
- →Troubleshoot 403 errors
- →Update authentication secrets
How it works
The skill provides methods to retrieve the API token using Python helpers or by inspecting container files. It also details steps for rotating tokens via the web UI or manual file editing, and offers a troubleshooting guide for 401/403 errors.
Inputs & outputs
When to use netalertx-authentication-tokens
- →Rotate API_TOKEN for security
- →Debug 401 unauthorized errors
- →Verify token configuration via CLI
- →Update authentication secrets
About this skill
Authentication
Purpose ✅
Explain how to locate, validate, rotate, and troubleshoot API tokens and related authentication settings used by NetAlertX.
Pre-Flight Check (MANDATORY) ⚠️
- Ensure the backend is running (use devcontainer services or
ps/systemd checks). - Verify the
API_TOKENsetting can be read with Python (see below). - If a token-related error occurs, gather logs (
/tmp/log/app.log, nginx logs) before changing secrets.
Retrieve the API token (Python — preferred) 🐍
Always use Python helpers to read secrets to avoid accidental exposure in shells or logs:
from helper import get_setting_value
token = get_setting_value("API_TOKEN")
If you must inspect from a running container (read-only), use:
docker exec <CONTAINER_ID> python3 -c "from helper import get_setting_value; print(get_setting_value('API_TOKEN'))"
You can also check the runtime config file:
docker exec <CONTAINER_ID> grep API_TOKEN /data/config/app.conf
Rotate / Generate a new token 🔁
- Preferred: Use the web UI (Settings / System) and click Generate for the
API_TOKENfield — this updates the value safely and immediately. - Manual: Edit
/data/config/app.confand restart the backend if required (use the existing devcontainer service tasks). - After rotation: verify the value with
get_setting_value('API_TOKEN')and update any clients or sync nodes to use the new token.
Troubleshooting 401 / 403 Errors 🔍
- Confirm backend is running and reachable.
- Confirm
get_setting_value('API_TOKEN')returns a non-empty value. - Ensure client requests send the header exactly:
Authorization: Bearer <API_TOKEN>. - Check
/tmp/log/app.logand plugin logs (e.g., sync plugin) for "Incorrect API Token" messages. - If using multiple nodes, ensure the token matches across nodes for sync operations.
- If token appears missing or incorrect, rotate via UI or update
app.confand re-verify.
Best Practices & Security 🔐
- Never commit tokens to source control or paste them in public issues. Redact tokens when sharing logs.
- Rotate tokens when a secret leak is suspected or per your security policy.
- Use
get_setting_value()in tests and scripts — do not hardcode secrets.
Related Skills & Docs 📚
testing-workflow— how to useAPI_TOKENin testssettings-management— where settings live and how they are managed- Docs:
docs/API.md,docs/API_OLD.md,docs/API_SSE.md
Last updated: 2026-01-23
How it compares
This skill provides specific NetAlertX commands and file paths for managing API tokens, unlike a generic approach that would require manual discovery of these system-specific details.
Compared to similar skills
netalertx-authentication-tokens side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| netalertx-authentication-tokens (this skill) | 6 | 6mo | Review | Beginner |
| dependency-auditor | 1 | 9mo | Review | Beginner |
| atheris | 1 | 2mo | Review | Advanced |
| auth-implementation-patterns | 1 | 4mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by netalertx
View all by netalertx →You might also like
dependency-auditor
alirezarezvani
Check dependencies for known vulnerabilities using npm audit, pip-audit, etc. Use when package.json or requirements.txt changes, or before deployments. Alerts on vulnerable dependencies. Triggers on dependency file changes, deployment prep, security mentions.
atheris
trailofbits
Atheris is a coverage-guided Python fuzzer based on libFuzzer. Use for fuzzing pure Python code and Python C extensions.
auth-implementation-patterns
sickn33
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.
constant-time-analysis
trailofbits
Detects timing side-channel vulnerabilities in cryptographic code. Use when implementing or reviewing crypto code, encountering division on secrets, secret-dependent branches, or constant-time programming questions in C, C++, Go, Rust, Swift, Java, Kotlin, C#, PHP, JavaScript, TypeScript, Python, or Ruby.
cyber-audit
Matymatyk-business
Read-only exposure audit of the user's machine and projects for a CVE, breach, malicious package, or other security advisory, then write a structured report to a local audit folder. Use when the user shares a breach/CVE/malware/supply-chain advisory and asks if they're affected, says "scan my system
performing-cryptographic-audit-of-application
26zl
A cryptographic audit systematically reviews an application's use of