Open orangepizza opened 10 months ago
Thank you very much for the sharp eye.
Challenges field was actually bitmap, so it'll blow up at 8th challenge type actually. this currently have 3 types and 2 more if we start adding other types : onion-csr and dns-account-01 (think http-01 and tls-alpn for IP types are same enough)
I found multiple signed vs unsigned type mismatch (uint vs int) inside db keys and between db and model:
for example, but not limited to from table schema in test/db defines tinyint columns as signed and id is unsigned (as that's default),
but authzModel in model.go have using int64 for signed and tinyint columns are using uint8
While I don't think those fields will overflow anytime soon, (like most near one would be authz having 128 states or >128 challenge types), I think I'd better to notify this.