Skip to content
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

Move GHE requests to UI server #369

Conversation

ckadner
Copy link
Member

@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 <[email protected]>
@mlx-bot-app
Copy link

mlx-bot-app bot 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

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

@mlx-bot-app mlx-bot-app bot added the approved label Nov 11, 2022
Signed-off-by: Christian Kadner <[email protected]>
@Tomcli
Copy link
Member

Tomcli commented Nov 12, 2022

/lgtm

@mlx-bot-app mlx-bot-app bot added the lgtm label Nov 12, 2022
@mlx-bot-app mlx-bot-app bot merged commit e17df2b into machine-learning-exchange:v0.2.0 Nov 12, 2022
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