-
Notifications
You must be signed in to change notification settings - Fork 88
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
Update DB schema to store target domains under domains
column
#68
Comments
I totally agree with both. Should we make these fields jsonb fields for consistency or |
A different column for each seems overkill, but better in line with how databases are supposed to work. Whichever you think is best. |
Another side effect of the current code is that a number of CA certs don't have a CN, and their subject columns are empty in the database. For example: observatory=> select count(id) from certificates where is_ca='t' and subject='';
count
-------
68 |
Yes a lot of CAs have an empty CN. |
Isn't this solved with the merging of #77 ? |
Yep. 👍 |
I propose that we change the DB schema to store all domains from the
subject
andsubjectaltname
x509 fields under a singledomains
columns, thus simplifying queries that want to look for both values (eg.WHERE subject ~ 'mozilla' OR subjectaltname ~ 'mozilla'
).The subject column which now contains the CN value only should be modified to contain the whole X509 subject line: CN, O, OU, C, ...
The text was updated successfully, but these errors were encountered: