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

Restrict proxy access to known hosts only #10884

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

onursumer
Copy link
Member

@onursumer onursumer commented Jul 8, 2024

  • Restrict proxy access to known hosts only
  • Remove unused endpoints and methods
  • Rename dev endpoint and add comments

Need to merge cBioPortal/cbioportal-frontend#4941 and cBioPortal/cbioportal-frontend#4942 before merging this one.

String[] knownHosts = {
this.genomeNexusUrl,
this.genomeNexusGrch38Url,
"http://mutationaligner.org/api",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still use mutationaligner?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it, just to check for existence of this URL:

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided to always show the link. See cBioPortal/cbioportal-frontend#4942

this.genomeNexusUrl,
this.genomeNexusGrch38Url,
"http://mutationaligner.org/api",
"http://docs.cbioportal.org/news"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we fix cors on the docs site?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like Github pages now allows CORS! See cBioPortal/cbioportal-frontend#4941

@onursumer onursumer force-pushed the restrict-proxy-to-known-hosts branch from 4a12c8c to 7376a09 Compare July 10, 2024 16:08
@onursumer onursumer force-pushed the restrict-proxy-to-known-hosts branch from 7376a09 to 8268ecc Compare July 12, 2024 14:10
Copy link
Collaborator

@haynescd haynescd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@haynescd haynescd merged commit ea8642f into cBioPortal:master Jul 12, 2024
11 of 16 checks passed
@onursumer onursumer deleted the restrict-proxy-to-known-hosts branch August 22, 2024 12:54
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.

3 participants