feat(end-to-end-security): add superset OPA#407
Open
sweb wants to merge 3 commits into
Open
Conversation
406b26d to
6564a81
Compare
6564a81 to
fe8881a
Compare
354ab4a to
b607bdd
Compare
NickLarsenNZ
reviewed
Jul 6, 2026
| "subGroups" : [ ] | ||
| } ], | ||
| "users" : [ { | ||
| "username" : "admin", |
Member
There was a problem hiding this comment.
Should this be something more specific to superset?
Suggested change
| "username" : "admin", | |
| "username" : "superset_admin", |
Member
Author
There was a problem hiding this comment.
I think the admin user name is predefined by superset and as far as I suspect we need to match the user name in Keycloak - however I can give it a try to see whether we can rename it.
NickLarsenNZ
reviewed
Jul 6, 2026
| @@ -12,9 +12,9 @@ SET standard_conforming_strings = on; | |||
| -- | |||
|
|
|||
| CREATE ROLE postgres; | |||
| ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS PASSWORD 'SCRAM-SHA-256$4096:XfE1S3tIVrPAwRXzqI/Ptw==$vacFUmkUUHcdejD7LOlHYax3gpEhEmObPcHVDtajYNY=:e+j2EaHndtOGxXISZsBR6Il+GViZc5R1d89AtPCRTCc='; | |||
| ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS PASSWORD 'SCRAM-SHA-256$4096:sGx/aeHPQh2TYqDu/3VtKg==$MDwWvH8UgxEn/Nx2hZXAvw5ENCrSpXi6yRR7ZQ+QEF4=:sO4JMyhpvAYkbLKXUZLIuh6Q++k4IthhhbGarVxMVU8='; | |||
Member
There was a problem hiding this comment.
curious what caused this to change. I guess the time?
Member
Author
There was a problem hiding this comment.
I assume this is due to the postgres instance specific salt, but I don't know for sure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This extends the demo to use OPA also for Superset. The result is that you can add a new user in Keycloak, add it to a group and upon login, the user will have access to the datasets / charts / dashboards of that group.
This requires a new / adjusted dump - e.g. we shouldn't need Gamma_extended anymore as this is now handled by rego rules.