spack/etc/spack/defaults
psakievich 7afa949da1
Add handling of custom ssl certs in urllib ops (#42953)
This PR allows the user to specify a path to a custom cert file (or directory) in
Spack's config:

```yaml
  # This is where custom certs for proxy/firewall are stored.
  # It can be a path or environment variable. To match ssl env configuration
  # the default is the environment variable SSL_CERT_FILE
  ssl_certs: $SSL_CERT_FILE
```

`config:ssl_certs` can be a path to a file or a directory, or it can be and environment
variable that resolves to one of those. When it posts to something valid, Spack will
update the ssl context to include custom certs, and fetching via `urllib` and `curl`
will trust the provided certs.

This should resolve many issues with fetching behind corporate firewalls.


---------

Co-authored-by: psakievich <psakievich@users.noreply.github.com>
Co-authored-by: Alec Scott <alec@bcs.sh>
2024-04-01 11:11:13 -07:00
..
cray Don't set LD_LIBRARY_PATH by default on Linux (#28354) 2022-08-11 09:33:08 -05:00
darwin apple-libuuid: update installation directory (#40416) 2023-11-28 10:13:55 -08:00
linux Don't set LD_LIBRARY_PATH by default on Linux (#28354) 2022-08-11 09:33:08 -05:00
windows Allow configurable stage names (#36509) 2023-03-31 11:46:47 -07:00
bootstrap.yaml Update bootstrap buildcache to support Python 3.12 (#40404) 2023-10-11 19:03:17 +02:00
concretizer.yaml Add config option and compiler support to reuse across OS's (#42693) 2024-03-27 15:39:07 +00:00
config.yaml Add handling of custom ssl certs in urllib ops (#42953) 2024-04-01 11:11:13 -07:00
mirrors.yaml mirrors: distinguish between source/binary mirror; simplify schema (#34523) 2023-07-13 11:29:17 +00:00
modules.yaml Revert "defaults/modules.yaml: hide implicits (#40906)" (#40955) 2023-11-08 14:33:50 -07:00
packages.yaml Add intel-oneapi-runtime, allow injecting virtual dependencies (#42062) 2024-03-24 22:59:21 -07:00
repos.yaml Add "default" configuration scope. 2016-07-19 17:10:17 -07:00