2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 21:47:59 +00:00

36567 Commits

Author SHA1 Message Date
Michał Kępień
73543a4aa7 Merge branch '3143-add-a-note-to-the-arm-on-dnstap-and-resolver-traffic' into 'main'
Add a note to the ARM on dnstap & resolver traffic

Closes #3143

See merge request isc-projects/bind9!6472
2022-06-22 13:11:51 +00:00
Michał Kępień
1f5c2ea8e5 Check IPs in a dnstap capture of resolver traffic
Add a system test that checks whether IP addresses are present in a
dnstap capture of resolver traffic if "query-source" is explicitly set.
2022-06-22 15:09:43 +02:00
Michał Kępień
366f7a938b Add a note to the ARM on dnstap & resolver traffic
Warn users that server-side IP addresses are not stored in dnstap
captures of resolver traffic unless "query-source(-v6)" is explicitly
set, explaining why it is so.
2022-06-22 15:09:43 +02:00
Michal Nowak
a2f25b9635 Merge branch 'mnowak/add-system_gcc_bullseye_unstable_amd64-ci-job' into 'main'
Add system:gcc:bullseye:unstable:amd64 CI job

See merge request isc-projects/bind9!6461
2022-06-22 12:49:07 +00:00
Michal Nowak
db1a72d581
Put default-triggering-rules anchor in alphabetical order 2022-06-22 14:42:32 +02:00
Michal Nowak
0629f53431
Rename schedules_tags_web_triggering_rules anchor
The schedules_tags_web_triggering_rules anchor name should match it's
content, hence api_schedules_tags_triggers_web_triggering_rules anchor
name.
2022-06-22 14:42:32 +02:00
Michal Nowak
fbc1345dd7
Extract API, schedules, triggers, and web triggering rules 2022-06-22 14:42:32 +02:00
Michal Nowak
d606f39022
Add system:gcc:bullseye:unstable:amd64 CI job
Without this CI job long pytest jobs are not being run in the CI.
2022-06-22 14:42:31 +02:00
Michał Kępień
77d89c0dc5 Merge branch '3309-fix-destination-port-extraction-for-client-queries' into 'main'
Fix destination port extraction for client queries

Closes #3309

See merge request isc-projects/bind9!6191
2022-06-22 11:46:25 +00:00
Michał Kępień
58c3513fa6 Add CHANGES entry for GL #3309 2022-06-22 13:45:46 +02:00
Mark Andrews
8d8396c3a7 Check that the UDP destination port is logged via dnstap 2022-06-22 13:45:46 +02:00
Michał Kępień
2f945703f2 Fix destination port extraction for client queries
The current logic for determining the address of the socket to which a
client sent its query is:

 1. Get the address:port tuple from the netmgr handle using
    isc_nmhandle_localaddr().

 2. Convert the address:port tuple from step 1 into an isc_netaddr_t
    using isc_netaddr_fromsockaddr().

 3. Convert the address from step 2 back into a socket address with the
    port set to 0 using isc_sockaddr_fromnetaddr().

Note that the port number (readily available in the netmgr handle) is
needlessly lost in the process, preventing it from being recorded in
dnstap captures of client traffic produced by named.

Fix by first storing the address:port tuple returned by
isc_nmhandle_localaddr() in client->destsockaddr and then creating an
isc_netaddr_t from that structure.  This allows the port number to be
retained in client->destsockaddr, which is what subsequently gets passed
to dns_dt_send().
2022-06-22 13:45:46 +02:00
Michał Kępień
58102aff42 Merge branch '3320-rewrite-arm-dnssec-chapter' into 'main'
Rewrite DNSSEC ARM Chapter

Closes #3320

See merge request isc-projects/bind9!6296
2022-06-22 11:44:11 +00:00
Petr Špaček
146c125988 Mention zone storage in the DNSSEC chapter
Let's not duplicate texts, link to description elsewhere instead.
2022-06-22 13:37:18 +02:00
Suzanne Goldlust
6b1ad4dcfb Minor grammar improvements in the Signing chapter of the DNSSEC Guide 2022-06-22 13:37:18 +02:00
Matthijs Mekking
f721986589 Add a section about key rollover
Describe how to do key rollovers with dnssec-policy. Update the
revert to unsigned recipe in the DNSSEC guide.
2022-06-22 13:37:18 +02:00
Petr Špaček
7d25027898 Deduplicate Manual Signing between DNSSEC chapter and DNSSEC Guide
The two procedures were essentially the same, but each instance was
missing some details from the other. They are now combined into one text
in the DNSSEC Guide and linked from DNSSEC chapter.
2022-06-22 13:37:18 +02:00
Petr Špaček
7e96801841 Deduplicate key filename description in the DNSSEC Guide
Third time ...
2022-06-22 13:37:18 +02:00
Petr Špaček
3eb6898a14 Use ECDSAP256SHA256 in DNSSEC signing examples 2022-06-22 13:37:18 +02:00
Petr Špaček
915237a28f Use code-block directive for complete command lines
Minor rendering nit, not really important.
2022-06-22 13:37:18 +02:00
Petr Špaček
1dcc34f076 Deduplicate key filename description in the DNSSEC chapter 2022-06-22 13:37:18 +02:00
Petr Špaček
5ba618fd28 Move Private Type Records in DNSSEC chapter to higher level
Private Type Records are not specific to manually signing, so it is
better to move it to the end of the "Zone Signing" section shared by all
three methods.
2022-06-22 13:37:18 +02:00
Petr Špaček
bffa3063f0 Rewrite DNSSEC Validation subchapter in the ARM
Mostly deduplicating and linking information across the ARM.
Generally people should not touch it unless they what they are doing, so
let's try to discourage them a bit.
2022-06-22 13:37:18 +02:00
Petr Špaček
29030fa5d7 Add hints about secure delegation to DNSSEC chapter of the ARM
Let's not duplicate texts from elsewhere, just point to different parts
of documentation.
2022-06-22 13:37:18 +02:00
Petr Špaček
28a533322b Reorder chapters about Zone Signing in the DNSSEC chapter of ARM
Let's make more automated methods more prominent:
- KASP first
- dynamic updates second
- command-line tools only as last resort
2022-06-22 13:37:18 +02:00
Petr Špaček
744763f8f2 Rewrite KASP section of DNSSEC chapter in the ARM
The goal is simplicity. Copy&paste to do the right thing, or read
referenced material and make up your mind if you need specialities.

NSEC discussion is already present in the DNSSEC guide so I merged
KASP examples with example for NSEC3 and removed NSEC text from the
DNSSEC chapter.
2022-06-22 13:37:18 +02:00
Petr Špaček
0dc9c33149 Rewrite introduction for DNSSEC chapter of the ARM
I've attempted to drop most of DNSSEC-specific jargon from the intro
paragraph, and to convince readers to read on.
2022-06-22 13:37:18 +02:00
Matthijs Mekking
93601d8325 Use NSEC3 guidance values in nsec3 config examples
Use best practice values in examples that follow new guidance from
draft-ietf-dnsop-nsec3-guidance:

   ; SHA-1, no extra iterations, empty salt:
   ;
   bcp.example. IN NSEC3PARAM 1 0 0 -
2022-06-22 13:37:18 +02:00
Matthijs Mekking
024c15f03b Move "DNSSEC" chapter before "Advanced" and "Security"
DNSSEC is mainstream nowadays, so let's give it more attention.
2022-06-22 13:37:18 +02:00
Matthijs Mekking
7824c5c967 Move Dynamic Zones section up
Move this section up so that DNSSEC signing topics are grouped together
(and not split by the DNSSEC Validation chapter).
2022-06-22 13:37:18 +02:00
Matthijs Mekking
be54c08d2b Rewrite Dynamic Zones section
Restructure the section about dynamic zones and automatic signing:
- Focus on dynamic zones with 'auto-dnssec allow;'.
- Add a section about multi-signer models.
- Move NSEC3 related topics into one section.
- Remove any text that does not concern dynamic zones (mostly duplicate
  text anyway).
2022-06-22 13:37:18 +02:00
Matthijs Mekking
71490a5a2d Add a section about Denial of Existence
Move bits from the "DNSSEC, Dynamic Zones, and Automatic Signing"
about denial of existence to a separate section below the "Key and
Signing Policy" section.

Add a brief introduction about denial of existence to this section.
2022-06-22 13:37:18 +02:00
Matthijs Mekking
34dea43f9c Rewrap a paragraph in DNSSEC Validation section
No textual changes, just rewrapping to 80 characters.
2022-06-22 13:37:18 +02:00
Matthijs Mekking
a1c95e8e7c Rewrite DNSSEC chapter - signing
Restructure the first part of the DNSSEC chapter that deals with zone
signing. Put dnssec-policy first. Mention Key and Signing Policy.
Only then talk about the DNSSEC tools.
2022-06-22 13:37:18 +02:00
Matthijs Mekking
fb24454c58 Nit changes in introduction of DNSSEC chapter
DNSSEC-bis is an uncommon term. Other servers are typically resolvers
and they usually are configured with the root key.
2022-06-22 13:37:18 +02:00
Michał Kępień
f82923a395 Merge branch 'ondrej-fix-out-of-tree-artifacts' into 'main'
Move the out of tree directory into the project directory

See merge request isc-projects/bind9!6377
2022-06-22 11:01:25 +00:00
Michał Kępień
2cd20ee370 Clean up convert-trs-to-junit.py invocations
- Use absolute paths when invoking the convert-trs-to-junit.py script
    so that it also works correctly for out-of-tree and tarball-based
    test jobs.

  - Quote the variables used in convert-trs-to-junit.py invocations to
    future-proof the code.

  - Use "&&" instead of ";" in shell pipelines invoking the
    convert-trs-to-junit.py script in order to prevent "source" errors
    from being silently ignored.

  - Ensure convert-trs-to-junit.py is invoked from the correct directory
    for out-of-tree and tarball-based unit test jobs by adding
    appropriate "cd" invocations.

  - Ensure the convert-trs-to-junit.py invocations are always the last
    step in each 'after_script', in order to run that script from the
    correct directory for out-of-tree and tarball-based system test jobs
    and to ensure that any potential errors in that script do not
    prevent more important steps in the 'after_script' from being
    executed.
2022-06-22 12:59:33 +02:00
Michał Kępień
e6aebf10cc Move out-of-tree workspace back to $CI_PROJECT_DIR
Out-of-tree build & test jobs currently defined in GitLab CI use
/tmp/out_of_tree_workspace as the working directory.  This requires
juggling that directory around as it gets passed from the build job to
the test jobs and then again after the test jobs are finished, so that
artifacts can be collected for the purpose of investigating test
failures.  The original intention of doing this was to ensure that
bin/tests/system/run.sh does not rely on being executed from within a
Git working copy (which happens e.g. if the out-of-tree workspace is a
subdirectory of $CI_PROJECT_DIR, i.e. the path into which GitLab
Runner clones the project in each job).

However, even with these complications in place, not all possible
scenarios that should be handled properly by the system test framework
(e.g. invoking a given test one time after another from the same
out-of-tree build directory) are tested in GitLab CI anyway.  Meanwhile,
the requirement for moving the out-of-tree workspace into
$CI_PROJECT_DIR in the 'after_script' for each out-of-tree job makes
these jobs less robust than they could be; for example, if any step in
the 'after_script' returns a non-zero exit code, the job's artifacts
will not include the out-of-tree workspace, hindering troubleshooting.

Simplify job definitions in .gitlab-ci.yml by moving the workspace used
by out-of-tree build & test jobs back to a subdirectory of
$CI_PROJECT_DIR.  Whether the out-of-tree workspace exists within a Git
working copy or not does not matter for Autotools, so this is considered
to be a reasonable trade-off in terms of test coverage.
2022-06-22 12:59:33 +02:00
Michal Nowak
cc6dc3c73e Merge branch 'mnowak/ubuntu-22.04-jammy-jellyfish' into 'main'
Add Ubuntu 22.04 LTS (Jammy Jellyfish)

See merge request isc-projects/bind9!6446
2022-06-22 08:57:40 +00:00
Michal Nowak
06c591667e
Do not run Ubuntu 18.04 jobs in MR-triggered pipelines
With the addition of Ubuntu 22.04 three more CI jobs were added. To
compensate for that, move Ubuntu 18.04 jobs out of MR-triggered
pipelines to schedule-triggered ones.

Also, move --disable-geoip ./configure options from Ubuntu 18.04 to
Ubuntu 20.04 jobs to keep these options in the more frequent
MR-triggered pipelines.
2022-06-22 10:56:50 +02:00
Michal Nowak
4c2af3bdfa
Add Ubuntu 22.04 LTS (Jammy Jellyfish) 2022-06-22 10:56:50 +02:00
Matthijs Mekking
c31d2628b6 Merge branch '3412-system-test-passthru-virtualenv-perl5lib' into 'main'
System tests pass through virtualenv and perlmods

Closes #3412

See merge request isc-projects/bind9!6458
2022-06-22 08:32:48 +00:00
Matthijs Mekking
53eb127be1 System tests pass through virtualenv and perlmods
Have system tests use required Python (dnspython) and PERL modules
(Digest::HMAC and Net::DNS) from user directories, avoid using
privileges.

Note: The pythonenv must be setup to use the same version of python as
the test uses, for example /usr/bin/python.

Thanks to Stacey Marshall.
2022-06-22 09:39:51 +02:00
Matthijs Mekking
95c32b9a54 Merge branch '3416-document-key-lifetime-min-length' into 'main'
Document what is a too short key lifetime

Closes #3416

See merge request isc-projects/bind9!6460
2022-06-21 15:34:23 +00:00
Matthijs Mekking
c47735b86b Document what is a too short key lifetime
To give a hint to users that get an error that the key lifetime is
shorter than the time it takes to do a rollover.
2022-06-21 16:18:49 +02:00
Matthijs Mekking
cc7f132ff8 Merge branch '3397-document-interaction-dnssec-update-config-options' into 'main'
Document where updates and DNSSEC records are stored

Closes #3397

See merge request isc-projects/bind9!6457
2022-06-20 12:12:50 +00:00
Matthijs Mekking
c80531758c Add comment on DNSSEC signing zone configuration
I was slightly confused here, so IMO it can use a comment.
2022-06-20 11:18:46 +02:00
Matthijs Mekking
8860f6b4ff Document where updates and DNSSEC records are stored
Make clear that inline-signing stores DNSSEC records in a signed
version of the zone, using the zone's filename plus ".signed" extension.

Tell that dynamic zones store updates in the zone's filename.

DNSSEC records for dynamic zones also go in the zone's filename, unless
inline-signing is enabled.

Then, dnssec-policy assumes inline-signing, but only if the zone is
not dynamic.
2022-06-20 11:18:46 +02:00
Michal Nowak
84854b3f22 Merge branch 'mnowak/bump-clang-to-version-14' into 'main'
Update clang to version 14

See merge request isc-projects/bind9!6368
2022-06-16 16:14:32 +00:00
Michal Nowak
bd17dec045
Extract Clang version to $CLANG_VERSION
Extracting Clang version helps with updating Clang version in one place
and not missing one of its instances.
2022-06-16 17:21:12 +02:00