Using the latest binary (happyDomain master-3eb053aaebfc57ab28630991f6402834692b0d99
), when parsing an existing zone that contains G Suite record, or when creating a new G Suite record, the SPF record is getting a version of 0 ("v=spf0 include:_spf.google.com ~all"
), which is not a valid SPF record.
It looks like SPF.Analyze()
is never called, which leaves SPF.Version
uninitialized at 0
I just tried to use your NO_AUTH "trial" mode, both through your docker image, and through the nightly binary, but could not get either to work.
Looking closer, the issue was because you are setting the session cookie to Secure by default unless a local asset dev proxy is in use, and of course the server isn't doing HTTPs. The cookie then doesn't get saved, and the application cannot be accessed.
Either instructions should be included that the application has to be run through an HTTPS proxy, or the Secure flag shouldn't be set in NO_AUTH mode.
Relevant code: https://framagit.org/happyDNS/happydns/-/blob/fb7278982115fdcf089ca75d18617cbf7956680a/api/user_auth.go#L138