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

Default SecuritySettings.env to prod #5326

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

galvana
Copy link
Contributor

@galvana galvana commented Sep 25, 2024

Closes PROD-2791

Description Of Changes

Defaults the value of SecuritySettings.env to prod if a value isn't provided. Adds tests to verify that the endpoints using verify_oauth_client_prod return an HTTP 401 if no credentials are provided and SecuritySettings.env is either not set or set to prod.

Code Changes

  • Updated default value for env in SecuritySettings

Steps to Confirm

  • Verify FIDES__SECURITY__ENV is not set in any Fides .env or .toml settings file (for example .fides/fides.toml)
  • Start Fides nox -s dev
  • Attempt to call GET https://localhost:8080/api/v1/system without any credentials, the request should fail (HTTP 401)

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Sep 25, 2024 0:15am

Copy link
Contributor

@adamsachs adamsachs left a comment

Choose a reason for hiding this comment

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

👍 much safer

Copy link

cypress bot commented Sep 25, 2024

fides    Run #10125

Run Properties:  status check passed Passed #10125  •  git commit 7d2b0ffaff ℹ️: Merge ec7a332c4bdf079b7fa1bb4c861a03f104cb4236 into 155e1fd8bcf545599af273b06a62...
Project fides
Branch Review refs/pull/5326/merge
Run status status check passed Passed #10125
Run duration 00m 38s
Commit git commit 7d2b0ffaff ℹ️: Merge ec7a332c4bdf079b7fa1bb4c861a03f104cb4236 into 155e1fd8bcf545599af273b06a62...
Committer Adrian Galvan
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

@galvana galvana merged commit ba2e4ee into main Sep 25, 2024
37 of 39 checks passed
@galvana galvana deleted the PROD-2791-default-security-settings-env-to-prod branch September 25, 2024 01:38
Copy link

cypress bot commented Sep 25, 2024

fides    Run #10127

Run Properties:  status check passed Passed #10127  •  git commit ba2e4ee812: Default SecuritySettings.env to prod (#5326)
Project fides
Branch Review main
Run status status check passed Passed #10127
Run duration 00m 40s
Commit git commit ba2e4ee812: Default SecuritySettings.env to prod (#5326)
Committer Adrian Galvan
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

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.

2 participants