Commit 9c8a7d5
feat: Support OPA role mapping (#582)
* First skeleton of opa integration
* WIP implementation opa-role-mapping
* Add SecurityManager dynamically
* Better OPA_IMPORT
* Security manager own file in Docker-Images. Fixing python expression
* making clippy happy for now
* Updating some approaches
* Adding more rules, more sophisticated handling of stuff
* Defaults are working
* Better interfering of package path
* Happy Clippy
* update OpaSupersetSecurityManager import path
* import new opa_authorizer module
* Removing some ToDo's. Better comments
* Adding OpaRolesCache with 10 minutes default
* pre commit becomes happy
* create opa test basics
* rename test directory
* fix test-definition
* fix typo
* fix opa test scaffold
* Adding rule_name to be defined by the user. defaults to empty string
* Adding default to rule_name
* StackableOpaRule to string as we interfere from CRDs
* Adding ttl to crds. Default to 10.
* cache_ttl now Duration type. Converted to seconds in superset_config.py
* wip: integration tests
* integrate feedback
* create basic user role test
* First documentation draft
* Adding reference to opa user-info-fetcher
* Updating changelog
* fix rego and first check in integration test
* fix formatting issues
* Making rust fmt happy
* lint with ruff formatter
* use TtlCache from operator-rs
* Regenerate charts
* Making pre-commit happy
* apply typos and formatting corrections
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* update chart
* adress feedback in PR and rename envs
* fix changelog
* Update opa tests.
* support custom image for opa tests
* create and assign new role via API
* fix typos
* add some comments
* opa kuttl test is green (again)
* silence most of Pyright errors and warnings
* Update rust/crd/src/lib.rs
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* Renaming fields and structs
* format code
* make field required
* pass on opa endpoint instead of base url to the authorizer
* Update docs/modules/superset/pages/usage-guide/security.adoc
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* Update docs/modules/superset/pages/usage-guide/security.adoc
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* Update docs/modules/superset/pages/usage-guide/security.adoc
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* Update docs/modules/superset/pages/usage-guide/security.adoc
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* update security.adoc
* move constant
* rename opa dimension
* revert changes to smoke test
* Update tests/templates/kuttl/opa/40_superset.yaml.j2
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* remove unused image field
* add serde cache defaults
* Update rust/operator-binary/src/authorization/opa.rs
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* Update rust/operator-binary/src/superset_controller.rs
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
* add missing EOF
* add vector aggregator config map
* add openshift ns patch
---------
Co-authored-by: Benedikt Labrenz <benedikt@labrenz.org>
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Co-authored-by: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com>1 parent 087a1ee commit 9c8a7d5
File tree
47 files changed
+1104
-85
lines changed- deploy/helm/superset-operator/crds
- docs/modules/superset/pages/usage-guide
- rust
- crd/src
- operator-binary/src
- authorization
- tests
- templates/kuttl
- ldap
- logging
- oidc
- opa
- smoke
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+1104
-85
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
74 | 114 | | |
75 | 115 | | |
76 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
129 | 194 | | |
130 | 195 | | |
131 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
92 | 100 | | |
93 | 101 | | |
94 | 102 | | |
| |||
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
| 130 | + | |
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
| |||
136 | 145 | | |
137 | 146 | | |
138 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
139 | 155 | | |
140 | 156 | | |
141 | 157 | | |
| |||
179 | 195 | | |
180 | 196 | | |
181 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
182 | 209 | | |
183 | 210 | | |
184 | 211 | | |
| |||
242 | 269 | | |
243 | 270 | | |
244 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
245 | 288 | | |
246 | 289 | | |
247 | 290 | | |
| |||
476 | 519 | | |
477 | 520 | | |
478 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
479 | 530 | | |
480 | 531 | | |
481 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
0 commit comments