-
Notifications
You must be signed in to change notification settings - Fork 16
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
[FEATURE] Proxy Backend Services #38
Conversation
fixes https://github.com/SAP/ui5-server/issues/13 Signed-off-by: Michael Sprauer <[email protected]>
|
Pull Request Test Coverage Report for Build 189
💛 - Coveralls |
I really struggle to increase coverage further, because I can't reliably modify the process.env in order to test the HTTP_PROXY or make the server answer with a cookie. Signed-off-by: Michael Sprauer <[email protected]>
I really struggle to increase coverage further, because I can't |
fixes https://github.com/SAP/ui5-server/issues/13 Signed-off-by: Michael Sprauer <[email protected]>
I really struggle to increase coverage further, because I can't reliably modify the process.env in order to test the HTTP_PROXY or make the server answer with a cookie. Signed-off-by: Michael Sprauer <[email protected]>
Thank you for this PR @MichaelSp. As signaled in the related issue, I finally created an RFC to tackle this topic: https://github.com/SAP/ui5-tooling/blob/rfc-proxy/rfcs/0003-proxy.md From my understanding this PR would solve use case "A", mainly focusing on proxying OData request. Correct? I added a question to the RFC PR to clarify whether this is a common requirement or should be covered by a more advanced solution: SAP/ui5-tooling#41 (comment) |
Bumps [@ui5/builder](https://github.com/SAP/ui5-builder) from 0.2.0 to 0.2.1. - [Release notes](https://github.com/SAP/ui5-builder/releases) - [Changelog](https://github.com/SAP/ui5-builder/blob/master/CHANGELOG.md) - [Commits](SAP/ui5-builder@v0.2.0...v0.2.1) Signed-off-by: dependabot[bot] <[email protected]>
Bumps [mime-types](https://github.com/jshttp/mime-types) from 2.1.18 to 2.1.19. - [Release notes](https://github.com/jshttp/mime-types/releases) - [Changelog](https://github.com/jshttp/mime-types/blob/master/HISTORY.md) - [Commits](jshttp/mime-types@2.1.18...2.1.19) Signed-off-by: dependabot[bot] <[email protected]>
Bumps [compression](https://github.com/expressjs/compression) from 1.7.2 to 1.7.3. - [Release notes](https://github.com/expressjs/compression/releases) - [Changelog](https://github.com/expressjs/compression/blob/master/HISTORY.md) - [Commits](expressjs/compression@1.7.2...1.7.3) Signed-off-by: dependabot[bot] <[email protected]>
Bumps [eslint](https://github.com/eslint/eslint) from 5.1.0 to 5.3.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v5.1.0...v5.3.0) Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Michael Sprauer <[email protected]>
@petermuessig should this take precedence over our https://github.com/petermuessig/ui5-ecosystem-showcase/tree/master/packages/ui5-middleware-simpleproxy ? |
Hey @MichaelSp and @Schoutenk, Thank you for working on this important topic. We are still not sure whether this specific solution fits into the standard UI5 Tooling. However, I think you should be able to make this a custom middleware (see our documentation). This would allow for easy reuse with the latest versions of the UI5 CLI for anyone interested in using this proxy setup. What do you think? |
i'm just wondering what the rationale against a generic proxy being part of the ui5 tooling is. can you elaborate please? |
@vobu the main issue with a generic proxy is that this will and cannot satisfy all needs, unfortunately. One needs authentication, the next needs a different path processing or the proxy should consider the neo-app.json or the xs-app.json or whatever other configuration file. I personally would prefer that the people understand the extensibility and can easily implement or better share their proxy with the community. It is good, that we provide an open-source tooling, but it is better when the community can contribute to the tooling by providing own middlewares. |
@RandomByte I've abandond the ui5 and thus ui5-tooling and switched to https://github.com/SAP/fundamental-styles instead. So I'm fine with whatever decision you make. |
right on - so @Schoutenk, what would you think about moving this proxy solution over to https://github.com/petermuessig/ui5-ecosystem-showcase? |
@vobu, (See: https://www.npmjs.com/package/ui5-middleware-proxy-basicauth) |
@Schoutenk very nice! thanks for creating and publishing your middleware. They basic auth part could also be added to the simple proxy in the ecosystem repository - but with an extra middleware I am fine as well. In general, contribution to the ecosystem showcase repository are welcome. We could add there also special middlewares in order to keep the UI5 tooling as general as possible and as extensible as possible. Thanks for your understanding and your work! |
@MichaelSp @Schoutenk - I will try to setup a WIKI-like page in the https://github.com/petermuessig/ui5-ecosystem-showcase/ , which will allow to list the https://github.com/Schoutenk/ui5-middleware-proxy-basicauth - with that anyone can use it and we keep the server free from the proxy feature. Are you ok with that? |
Of course. That would be great! |
The Wiki-like-page can be found here: https://petermuessig.github.io/ui5-ecosystem-showcase/ - you can contribute to it - that would be great! :-) |
As discussed above, instead of making the proxy part of the ui5-server we prefer to have middleware plugins for the proxy solutions. |
fixes https://github.com/SAP/ui5-server/issues/13
Signed-off-by: Michael Sprauer [email protected]