Generalize host resolver discovery and self-update operator scripts #8
Loading…
Reference in a new issue
No description provided.
Delete branch "improve-traefik-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR replaces the single-key host DNS resolver setting with a list-based
x-host-resolverskey, lets deployedrun.shandget-folder.shupdate themselves from the repository, and makesrun.shreport newer app compose and env files.Changes
x-host-resolversreplacesx-host-dns-resolversandx-host-gateway-url. It is a list of UPPERCASE env keys filled from one host resolver discovery.hostor an empty value becomes theip:53list.http://host:portandhttps://host:portkeep scheme and port and use the first resolver address (IPv6 bracketed). Concrete values are left unchanged.DNSCHALLENGE_RESOLVERSandCROWDSEC_AGENT_LAPI_URLunderx-host-resolvers. The default LAPI URL is nowhttp://host:8080instead of aCHANGE_MEplaceholder.CERTRESOLVERdefaults todesec, and the Authentik example host is shortened toauth.example.com.get-folder.shandrun.shcompare their installed blob and the branch-tip commit time against stamps inscript-revs/. A newer tip with changed content replaces the file and re-executes the same command. Locally edited scripts are left in place;--forcestill replacesrun.sh. Git work trees and localtemplates/directories remain the source and are never replaced.run.sh <AppDir>reports newer app compose and env files.--forcebacks them up to.run.conf/.backups/(timestamps now include nanoseconds) and replaces them..openso/rules,.openso/memory, READMEs,.pi/skills/run-test) describe the new behaviour.Why
x-host-resolverslist avoids a separate key per resolver use case and lets the CrowdSec LAPI URL reuse the same discovery.Reviewer notes
x-host-dns-resolversorx-host-gateway-urlmust migrate tox-host-resolvers.--dry-runskips clone-based checks (script self-update and app file comparison).execto re-run the updated script; the lock is released before re-exec.