feat: add infrastructure audit and diagnostic helper scripts

This commit is contained in:
2026-11-06 12:37:49 -05:00
parent 06c203485f
commit aea8608f3d
44 changed files with 1141 additions and 1 deletions

25
scripts/check_sem_app.py Normal file
View File

@@ -0,0 +1,25 @@
import urllib.request
import ssl
import json
import sys
sys.stdout.reconfigure(encoding='utf-8')
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
token = "SnarfNetPermanentAutomationToken2026"
headers = {
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
}
req = urllib.request.Request("https://authentik.snarfnet.net/api/v3/core/applications/semaphore/", headers=headers)
with urllib.request.urlopen(req, context=ctx) as resp:
app = json.loads(resp.read().decode('utf-8'))
print("Semaphore App in Authentik:")
print(" launch_url:", app.get('launch_url'))
print(" meta_launch_url:", app.get('meta_launch_url'))
print(" provider:", app.get('provider'))