2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00
Commit Graph

36478 Commits

Author SHA1 Message Date
Tom Krizek
5712f97c24 Merge branch 'tkrizek/python-codestyle' into 'main'
Enforce Python codestyle with black

See merge request isc-projects/bind9!6404
2022-06-08 10:48:09 +00:00
Tom Krizek
c2275d9f6e Move pylint CI job to precheck stage
Historically, some *.py files were generated, so Python checks required
running ./configure beforehand. This is no longer the case since v9_18,
so let's run the job ASAP without the unnecessary extra dependency on
autoconf job.
2022-06-08 10:46:42 +02:00
Tom Krizek
dae340a4a5 Remove flake8 linter for Python from CI
Python codestyle is now handled by black and other issues are checked by
pylint. Flake8 checking has been made redundant and is thus removed as
obsolete.
2022-06-08 10:46:38 +02:00
Tom Krizek
c9cb8ae9eb Auto-format Python files with black
This patch is strictly the result of:
$ black $(git ls-files '*.py')

There have been no manual changes.
2022-06-08 10:28:08 +02:00
Tom Krizek
5d2b7cab08 Enforce Python codestyle with black
Black is an opinionated tool for auto-formatting Python code so we no
longer have to worry about the codestyle.

For the codestyle decisions and discussion, refer to the upstream
documentation [1].

[1] https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html
2022-06-08 10:27:46 +02:00
Tom Krizek
5d64d05be9 Remove trailing whitespace
My editor doesn't like that!
2022-06-08 10:27:33 +02:00
Arаm Sаrgsyаn
2f88ce2d0d Merge branch '3392-cid-352554-null-pointer-dereference-dighost.c' into 'main'
Resolve "CID 352554: Null pointer dereferences (REVERSE_INULL) /bin/dig/dighost.c: 3056 in start_tcp()"

Closes #3392

See merge request isc-projects/bind9!6399
2022-06-07 10:26:49 +00:00
Aram Sargsyan
b7cb73160b Remove unneded NULL-checking
Fix an issue reported by Coverity by removing the unneded check.

    *** CID 352554:  Null pointer dereferences  (REVERSE_INULL)
    /bin/dig/dighost.c: 3056 in start_tcp()
    3050
    3051     	if (ISC_LINK_LINKED(query, link)) {
    3052     		next = ISC_LIST_NEXT(query, link);
    3053     	} else {
    3054     		next = NULL;
    3055     	}
    >>>    CID 352554:  Null pointer dereferences  (REVERSE_INULL)
    >>>    Null-checking "connectquery" suggests that it may be null, but it
           has already been dereferenced on all paths leading to the check.
    3056     	if (connectquery != NULL) {
    3057     		query_detach(&connectquery);
    3058     	}
    3059     	query_detach(&query);
    3060     	if (next == NULL) {
    3061     		clear_current_lookup();
2022-06-07 09:51:47 +00:00
Matthijs Mekking
215f89b669 Merge branch '3362-kasp-system-test-timing-issue' into 'main'
Fix another kasp test timing issue

Closes #3362

See merge request isc-projects/bind9!6375
2022-06-07 07:55:14 +00:00
Matthijs Mekking
827bba05a0 Retry quiet to deal with kasp test timing issue
In the cases where we test SOA serial updates and TTL updates, we check
if for "all zones loaded" to ensure the new zone content is loaded. But
this is the unsigned zone, the signed zone still needs to be produced.

There is thus a timing issue where the dig request comes in before
the signing process has finished.

Add a retry quiet to mitigate against it.
2022-06-07 09:33:01 +02:00
Mark Andrews
17f6d1a052 Merge branch 'marka-placeholder' into 'main'
Placeholder for [GL #3367]

See merge request isc-projects/bind9!6397
2022-06-06 01:09:24 +00:00
Mark Andrews
d7e157a29e Placeholder for [GL #3367] 2022-06-06 11:07:37 +10:00
Petr Špaček
da101c1386 Merge branch 'pspacek/danger-log-level' into 'main'
Flag new user-visible log messages for manual review

See merge request isc-projects/bind9!5980
2022-06-03 10:11:11 +00:00
Petr Špaček
b0f59cb5cb Flag new user-visible log messages for review
Messages with log levels INFO or higher are flagged for manual review.
Purpose of this check is to prevent debug logs to being released with
too-high log level.
2022-06-03 12:09:41 +02:00
Michał Kępień
ffc5ab9f5f Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.19.3' into 'main'
Set up version and release notes for BIND 9.19.3

See merge request isc-projects/bind9!6389
2022-06-03 09:26:58 +00:00
Michał Kępień
a300392fcc Set up release notes for BIND 9.19.3 2022-06-03 11:01:13 +02:00
Michał Kępień
75219d745e Update BIND version to 9.19.3-dev 2022-06-03 11:01:13 +02:00
Michał Kępień
f7c233e8e9 Update BIND 9 version for release v9.19.2 2022-06-02 18:36:49 +02:00
Michał Kępień
5078a71899 Add a CHANGES marker 2022-06-02 18:36:49 +02:00
Michał Kępień
731c93fc8c Merge branch 'michal/prepare-documentation-for-bind-9.19.2' into 'v9_19_2-release'
Prepare documentation for BIND 9.19.2

See merge request isc-private/bind9!405
2022-06-02 16:34:50 +00:00
Michał Kępień
cd736a334e Add release note for GL #3327 2022-06-02 18:27:40 +02:00
Michał Kępień
f4cfcd3389 Reorder release notes 2022-06-02 18:27:40 +02:00
Michał Kępień
008dfecbd1 Tweak and reword release notes 2022-06-02 18:27:40 +02:00
Michał Kępień
3913e59508 Prepare release notes for BIND 9.19.2 2022-06-02 18:27:40 +02:00
Petr Špaček
340f359971 Merge branch 'pspacek/rtd-style-changes' into 'main'
ReadTheDocs style changes

See merge request isc-projects/bind9!6385
2022-06-02 15:22:56 +00:00
Petr Špaček
833af31e7b ARM style change: render literals in black color
After enormous amount of bikesheding about colors we decided to override
ReadTheDocs default style for literals (``literal`` in the RST markup).

Justification:
- The default RTD "light red literal on white background" is hard to
  read.  https://webaim.org/resources/contrastchecker/ reports that text
  colored as rgb(231, 76, 60) on white background has insufficient
  contrast.
- The ARM has enormous amount of literals all over the place and thus
  one sentence can contain several black/red/black color changes. This
  is distracting. As a consequence, the ARM looks like a Geronimo
  Stilton book.

What we experimented with as replacements for red:
- Green - way too distracting
- Blue - too similar to "usual clickable link"
- Violet - too Geronimo Stilton style
- Brown - better but still distracting

After all the bikesheding we settled on black, i.e. the same as all
"normal" text. I.e. the color is now the same and literals are denoted
by monospaced font and a box around the literal. This has best contrast
and is way less distracting than it used to be.

This lead to a new problem: Internal references to "term definitions"
defined using directives like .. option:: were rendered almost the same
as literals:
- References: monospaced + box + bold + clickable
- Literals: monospaced + box To distinguish these two we added black
  dotted underline to clickable references.

I hereby declare the bikeshed painted.
2022-06-02 17:13:19 +02:00
Petr Špaček
a5dd98ac1b Allow wrapping for ARM table content
RTD style default never wraps <th> and <td> elements and that just does
not work for real sentences or any other long lines.

We can reconsider styling some tables separately, but at the moment we
do not have use for tables with long but unwrappable lines so it's
easier to allow wrapping globally.
2022-06-02 17:13:19 +02:00
Arаm Sаrgsyаn
b18b0e4119 Merge branch 'aram/catz-processing-skip-warnings-for-some-rrset-types' into 'main'
catz: don't log failure warnings when failure is expected for the type

See merge request isc-projects/bind9!6373
2022-06-02 10:32:05 +00:00
Aram Sargsyan
b8073cbe72 Add CHANGES and release note for [GL #3380] 2022-06-02 09:30:38 +00:00
Aram Sargsyan
73d6643137 Don't process DNSSEC-related and ZONEMD records in catz
When processing a catalog zone update, skip processing records with
DNSSEC-related and ZONEMD types, because we are not interested in them
in the context of a catalog zone, and processing them will fail and
produce an unnecessary warning message.
2022-06-02 08:42:25 +00:00
Mark Andrews
8dd0f3e52f Merge branch '3388-missing-indent-call' into 'main'
Resolve "Missing INDENT call"

Closes #3388

See merge request isc-projects/bind9!6379
2022-06-01 22:26:07 +00:00
Mark Andrews
03132c93ca Add missing INDENT call for UPDATE messages
Reported by Peter <pmc@citylink.dinoex.sub.org> on bind-users.
2022-06-02 08:05:39 +10:00
Ondřej Surý
c729f380db Merge branch 'fanf-tests-build-deps' into 'main'
A few build fixes for the unit tests

See merge request isc-projects/bind9!6369
2022-06-01 15:46:33 +00:00
Ondřej Surý
16595cdde0 Properly adjust the srcdir vs builddir paths
Affected unit tests load testdata from the srcdir.  Previously, there
was a kludge that chdir()ed to the tests srcdir, but that get removed
during refactoring.  Instead of introducing the kludge again, the paths
were fixed to be properly prefixed with TESTS_DIR as needed.
2022-06-01 17:08:37 +02:00
Ondřej Surý
714fe2f617 Don't list libtest.la headers in HEADERS variable
The libtest.la headers were installed in very weird place, in fact, we
don't need to list them in the HEADERS variable, listing them in SOURCES
is enough for autotools to figure out how to compile the convenience
library.
2022-06-01 17:08:37 +02:00
Ondřej Surý
90f0a765d8 Fix the path to tsan files in the tsan unit test job
The tsan unit test job still referenced lib/*/tests/tsan.*, change this
to the correct tests/*/tsan.*.
2022-06-01 17:08:37 +02:00
Ondřej Surý
dec845017b Add tests/isc/uv_wrap.h to Makefile.am
The automake was missing reference to uv_wrap.h, so it was not added to
the distribution.  Add uv_wrap.h to SOURCES for both doh and netmgr unit
tests.
2022-06-01 17:08:37 +02:00
Tony Finch
24d420f20b Add missing CFLAGS and LDADD to unit tests
A number of unit tests needed to be told where to find their libraries
and matching headers.
2022-06-01 17:08:37 +02:00
Artem Boldariev
a6d364deec Merge branch '3269-increase-server-start-timeout' into 'main'
Resolve #3269: Increase server start timeout for unit tests

Closes #3269

See merge request isc-projects/bind9!6356
2022-06-01 14:33:34 +00:00
Artem Boldariev
705f0d1ed1 Increase server start timeout for system tests
This commit increases server start timeout from 60 to 90 seconds in
order to avoid system test failures on some platforms due to inability
to initialise TLS contexts in time.
2022-06-01 15:27:36 +03:00
Tony Finch
f2dafeba60 Merge branch 'fanf-compression-relic' into 'main'
Clean up the dns_compress API

See merge request isc-projects/bind9!6270
2022-06-01 12:02:16 +00:00
Tony Finch
1d1114fe0a CHANGES note for [GL !6270]
[cleanup]	Simplify BIND's internal DNS name compression API. As
		RFC 6891 explains, it isn't practical to deploy new
		label types or compression methods, so it isn't
		necessary to have an API designed to support them.
		Remove compression terminology that refers to Internet
		Drafts that expired in the 1990s.
2022-06-01 13:00:40 +01:00
Tony Finch
64e801243e Clean up remaining references to global compression
It is simply called "compression" now, without any qualifiers. Also,
improve some variable names in dns_name_towire2() so they are not two
letter abbreviations for global something.
2022-06-01 13:00:40 +01:00
Tony Finch
1d807d84f1 Shrink decompression contexts
It's wasteful to use 20 bytes and a pointer indirection to represent
two bits of information, so turn the struct into an enum. And change
the names of the enumeration constants to make the intent more clear.

This change introduces some inline functions into another header,
which confuses `gcovr` when it is trying to collect code coverage
statistics. So, in the CI job, copy more header files into a directory
where `gcovr` looks for them.
2022-06-01 13:00:40 +01:00
Tony Finch
129a522d88 There can no longer be multiple compression methods
The aim is to get rid of the obsolete term "GLOBAL14" and instead just
refer to DNS name compression.

This is mostly mechanically renaming

from	dns_(de)compress_(get|set)methods()
to	dns_(de)compress_(get|set)permitted()

and replacing the related enum by a simple flag, because compression
is either on or off.
2022-06-01 13:00:40 +01:00
Tony Finch
e37b782c1a DNS name compression does not depend on the EDNS version
There was a proposal in the late 1990s that it might, but it turned
out to be unworkable. See RFC 6891, Extension Mechanisms for
DNS (EDNS(0)), section 5, Extended Label Types.

The remnants of the code that supported this in BIND are redundant.
2022-06-01 13:00:40 +01:00
Tony Finch
dded5a2612 Remove obsolete notes on name compression
These notes describe the initial compression design for BIND 9 in
1998/1999, when the IETF had some over-optimistic plans for using EDNS
to change the wire format of domain names. (Another example was
bitstring labels for IPv6 reverse DNS.) By the end of 2000 the EDNS
name compression schemes had been abandoned, and BIND 9's compression
code was rewritten to use a hash table.

There is nothing left of the implementation described here, and the
API functions are better described in `compress.h`, so these notes are
more misleading than helpful. Those who are interested in the past can
look at the version control history.
2022-06-01 13:00:40 +01:00
Arаm Sаrgsyаn
358940cd96 Merge branch 'aram/update-top-level-gitignore-add-ide-files' into 'main'
Update top-level .gitignore to ignore files generated by some IDEs

See merge request isc-projects/bind9!6361
2022-06-01 10:19:14 +00:00
Aram Sargsyan
ec3bc4142b Update top-level .gitignore to ignore files generated by some IDEs 2022-06-01 09:48:31 +00:00
Mark Andrews
fa7e0360cf Merge branch '3345-fix-keyless-example-generation' into 'main'
Resolve "Insecurity proof failed resolving 'a.b.keyless.example/A/IN' in dnssec test"

Closes #3345

See merge request isc-projects/bind9!6280
2022-06-01 00:36:15 +00:00