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

fix: HEAD-679 only check snykgov.io domain to check if fedramp #373

Merged
merged 5 commits into from
Sep 4, 2023

Conversation

j-luong
Copy link
Contributor

@j-luong j-luong commented Sep 4, 2023

Description

Checking for a "fedramp" part in the instance name is most likely not resilient enough, so we decided to only check the domain..

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

@j-luong j-luong requested a review from a team as a code owner September 4, 2023 08:54
@@ -196,16 +196,15 @@ export class Configuration implements IConfiguration {
get isFedramp(): boolean {
if (!this.customEndpoint) return false;

// FEDRAMP URL e.g. https://api.fedramp.snykgov.io
// FEDRAMP URL e.g. https://api.feddramp.snykgov.io
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo in the comment?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think just pointing out that the fedramp part is irrelevant (the domain is the trigger)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry yes, we check for snykgov.io only now

@j-luong j-luong merged commit 3f47e04 into main Sep 4, 2023
3 checks passed
@j-luong j-luong deleted the feat/HEAD-679_updateFedRampURLCheck branch September 4, 2023 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants