Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure authentication policies. #1232

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9de8cda
Remove oso and scaffold new auth policy structure.
partim Sep 12, 2024
089f0c9
Auth policies are now always available.
partim Sep 12, 2024
c941bfb
Implement new auth provider strategy.
partim Oct 30, 2024
8066b6a
Restructure the auth_users config.
partim Oct 31, 2024
74538ae
Fix casing of permission variants.
partim Oct 31, 2024
48c6bea
Clean up names and import paths a bit.
partim Oct 31, 2024
87adc8d
Remove authorizer’s Auth type.
partim Oct 31, 2024
65114b1
Remove auth’s Handle wrapper.
partim Oct 31, 2024
4838bab
Remove polar files.
partim Oct 31, 2024
baaf928
Remove it, don’t just comment it out ...
partim Oct 31, 2024
2e06b8d
Move modules from auth::common into auth.
partim Oct 31, 2024
ee9ce95
Removed unused config items, rewrite multi-user default conf.
partim Nov 1, 2024
19181da
Improve error messages for missing roles.
partim Nov 4, 2024
671bdf1
Add 'glob' permissions and document roles and permissions.
partim Nov 6, 2024
6609a4d
Maybe try compiling before committing ...
partim Nov 6, 2024
693a1f1
Refactor OpenID Connect claims config yet again.
partim Nov 6, 2024
14fb7f1
Minor manual fixes.
partim Nov 6, 2024
5476b14
OpenID Connect manual update.
partim Nov 6, 2024
85c7b42
Fix the user information sent to the UI after login.
partim Nov 7, 2024
f87ecf9
Remove unnecessary .into().
partim Nov 7, 2024
d1961e0
Include attributes also in redirect URI.
partim Nov 11, 2024
43d6ab5
Deserialize permission from String instead of str.
partim Nov 13, 2024
2eaf356
Minor fixes.
partim Nov 13, 2024
9f0faba
Remove unnecessary things.
partim Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
659 changes: 382 additions & 277 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ http-body-util = "0.1"
hyper = { version = "1.3.1", features = ["server"] }
hyper-util = { version = "0.1", features = [ "server" ] }
intervaltree = "0.2.6"
jmespatch = { version = "0.3", features = ["sync"], optional = true }
kmip = { version = "0.4.2", package = "kmip-protocol", features = [ "tls-with-openssl" ], optional = true }
kvx = { version = "0.9.3", features = ["macros"] }
libflate = "2.1.0"
log = "0.4"
once_cell = { version = "1.7.2", optional = true }
openidconnect = { version = "2.0.0", optional = true, default-features = false }
openidconnect = { version = "3.5.0", optional = true, default-features = false }
openssl = { version = "0.10", features = ["v110"] }
oso = { version = "0.12", optional = true, default-features = false }
percent-encoding = "2.3.1"
pin-project-lite = "0.2.4"
r2d2 = { version = "0.8.9", optional = true }
Expand Down Expand Up @@ -81,9 +79,7 @@ default = ["multi-user", "hsm"]
hsm = ["backoff", "kmip", "once_cell", "cryptoki", "r2d2"]
multi-user = [
"basic-cookies",
"jmespatch/sync",
"regex",
"oso",
"openidconnect",
"rpassword",
"scrypt",
Expand Down
37 changes: 0 additions & 37 deletions defaults/abac.polar

This file was deleted.

13 changes: 0 additions & 13 deletions defaults/aliases.polar

This file was deleted.

717 changes: 392 additions & 325 deletions defaults/krill-multi-user.conf

Large diffs are not rendered by default.

42 changes: 0 additions & 42 deletions defaults/rbac.polar

This file was deleted.

142 changes: 0 additions & 142 deletions defaults/roles.polar

This file was deleted.

Loading
Loading