aszlig 6fe989eaed
nixos/tests/acme: Use exact match in TOS location
Since the switch to check the nginx config with gixy in
59fac1a6d7e1983a1e7bd518129ff9ef39a013dd, the ACME test doesn't build
anymore, because gixy reports the following false-positive (reindented):

  >> Problem: [alias_traversal] Path traversal via misconfigured alias.
  Severity: MEDIUM
  Description: Using alias in a prefixed location that doesn't ends with
               directory separator could lead to path traversal
               vulnerability.
  Additional info: https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md
  Pseudo config:

  server {
    server_name letsencrypt.org;

    location /documents/2017.11.15-LE-SA-v1.2.pdf {
      alias /nix/store/y4h5ryvnvxkajkmqxyxsk7qpv7bl3vq7-2017.11.15-LE-SA-v1.2.pdf;
    }
  }

The reason this is a false-positive is because the destination is not a
directory, so something like "/foo.pdf../other.txt" won't work here,
because the resulting path would be ".../destfile.pdf../other.txt".

Nevertheless it's a good idea to use the exact match operator (=), to
not only shut up gixy but also gain a bit of performance in lookup (not
that it would matter in our test).

Signed-off-by: aszlig <aszlig@nix.build>
2019-04-06 12:51:56 +02:00
..
2019-03-18 00:22:23 +01:00
2019-04-04 19:42:49 +01:00
2018-09-21 09:22:03 +02:00
2018-08-31 21:19:53 -05:00
2018-11-29 20:27:47 -06:00
2019-03-22 18:43:15 -04:00
2018-08-03 09:40:32 +02:00
2019-03-18 08:05:42 -04:00
2018-04-12 01:35:14 +02:00
2018-09-21 01:17:41 +02:00
2019-01-28 00:15:00 +01:00
2019-02-11 03:13:03 +01:00
2018-02-14 22:43:59 +01:00
2018-12-09 18:29:51 +01:00
2019-04-01 08:39:25 -04:00
2019-03-14 01:28:53 +01:00
2016-12-29 20:09:46 -05:00
2018-08-29 19:38:00 +02:00
2019-03-29 15:50:36 +01:00
2018-11-25 14:24:10 +01:00
2019-02-11 03:12:56 +01:00
2019-02-01 16:01:08 +01:00
2019-04-01 17:24:33 +02:00
2018-04-30 16:49:38 +02:00
2018-06-24 16:10:32 +02:00
2019-03-15 15:15:32 +01:00
2019-01-24 20:54:14 +00:00
2018-10-28 19:13:12 +00:00
2019-02-05 11:51:33 +00:00
2018-11-15 23:44:16 +09:00
2017-07-16 10:06:42 +01:00
2019-01-21 11:37:20 +00:00
2018-08-24 15:48:39 +02:00