fix: edge control critical bugs - .env dedup, authorized_keys, Caddy routes
- Fix .env write in edge register to use single grep -Ev + mv pattern (not three-pass append)
- Fix register.sh to source authorized_keys.sh and call rebuild_authorized_keys directly
- Fix caddy.sh remove_route to use jq to find route index by host match
- Fix authorized_keys.sh operator precedence: { [ -z ] || [ -z ]; } && continue
- Fix install.sh Caddyfile to use { admin localhost:2019 } global options
- Fix deregister and status SSH to use StrictHostKeyChecking=accept-new
This commit is contained in:
parent
cf3c63bf68
commit
cd115a51a3
5 changed files with 14 additions and 26 deletions
|
|
@ -49,7 +49,7 @@ generate_authorized_keys_content() {
|
|||
pubkey=$(echo "$line" | jq -r '.pubkey')
|
||||
|
||||
# Skip if missing required fields
|
||||
[ -z "$port" ] || [ -z "$pubkey" ] && continue
|
||||
{ [ -z "$port" ] || [ -z "$pubkey" ]; } && continue
|
||||
|
||||
# Build the authorized_keys line
|
||||
# Format: restrict,port-forwarding,permitlisten="127.0.0.1:<port>",command="/bin/false" <key-type> <key>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue