Session log: GuruRMM audit, installer system, infrastructure fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,10 +4,10 @@ Create a JWT token for ClaudeTools API access
|
||||
"""
|
||||
import jwt
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from vault_utils import vault_get
|
||||
|
||||
# Get the JWT secret from the RMM server's .env file
|
||||
# This should match what's in /opt/claudetools/.env on 172.16.3.30
|
||||
JWT_SECRET = "NdwgH6jsGR1WfPdUwR3u9i1NwNx3QthhLHBsRCfFxcg="
|
||||
# Get the JWT secret from the SOPS vault
|
||||
JWT_SECRET = vault_get("projects/claudetools/api-auth.sops.yaml", "credentials.credential")
|
||||
|
||||
# Create token data
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user