unity-sds / unity-ui

Apache License 2.0
0 stars 0 forks source link

Figure out a way to incorporate other apps (CORS issues etc.) #6

Open rtapella opened 9 months ago

rtapella commented 9 months ago

Help each respective service team set up their apps to be included "under" the navbar (CORS etc.)

rtapella commented 5 months ago

part of https://github.com/unity-sds/unity-project-management/issues/74

rtapella commented 4 months ago

also get Airflow working inside Navbar

rtapella commented 4 months ago

dependencies are 24.1.5... so this cannot be done before that

rtapella commented 3 months ago

Start with Airflow (#22 )

anilnatha commented 2 months ago

@galenatjpl The reason we have had CORS issues in the past is because the services we were loading into the UI were being served from URLs that weren't part of the same domain, i.e. not routed through the venue's CloudFront instance.

Assuming that the service areas will be using a venue's cloudfront instance to provide user's access to their respective UIs (dockstore, stac browser, airflow, etc.), won't CORS issue be a moot point?

galenatjpl commented 2 months ago

@anilnatha , Both @ramesh-maddegoda and @mike-gangl were working on a httpd server that has a ALB and cert. I think @mike-gangl was thinking that airflow is a "www" thing, and not an "api" thing, and therefore would go through httpd.

In other words, www. points to the httpd load balancers api. points to API Gateways

So the other apps (and the Navbar UI) should have URLs starting with https://www.dev.mdps.mcp.nasa.gov:4443/ ...

So I think the answer hopefully is that you don't have this CORS issue anymore (once this all gets setup properly), but we would have to test.

mike-gangl commented 2 months ago

There may still be some CORS issues to resolve, e.g. submitting a job to the API (WPS) from the dashboard, but i think those belonging to the same domain will help alleviate these issues.

As for hosting another application, its essentially an iframe pointing at www... content, so that should be pretty standard.

rtapella commented 2 months ago

needs u-cs work on httpd resolved

rtapella commented 2 months ago

May need to handle the APIs because they'll have a different domain (api.blah vs. www.blah) when loading the Jobs Dashboard (for example)

rtapella commented 1 month ago

@anilnatha I think we can test Jupyter in the navbar now... it should have a URL that can avoid the CORS stuff

rtapella commented 1 month ago

also need to handle passing of Cognito tokens into the iframe