summaryrefslogtreecommitdiff
path: root/internal/configuration/schema/access_control.go
AgeCommit message (Collapse)Author
2025-02-18feat(configuration): reusable definitions (#8077)James Elliott
This adds reusable definitions into the mix for the configuration. This replaces the existing networks section for the access_control section and is automatically remapped for users. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2024-03-04refactor: apply suggestions from code reviewJames Elliott
Per our standard review process this adjusts the appropriate elements detected during the review. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2023-10-08refactor: misc (#6102)James Elliott
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-07-31feat(oidc): auth policy applied per-subject (#5486)James Elliott
This adds support to adjust the authorization policy on specific clients per subject in a reusable way. Closes #2621 Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2022-10-19feat(authorization): query parameter filtering (#3990)James Elliott
This allows for advanced filtering of the query parameters in ACL's. Closes #2708
2022-04-01feat(authorization): domain regex match with named groups (#2789)James Elliott
This adds an option to match domains by regex including two special named matching groups. User matches the username of the user, and Group matches the groups a user is a member of. These are both case-insensitive and you can see examples in the docs.
2021-08-03feat(configuration): replace viper with koanf (#2053)James Elliott
This commit replaces github.com/spf13/viper with github.com/knadh/koanf. Koanf is very similar library to viper, with less dependencies and several quality of life differences. This also allows most config options to be defined by ENV. Lastly it also enables the use of split configuration files which can be configured by setting the --config flag multiple times. Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-03-05perf(authorizer): preload access control lists (#1640)James Elliott
* adjust session refresh to always occur (for disabled users) * feat: adds filtering option for Request Method in ACL's * simplify flow of internal/authorization/authorizer.go's methods * implement query string checking * utilize authorizer.Object fully * make matchers uniform * add tests * add missing request methods * add frontend enhancements to handle request method * add request method to 1FA Handler Suite * add internal ACL representations (preparsing) * expand on access_control next * add docs * remove unnecessary slice for network names and instead just use a plain string * add warning for ineffectual bypass policy (due to subjects) * add user/group wildcard support * fix(authorization): allow subject rules to match anonymous users * feat(api): add new params * docs(api): wording adjustments * test: add request method into testing and proxy docs * test: add several checks and refactor schema validation for ACL * test: add integration test for methods acl * refactor: apply suggestions from code review * docs(authorization): update description
2021-01-16[MISC] Validate all sections of ACLs on startup (#1595)Amir Zarrinkafsh
* [MISC] Validate all sections of ACLs on startup This change ensure that all sections of the `access_control` key are validated on startup. * Change error format to clearly identify values
2021-01-04[FEATURE] Validate ACLs and add network groups (#1568)Amir Zarrinkafsh
* adds validation to ACL's * adds a new networks section that can be used as aliases in other sections (currently access_control)
2020-06-25[FEATURE] Support for subject combinations in ACLs (#1142)Philipp Staiger
2020-05-02[CI] Add goconst linter (#961)Amir Zarrinkafsh
* [CI] Add goconst linter * Implement goconst recommendations * Rename defaultPolicy to denyPolicy * Change order for test constants Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
2020-04-20[MISC] Implement golint recommendations (#885)Amir Zarrinkafsh
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
2020-04-16[FEATURE] Support multiple domains and multiple subjects in ACLs (#869)Dustin Sweigart
* added support for listing multiple domains and multiple subjects * updated documentation to show use of multiple domains and subjects * updated config.template.yml to display multiple domains as a list * updated config.template.yml to display multiple subjects as a list * updated docs/configuration/access-control.md to display multiple domains as a list * updated docs/configuration/access-control.md to display multiple subjects as a list * removed redundant check that always returned true * Commentary definition for `weak`
2020-01-22Introduce viper in order to read secrets from env variables.Clement Michaud
2019-11-17Move source code into internal directory to follow standard project layout.Clement Michaud
https://github.com/golang-standards/project-layout