Skip to content

Move GHE requests to UI server#369

Merged
2 commits merged intoclaimed-framework:v0.2.0from
ckadner:move_ghe_requests_to_ui_server
Nov 12, 2022
Merged

Move GHE requests to UI server#369
2 commits merged intoclaimed-framework:v0.2.0from
ckadner:move_ghe_requests_to_ui_server

Conversation

@ckadner
Copy link
Contributor

@ckadner ckadner commented Nov 11, 2022

The previous commit #368 enabled the MLX-UI to render Markdown files from GitHub Enterprise by using an API token. That token was used on the client web browser where the token could be sniffed out of the web traffic.

This PR moves the code to retrieve the README.md files from the UI client code (MarkdownViewer.tsx) to the UI server (server.ts) so the API token won't be exposed on the client web browser.

/cc @Tomcli @yhwang

Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
@ckadner ckadner requested review from Tomcli and yhwang November 11, 2022 22:09
@ghost
Copy link

ghost commented Nov 11, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ckadner

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ghost ghost added the approved label Nov 11, 2022
Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
@Tomcli
Copy link
Contributor

Tomcli commented Nov 12, 2022

/lgtm

@ghost ghost assigned Tomcli Nov 12, 2022
@ghost ghost added the lgtm label Nov 12, 2022
@ghost ghost merged commit e17df2b into claimed-framework:v0.2.0 Nov 12, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants