summaryrefslogtreecommitdiff
path: root/internal/commands/util.go
AgeCommit message (Collapse)Author
2025-03-09feat(embed): make authelia embedable (#8841)James Elliott
This adds a highly experimental option for developers looking to embed Authelia within another go binary. Closes #5803 Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2024-12-31fix(commands): crypto rand file param missing (#8533)James Elliott
This includes a file parameter for the authelia crypto rand command which allows exporting unique random values to multiple files. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2024-04-11fix(commands): missing hash-password help topic (#7136)James Elliott
The hash-password command was removed due to a number of issues related to the original implementation which lead to quite a lot of confusion, however we should have introduced a help topic to help users finding the correct command which was not done. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2023-09-03docs: jsonschema (#5493)James Elliott
Adds a JSON Schema for the configuration, user database, and most exports. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2023-08-02test(configuration): add several scenarios (#5708)James Elliott
This adds several tests to current expected scenarios and makes some minor adjustments specifically for testability and consistency. The tests are intended to cover a specific scenario which was described by a user which cannot be replicated at this stage. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2023-04-11fix(commands): storage cmd fail when implicit config absent (#5213)James Elliott
This fixes an issue where if the implicit config location of configuration.yml does not exist that an error is returned. This does not affect the behavior when the method was either implicit or environment. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2023-01-07refactor(random): add random provider (#4712)James Elliott
This adds a random provider which makes usage of random operations mockable, and may allow us in the future to swap out the Cryptographical CPU random generator with dedicated hardware random generators.
2022-12-27fix(notification): missing use of timeout (#4652)James Elliott
2022-12-23feat(commands): storage import/export commands (#4545)James Elliott
This adds commands to export and import TOTP configurations and Webauthn devices as YAML.
2022-12-23feat(configuration): env config file discovery (#4618)James Elliott
This allows Authelia to discover config files and config options via environment variables. Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2022-12-22feat(configuration): load config from directory (#4616)James Elliott
This allows specifying paths to a combination of files and directories with the --config option provided none of the specified file paths reside directly inside one of the specified directory paths. The directory paths are not recursive, and load .yml and .yaml files at this time.
2022-12-22refactor(commands): command context (#4539)James Elliott
This moves a lot of machinery for commands into a context.Context with other struct values. This allows for PreRunE's to reliably load the configuration and avoids use of global vars.
2022-11-25refactor: remove pre1 migration path (#4356)James Elliott
This removes pre1 migrations and improves a lot of tooling.
2022-11-04refactor(commands): include rfc3986 charset (#4328)James Elliott
This includes the RFC3986 unreserved charset as an option, and allows the '-upper' and '-lower' suffix for alphabetic inclusive charsets.
2022-10-21feat(commands): random character generator (#4213)James Elliott
This improves all random character generator command usages to be nearly identical and reuse a large block of code. It also improves several functions to give more options when randomly generating outputs.
2022-10-17feat(authentication): file password algorithms (#3848)James Elliott
This adds significant enhancements to the file auth provider including multiple additional algorithms.
2022-10-05refactor: any (#4133)James Elliott
* refactor: any * refactor: fix test
2022-08-09refactor(server): use errgroup to supervise services (#3755)James Elliott
Uses the errgroup package and pattern for supervising services like servers etc.