WIP: Use new HEADERS.location feature #105

Draft
stb wants to merge 3 commits from redirect-header into main
Showing only changes of commit 2d569848a7 - Show all commits

Make check more resilient
Some checks failed
/ Ansible Lint (push) Has been cancelled
/ build (pull_request) Has been cancelled
/ Ansible Lint (pull_request) Has been cancelled

Some redirects have a trailing slash, some dont. Both are legal.

This pattern will also catch "deep" redirects correctly.
Stefan Bethke 2026-06-19 12:16:25 +02:00

View file

@ -190,9 +190,9 @@ endpoints:
client: client:
ignore-redirect: true ignore-redirect: true
conditions: conditions:
- "[STATUS] == 302" # - "[STATUS] == 302"
- "[HEADERS].location == https://c3cat.de" - "[HEADERS].location == https://c3cat.de/"
- "[CERTIFICATE_EXPIRATION] > 48h" # - "[CERTIFICATE_EXPIRATION] > 48h"
- name: www.c3dog.de - name: www.c3dog.de
url: "https://www.c3dog.de" url: "https://www.c3dog.de"
@ -201,7 +201,7 @@ endpoints:
ignore-redirect: true ignore-redirect: true
conditions: conditions:
- "[STATUS] == 302" - "[STATUS] == 302"
- "[HEADERS].location == https://c3dof.de" - "[HEADERS].location == pat(https://c3dog.de*)"
- "[CERTIFICATE_EXPIRATION] > 48h" - "[CERTIFICATE_EXPIRATION] > 48h"
- name: cryptoparty.hamburg.ccc.de - name: cryptoparty.hamburg.ccc.de
@ -211,7 +211,7 @@ endpoints:
ignore-redirect: true ignore-redirect: true
conditions: conditions:
- "[STATUS] == 302" - "[STATUS] == 302"
- "[HEADERS].location == https://cryptoparty-hamburg.de" - "[HEADERS].location == pat(https://cryptoparty-hamburg.de*)"
- "[CERTIFICATE_EXPIRATION] > 48h" - "[CERTIFICATE_EXPIRATION] > 48h"
- name: local.ccc.de - name: local.ccc.de
@ -221,7 +221,7 @@ endpoints:
ignore-redirect: true ignore-redirect: true
conditions: conditions:
- "[STATUS] == 302" - "[STATUS] == 302"
- "[HEADERS].location == https://cpu.ccc.de" - "[HEADERS].location == pat(https://cpu.ccc.de*)"
- "[CERTIFICATE_EXPIRATION] > 48h" - "[CERTIFICATE_EXPIRATION] > 48h"
- name: lokal.ccc.de - name: lokal.ccc.de
@ -231,7 +231,7 @@ endpoints:
ignore-redirect: true ignore-redirect: true
conditions: conditions:
- "[STATUS] == 302" - "[STATUS] == 302"
- "[HEADERS].location == https://cpu.ccc.de" - "[HEADERS].location == pat(https://cpu.ccc.de*)"
- "[CERTIFICATE_EXPIRATION] > 48h" - "[CERTIFICATE_EXPIRATION] > 48h"
- name: staging.cryptoparty.hamburg.ccc.de - name: staging.cryptoparty.hamburg.ccc.de
@ -241,7 +241,7 @@ endpoints:
ignore-redirect: true ignore-redirect: true
conditions: conditions:
- "[STATUS] == 302" - "[STATUS] == 302"
- "[HEADERS].location == https://staging.cryptoparty-hamburg.de" - "[HEADERS].location == pat(https://staging.cryptoparty-hamburg.de*)"
- "[CERTIFICATE_EXPIRATION] > 48h" - "[CERTIFICATE_EXPIRATION] > 48h"
- name: www.hamburg.ccc.de - name: www.hamburg.ccc.de
@ -251,5 +251,5 @@ endpoints:
ignore-redirect: true ignore-redirect: true
conditions: conditions:
- "[STATUS] == 302" - "[STATUS] == 302"
- "[HEADERS].location == https://hamburg.ccc.de/" - "[HEADERS].location == pat(https://hamburg.ccc.de*)"
- "[CERTIFICATE_EXPIRATION] > 48h" - "[CERTIFICATE_EXPIRATION] > 48h"