Skip to content

Commit 57c665b

Browse files
committed
[green] Quarantine burned firmware candidate
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th> (cherry picked from commit 21ed1a9e8d477805a88c15a58866cfd2a1fe31b3)
1 parent a25eaf9 commit 57c665b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎tools/web/deploy/nginx/10-pyble-dev-https.conf‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@ server {
7575
try_files $uri =404;
7676
}
7777

78+
# v0.4.1 was a pending pre-public candidate exposed without the required
79+
# access control. Keep its retained bytes outside public routing forever.
80+
location ^~ /firmware/v0.4.1/ {
81+
include /etc/nginx/snippets/pyble-security-headers.conf;
82+
add_header Cache-Control "no-store" always;
83+
error_page 404 = @burned_firmware_candidate;
84+
return 404;
85+
}
86+
87+
location @burned_firmware_candidate {
88+
internal;
89+
include /etc/nginx/snippets/pyble-security-headers.conf;
90+
add_header Cache-Control "no-store" always;
91+
return 404;
92+
}
93+
7894
location ^~ /firmware/ {
7995
include /etc/nginx/snippets/pyble-security-headers.conf;
8096
add_header Cache-Control $pyble_firmware_cache_control always;

0 commit comments

Comments
 (0)