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

feat: Add proper search form & filtering out expired certs #13

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

BehnH
Copy link
Owner

@BehnH BehnH commented Jun 10, 2023

Adds the following optional query params to the API route:

  • excludeExpired which takes a boolean
    • This filters out expired certificates from the API response, and the underlying SQL query as a whole
    • The value of this is also stored in redis with the format non-expired-<query>
  • includeSql which takes a boolean
    • This will include the SQL statement sent to crt.sh's Postgres instance to gather the data

Redis has been updated, and all keys now follow the format <type>-<query>. type is either all or non-expired. The key also now includes the sql query in its value

Lastly, the search form has been updated and now looks much better (And also works as a form now)

CleanShot_2023-06-09_at_22.55.09.mp4

@BehnH BehnH self-assigned this Jun 10, 2023
@BehnH BehnH added the enhancement New feature or request label Jun 10, 2023
@vercel
Copy link

vercel bot commented Jun 11, 2023

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

Name Status Preview Comments Updated (UTC)
cert-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2023 11:28am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant