authelia/internal/utils
James Elliott 622bf42ed4
fix(configuration): secret permission errors panic (#5141)
This fixes an issue where attempting to load secrets the process does not  have read permissions for would cause panics as well as the bit size check of the OpenID Connect 1.0 private key can potentially panic on malformed private keys. This was caused by us returning values on errors instead of nil's.

Fixes #5138

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2023-04-08 16:02:34 +10:00
..
aes.go [FEATURE] Create dedicated health endpoint (#1489) 2020-11-25 10:20:52 +11:00
aes_test.go test(utils): add additional coverage (#4751) 2023-01-12 22:30:16 +11:00
bools.go feat(authentication): password policy (#2723) 2022-04-03 08:32:57 +10:00
bools_test.go feat(authentication): password policy (#2723) 2022-04-03 08:32:57 +10:00
bytes.go feat(server): customizable authz endpoints (#4296) 2023-01-25 20:36:40 +11:00
check.go test(utils): add additional coverage (#4751) 2023-01-12 22:30:16 +11:00
check_test.go test(utils): add additional coverage (#4751) 2023-01-12 22:30:16 +11:00
clock.go feat(authentication): ldap time replacements (#4483) 2022-12-21 21:31:21 +11:00
const.go fix(configuration): secret permission errors panic (#5141) 2023-04-08 16:02:34 +10:00
const_test.go refactor(random): add random provider (#4712) 2023-01-07 11:19:41 +11:00
crypto.go refactor(commands): x509 bundling (#4942) 2023-02-17 14:29:07 +11:00
crypto_test.go refactor(suites): use pki for oidc (#4913) 2023-02-11 15:37:54 +11:00
errs.go fix(configuration): secret permission errors panic (#5141) 2023-04-08 16:02:34 +10:00
exec.go refactor: apply godot recommendations (#2839) 2022-01-31 16:25:15 +11:00
exec_test.go test(utils): add additional coverage (#4751) 2023-01-12 22:30:16 +11:00
files.go feature(oidc): add support for OpenID Connect 2021-05-05 00:15:36 +02:00
files_test.go feature(oidc): add support for OpenID Connect 2021-05-05 00:15:36 +02:00
hashing.go feat(configuration): replace viper with koanf (#2053) 2021-08-03 19:55:21 +10:00
hashing_test.go refactor(random): add random provider (#4712) 2023-01-07 11:19:41 +11:00
io.go fix(notification): text emails not encoded properly (#3854) 2022-08-27 07:39:20 +10:00
strings.go feat(oidc): pushed authorization requests (#4546) 2023-03-06 14:58:50 +11:00
strings_test.go refactor(random): add random provider (#4712) 2023-01-07 11:19:41 +11:00
time.go refactor: certs (#4912) 2023-02-11 14:11:40 +11:00
time_test.go refactor: certs (#4912) 2023-02-11 14:11:40 +11:00
url.go feat(session): multiple session cookie domains (#3754) 2023-01-12 21:57:44 +11:00
url_test.go feat(session): multiple session cookie domains (#3754) 2023-01-12 21:57:44 +11:00
version.go build: add container labels and annotations (#4071) 2022-09-26 10:05:59 +10:00
version_test.go build: add container labels and annotations (#4071) 2022-09-26 10:05:59 +10:00