-
Notifications
You must be signed in to change notification settings - Fork 12
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
add wip role for superset #140
base: master
Are you sure you want to change the base?
Conversation
this way postgres user can read db credentials to initialize it
@jeanpommier moving the technical aspects of the integration here, instead of the GIP.. so far, to get the feature from the PR, my idea is to:
|
You mean you want to make ansible do the build ? Alternatively, we could build the frontend with a designated path prefix and serve it (the built files) from a git repo for instance. I don't know which is prefereable, to build it locally or to centralize the build (which means we would all agree on the path prefix) |
yeah, was pondering this option too..i'm not sure we want to make the prefix user-configurable, so we could settle on |
Yup, I agree. We'll probably have to make a poll. It's really a pity they're hardcoding the path in Superset |
notes for the ones who want to play at home, apparently the requirements to build the frontend are node 20/npm 10:
and after a while the generated assets in |
https://packages.georchestra.org/bot/wars/superset/ has a 40mb archive of |
since we dont have the auth bits from the headers yet, created a local admin this way:
so far im still fighting a bit with the redirections/which page should be where, but from my understanding of the returned html, the |
so far i have something that works (eg renders fine, i can login as admin), but only if superset is right behind nginx, not yet with superset behind the s-p (yes, im using the s-p). probably me messing up smth in the s-p config. |
i have something that works here but is a bit gross (like what was done for mviewerstudio in #132), eg a specific nginx vhost to put behind the s-p, and in front of gunicorn. |
use urlprefix and vhostport to redirect to the service-specific nginx vhost.
config taken from upstream's GHPR in https://github.com/apache/superset/pull/30134/files#diff-9951b8095c565440f8f92391496ad31c134daaed35fc9b0df8efcb5443ea5f36
Wow, I can see you've been active.
Yes, that's the only way as of now (if using the above-mentioned PR). PR 30134 is actually not enabling the support for path prefix inside superset, which is still only able to run on the root of the domain, it is merely fixing Superset so that it is possible to properly proxy-pass on a path prefix behind a reverse proxy like for instance nginx. As of now, this is the only possible option. To summarize (things as I undertstand them):
|
what i have is i think in a testable state. mostly missing content/dashboards specific to the IDS (having something that actually replaces analytics from geoserver ootb would be.. definitely nice), geor-header integration, roles/auth from sec-proxy headers :) @jeanpommier let me know when you have something to test... |
Still a bit early stage ;o) |
looking a bit, i guess we'll need integrate so in all cases, the frontend needs to be forked/rebuilt for proper geor-header integration. |
what's left in terms of integration on my side:
|
It is. That's the point |
i've just deployed this branch on https://demo.georchestra.org/dashboards/superset/welcome/ - same thing, manually created a testadmin user. |
cf georchestra/improvement-proposals#10, still wip/untested