Tlamatini Allowed Hosts Tighten

Tighten Django ALLOWED_HOSTS from the wide-open '*' default to a specific list, with a backup of settings.py.

XAIHT Updated

File contents

Tighten ALLOWED_HOSTS

The Tlamatini security report flagged the default ALLOWED_HOSTS=['*'] in Tlamatini/tlamatini/settings.py as one of the Tlamatini-specific debts. This skill replaces it with a user-supplied whitelist and writes a .bak backup next to the file.

Procedure

  1. Read Tlamatini/tlamatini/settings.py.
  2. Locate the line ALLOWED_HOSTS = [...] (any list literal).
  3. Backup the current file as settings.py.bak.
  4. Rewrite ALLOWED_HOSTS with ${input.hosts} rendered as a Python list.
  5. Return {settings_path, backup_path, changed}.

Rollback

If the new list is incorrect, restore settings.py.bak over settings.py manually.

XAIHT/Tlamatini/tree/main/Tlamatini/agent/skills_pkg/tlamatini_allowed_hosts_tighten commit 4d331e1a94

Frequently asked questions

npx skillmds@latest add xaiht/tlamatini-allowed-hosts-tighten