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

chore: disable sql connection when graphql is disabled #405

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

mikhailswift
Copy link
Member

What this PR does / why we need it

A user has expressed the desire to disable the SQL metadata store and graphql endpoints entirely, and just use Archivista to store and download attestations. This PR adds another config variable to support this, and disables both GraphQL and the SQL endpoint features if configured to do so.

Which issue(s) this PR fixes (optional)

(optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged)*

Fixes #

Acceptance Criteria Met

  • Docs changes if needed
  • Testing changes if needed
  • All workflow checks passing (automatically enforced)
  • All review conversations resolved (automatically enforced)
  • DCO Sign-off

Special notes for your reviewer:

Copy link
Member

@jkjell jkjell left a comment

Choose a reason for hiding this comment

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

Overall, this looks workable. I think the main addition would be an update to the README.md to describe the use case (and limitations) of leveraging Archivista as an attestation store only.

Copy link
Collaborator

@kairoaraujo kairoaraujo left a comment

Choose a reason for hiding this comment

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

There are some tests failing, I will also have a look.

Signed-off-by: Mikhail Swift <mikhail@testifysec.com>
@mikhailswift
Copy link
Member Author

Fixed the tests

@kairoaraujo kairoaraujo merged commit 9b9b4e9 into main Oct 25, 2024
11 checks passed
@kairoaraujo kairoaraujo deleted the chore/disable-sql branch October 25, 2024 18:30
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