Skip to content

Update helpers.js CAA_CRITICAL flag=128 (#318)#319

Merged
tlimoncelli merged 3 commits intoStackExchange:masterfrom
ismaelperal:master
Feb 9, 2018
Merged

Update helpers.js CAA_CRITICAL flag=128 (#318)#319
tlimoncelli merged 3 commits intoStackExchange:masterfrom
ismaelperal:master

Conversation

@ismaelperal
Copy link
Copy Markdown
Contributor

CAA flag "Issuer Critical Flag" sets first bit (bit 0) to 1 where bit 0 is the 8th bit in the flag, so it's doing the change by left shift 7 positions the value 1.

#318 - RFC 6844

CAA flag "Issuer Critical Flag" sets first bit (bit 0) to 1 where bit 0 is the 8th bit in the flag, so it's doing the change by left shift 7 positions the value 1.
@captncraig
Copy link
Copy Markdown
Contributor

It seems there is a test failing. The value in https://github.com/StackExchange/dnscontrol/blob/master/pkg/js/parse_tests/014-caa.json needs to be updated.

Apply changes for Travis-CI, now caaflag must be 128 instead of 1.
@ismaelperal
Copy link
Copy Markdown
Contributor Author

@captncraig thanks, I wasn't aware of this tests. I've updated it.

Now I don't know the reason why it's failing:

after -> go run build/validate/validate.go
"ERROR: The following files are modified after go generate:
pkg/js/static.go"

Did I miss something else?

Thank you!

@tlimoncelli
Copy link
Copy Markdown
Contributor

That just means you need to run "go generate". Any changes to helpers.js require a run of "go generate" to embed helpers.js in the binary.

@tlimoncelli
Copy link
Copy Markdown
Contributor

By the way... I don't use CAA (yet) so when I created the integration tests, I was just guessing about what would be important. If you could look at https://github.com/StackExchange/dnscontrol/blob/master/integrationTest/integration_test.go#L410 and suggest improvements, please let fee free to add/change them.

@ismaelperal
Copy link
Copy Markdown
Contributor Author

@tlimoncelli Thanks, I will!

I think something is wrong in my development environment, sorry for the inconvenience and thanks for your help

@tlimoncelli
Copy link
Copy Markdown
Contributor

I think you'll be fine if you rebase then to "go generate". Let me know if you need assistance.

@tlimoncelli tlimoncelli merged commit 06404fd into StackExchange:master Feb 9, 2018
rblenkinsopp pushed a commit to rblenkinsopp/dnscontrol that referenced this pull request Aug 21, 2020
…StackExchange#319)

* Update helpers.js CAA_CRITICAL flag=128 (StackExchange#318)

CAA flag "Issuer Critical Flag" sets first bit (bit 0) to 1 where bit 0 is the 8th bit in the flag, so it's doing the change by left shift 7 positions the value 1.

* Change caa tests

Apply changes for Travis-CI, now caaflag must be 128 instead of 1.

* generated static.go and matrix.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants