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
fail to create ns secret #453
Comments
@elnappo ^^^ |
Hmm, we haven't changed the length of this field. It was always 88 |
In my case all HMAC-SHA512 secrets have 89 for length. |
On nsupdate.info my nameserver update secrets are 88 chars long. @ThomasWaldmann do you have an idea? |
I tried to add a new domain: len = 88 Then I created a new configuration / new secret for the same domain: len = 88, too. So, I can't reproduce. |
@adrienb4 how do your generated secrets look like? |
is it related to #447? |
I just generated a new secret domain in CLI :
Len is 89 too
|
Hummm as much for me :/
Vscode misled me in error. The first character is 1 not 0. |
We have found the origin of the problem. We think when you have upgrade Django to 2.2.9, you introduce a bug with domain secret. Domain secret in str mode has a length of 88. In binary mode the length is 91. I also discovered that sqlite was not looking at the size of these fields.... You can put more than 88 characters in this case. Not possible with MySQL (my backend). |
ok, guess it is fixed by #454 - but do we now have invalid secret data in the (sqlite) db? |
good point, I assume that switching from django 1 to 2, make the secrets in sqlite invalid anyway, invalidating any comparison string vs bytes. |
Hi
We can't generate a ns secret.
Logs :
HMAC_SHA512 secret need to have a length to 89, but you set it to 88 in the last migration file.
Commit 0a625d6
Thx
The text was updated successfully, but these errors were encountered: