-
-
Notifications
You must be signed in to change notification settings - Fork 8
Test loading of a signed zone with a CNAME at the apex. (resolves #427) #558
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
Open
ximon18
wants to merge
4
commits into
main
Choose a base branch
from
load-signed-apex-cname
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d7ce37c
Test loading of a signed zone with a CNAME at the apex. (resolves #427)
ximon18 fad8e9b
Simplify the test.
ximon18 c06a4d2
Merge branch 'main' into load-signed-apex-cname
ximon18 2bf009b
Merge branch 'main' into load-signed-apex-cname
ximon18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
integration-tests/load-signed-apex-cname/example.test.zone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| example.test. 5 IN SOA ns1.example.test. mail.example.test. 2026033000 60 60 3600 5 | ||
| example.test. 5 IN NS example.test. | ||
| example.test. 5 IN NS ns1.example.test. | ||
| example.test. 3600 IN RRSIG DNSKEY 13 2 3600 20260413114923 20260329114923 45183 example.test. V7x/78Nnl5CE638nclvTbEpZkHXG10YQ/8ZeM6rQPbboQ8qKkw6hiB61 gG/qK3DPcDVSgAQoy/Q+jCzdA26+/A== | ||
| example.test. 5 IN RRSIG NSEC 13 2 5 20260413114923 20260329114923 58227 example.test. ijvwb5F9cTLQGyRn+qMaAhaumYolU47CZOsLLmL0BZpRWtj3ACG7zfmQ yEY9ZqzbLw5TkzR0DxvnNbEugR93mg== | ||
| example.test. 5 IN RRSIG SOA 13 2 5 20260413114923 20260329114923 58227 example.test. zKi74SYUJ9wppn5NAllR3iIUwBuMFEYucyX5RQp0ym+CUdm39b6l8zeW 47EdX6ObU1HGVdMGqlN2+8Gv9Rks4g== | ||
| example.test. 5 IN RRSIG NS 13 2 5 20260413114923 20260329114923 58227 example.test. DsiNh0onbIOYxxt7Ue3ypgV5RR5JQ05WC/r+bd2aImQz7iRgb/dIUXgv VTXOzMNasO2iSFKi6e8q82uS8PqlCQ== | ||
| example.test. 3600 IN DNSKEY 257 3 13 iKHfcKwR2R+o+qtzK06SvmD8nWuJwvS3dJQHD7I/r3R6dj+0lrB889V0 0X0m6s74g0g1je2gBB9jc6W5ETgi2Q== | ||
| example.test. 3600 IN DNSKEY 256 3 13 z//8PEhbP9uJMaWIGqLcjfv5V+67VUFBZpTTVnQAmBn+V8Ln9ADzAhLk 6oBTfIZLpLOXMuP9Sfv+hXZqGjFWEw== | ||
| example.test. 5 IN NSEC cname.example.test. NS SOA RRSIG NSEC DNSKEY | ||
| cname.example.test. 5 IN RRSIG NSEC 13 3 5 20260413114923 20260329114923 58227 example.test. N6K4dyRAig3Pmm4vublYQbs6uIYcBl9iQ6TKlyH8C5Z0viEwcQ9nwe7m 1oN+ki2ESE0UrJQL5RIXeftAH8ylMA== | ||
| cname.example.test. 5 IN RRSIG CNAME 13 3 5 20260413114923 20260329114923 58227 example.test. moIDfx3j1INEaIeaBYXY5TMJ+x9h7fVh3vgA3Y7vXhxKFwTLeQwP6PK5 cRJHMU3qyP6sRABPYMLxjCefFccYDw== | ||
| cname.example.test. 5 IN CNAME nlnetlabs.nl. | ||
| cname.example.test. 5 IN NSEC example.test. CNAME RRSIG NSEC | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Making reusable composite actions documented at | ||
| # https://docs.github.com/en/actions/tutorials/create-actions/create-a-composite-action#creating-a-composite-action-within-the-same-repository | ||
| name: 'Load a zonefile containing a signed apex CNAME' | ||
| description: 'Load a zonefile containing a signed apex CNAME' | ||
| defaults: | ||
| # see: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#defaultsrunshell | ||
| run: | ||
| shell: bash --noprofile --norc -eo pipefail -x {0} | ||
| inputs: | ||
| log-level: | ||
| description: The level of logging that Cascade should output. | ||
| required: false | ||
| default: debug | ||
| type: choice | ||
| options: | ||
| - error | ||
| - warning | ||
| - info | ||
| - debug | ||
| - trace | ||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| #- uses: ./.github/actions/prepare-systest-env | ||
| - uses: ./.github/actions/setup-and-start-cascade | ||
| with: | ||
| log-level: ${{ inputs.log-level }} | ||
|
|
||
| - name: Add the zone | ||
| run: | | ||
| INTEGRATION_TEST_DIR="${PWD}/integration-tests/load-signed-apex-cname" | ||
| cp "${INTEGRATION_TEST_DIR}/example.test.zone" /tmp/ | ||
| cascade zone add --policy default --source /tmp/example.test.zone example.test | ||
|
|
||
| - name: Wait for zone to be published | ||
| run: | | ||
| timeout=10 # seconds | ||
| start=$(date +%s) | ||
| until cascade zone status example.test | grep -q "Published version"; do | ||
| if (($(date +%s) > (start + timeout))); then | ||
| cascade zone status example.test | ||
| echo "timeout: zone status did not report published zone available" >&2 | ||
| exit 1 | ||
| fi | ||
| sleep 1 | ||
| done | ||
|
|
||
| - name: Print log files on any failure in this job | ||
| uses: ./.github/actions/print-logfiles | ||
| if: failure() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should have a setup for these tests where the input zone and the output zone are the same. It needs storing some keys somewhere, a policy with Keep, and faketime.