GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Harden the release scripts and connection string redaction by FreeAndNil · Pull Request #313 · apache/logging-log4net

Conversation

@FreeAndNil

@FreeAndNil FreeAndNil commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Follow-ups from the second security scan, on top of 3.4.0.

  • verify-release.sh/.ps1: KEYS was downloaded into the directory being
    verified, so a planted KEYS file was the one imported and its keys were
    accepted as release keys. Both scripts now download into a temporary
    keyring of their own. Not a regression, the bare wget line dates from 3.2.0.
  • The release scripts relied on $PSNativeCommandUseErrorActionPreference,
    which only exists from PowerShell 7.4. On 5.1 the assignment was a silent
    no-op and a failing gpg --verify was ignored. Added #Requires -Version 7.4,
    and release-review.adoc now installs PowerShell 7 and uses pwsh.
  • AdoNetAppender: connection string redaction hid password-bearing keywords,
    which missed Extended Properties and AccessToken. Replaced with an
    allowlist of diagnostic keywords.
  • Removed graphify and its 26 MB of generated output from the tree.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@FreeAndNil
FreeAndNil force-pushed the Feature/312-more-hardening branch from 711e9b9 to ddf09c1 Compare September 1, 2026 18:32
@FreeAndNil
FreeAndNil requested review from fluffynuts and gdziadkiewicz September 1, 2026 18:33
@FreeAndNil FreeAndNil added this to the 3.4.1 milestone Sep 1, 2026
@FreeAndNil FreeAndNil mentioned this pull request Sep 1, 2026
Stop network appenders stalling and losing events #314
Merged
@FreeAndNil
FreeAndNil force-pushed the Feature/312-more-hardening branch 2 times, most recently from f48a1d1 to 937df6b Compare September 1, 2026 19:40
FreeAndNil added 4 commits September 2, 2026 06:31
@FreeAndNil
fix a signature verification bypass in the release scripts
e7dd1d7
"wget URL" refuses to overwrite, so a KEYS file planted next to the
artifacts stayed put, the real download landed in KEYS.1, and the planted
keys were imported into the verification key ring. Artifacts signed by
whoever placed it then verified and the script exited 0.

Both scripts now download into the temporary key ring directory and never
read KEYS from the directory being verified.

Not a regression: the same fixture bypasses the pre-rewrite script, which
carried the bare wget line from 3.2.0 on.
@FreeAndNil
remove graphify
874ac2d
CLAUDE.md told AI coding agents to execute a "graphify" binary resolved
from PATH that is not vendored, pinned or checksummed anywhere in the tree.
The generated graphify-out/ (26 MB, two tracked files) goes with it, along
with its .gitignore block.
@FreeAndNil
require PowerShell 7.4 in the release scripts
4e761fd
All native command error handling in these scripts rests on
$PSNativeCommandUseErrorActionPreference, which exists only from 7.4. Under
Windows PowerShell 5.1 the assignment is a silent no-op, so a failing
gpg --verify was ignored and verify-release.ps1 reported success and exited
0, undoing the fail-closed work in 3.4.0.

The comments claimed 7.3, but there it was only an experimental feature.

release-review.adoc said "Windows (PowerShell)" and never installed
PowerShell 7, so it now installs it and runs the script with pwsh.
@FreeAndNil
redact connection strings by keyword allowlist
77af21a
Hiding password-bearing keywords missed Extended Properties, which nests a
whole connection string the parser returns as one opaque value, and keywords
such as AccessToken. Only keywords naming the server and account are kept.

The old test only covered a flat Password=, which is why this survived.
@FreeAndNil
FreeAndNil force-pushed the Feature/312-more-hardening branch from 937df6b to 77af21a Compare September 2, 2026 04:31
fluffynuts
fluffynuts approved these changes Sep 2, 2026
View reviewed changes
swebb2066
swebb2066 reviewed Sep 2, 2026
View reviewed changes

@swebb2066 swebb2066 left a comment

Copy link
Copy Markdown

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.

Temporarily disabling keyboxd in the configuration file seems to be the only way to avoid this, which is rather ugly

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread scripts/verify-release.ps1 Resolved

Uh oh!

There was an error while loading. Please reload this page.

@FreeAndNil
verify in a GnuPG home of its own, not with --keyring #313
2e5cc83
gpg ignores --keyring where common.conf sets use-keyboxd, so the import landed in
the reviewer's own key database and the verification ran against it. Measured: a
decoy signed by a key they already held verified with exit 0; with a throwaway
GNUPGHOME it is rejected with exit 2.

Two defects in the change itself, both found in review: "export X=$(mktemp -d)"
masks a failed mktemp under set -e and an empty GNUPGHOME is the default home, and
a failing gpgconf aborts the rest of the cleanup in both scripts.

Pester tests for the stages needing neither network nor gpg, run in CI. Pester 5.9
ships on all three runner images.

Reported by @swebb2066.
@FreeAndNil
FreeAndNil merged commit 34e4289 into master Sep 2, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@FreeAndNil
FreeAndNil deleted the Feature/312-more-hardening branch September 2, 2026 19:24
@FreeAndNil FreeAndNil mentioned this pull request Sep 3, 2026
Prevent the ANSI appender and %aspnet-request dropping events #316
Merged
This was referenced Oct 1, 2026
Bump the all-nuget-updates group with 5 updates drmoisan/TaskMaster#962
Closed
Bump the nuget-dependencies group with 13 updates SvenGroot/JumboCore#65
Closed
Bump log4net and 11 others SvenGroot/JumboCore#66
Closed
Bump log4net from 3.4.0 to 3.5.0 loresoft/KickStart#327
Merged
Bump log4net from 3.4.0 to 3.5.0 ParadoxGameConverters/PGCG.commonItems#941
Merged
Bump log4net from 3.3.1 to 3.5.0 bbtsoftware/AzureDevOpsPolicyConfigurator#253
Closed
Bump the dependencies group with 5 updates guibranco/CrispyWaffle#1000
Merged
Bump the nuget-minor-and-patch group with 1 update filmliga66/drive-mapper#16
Merged
Bump log4net from 3.4.0 to 3.5.0 OPCFoundation/UA-EdgeTranslator#143
Merged
Bump log4net from 3.4.0 to 3.5.0 overdrive1708/FastFileReadonly#19
Merged
Bump the all-updates group with 1 update frasermolyneux/demo-manager#78
Merged
Bump the dotnet-minor-and-patch group with 26 updates sheshankchandra/EggLedger#113
Closed
This was referenced Nov 12, 2026
Bump the nuget-dependencies group with 14 updates SvenGroot/JumboCore#78
Closed
Bump Crc32.NET and 12 others SvenGroot/JumboCore#79
Closed
Bump log4net from 3.3.2 to 3.5.0 jasonlandreth/GarminR10-BLE-Connector#6
Closed
DEV: Bump log4net from 3.4.0 to 3.5.0 origam/origam#5193
Merged
DEV: Bump log4net from 3.4.0 to 3.5.0 origam/origam#5194
Merged
DEV: Bump log4net from 3.4.0 to 3.5.0 origam/origam#5195
Merged
DEV: Bump log4net from 3.4.0 to 3.5.0 origam/origam#5196
Merged
DEV: Bump log4net from 3.4.0 to 3.5.0 origam/origam#5197
Merged
DEV: Bump log4net from 3.4.0 to 3.5.0 origam/origam#5198
Merged
Bump log4net from 3.3.0 to 3.5.0 chutch3/kenku#87
Merged
Bump log4net from 2.0.15 to 3.6.0 sg-scale/NETworkManager--2022.12.20.0#5
Open
Bump the minor-version-updates group with 4 updates PxTools/PCAxis.Menu.OracleDatamodelMenu#115
Merged
Bump log4net and 3 others PxTools/PCAxis.Metadata#108
Merged
Bump Crc32.NET and 12 others SvenGroot/JumboCore#80
Closed
Bump the nuget-dependencies group with 14 updates SvenGroot/JumboCore#81
Closed
Bump log4net and 4 others PxTools/PCAxis.Menu.MsSqlDatamodelMenu#114
Merged
Bump log4net and 3 others PxTools/PXWeb.SavedQuery.Oracle#119
Merged
Bump log4net and 4 others PxTools/PCAxis.Core#142
Merged
Bump log4net from 3.3.1 to 3.6.0 bbtsoftware/AzureDevOpsPolicyConfigurator#255
Open
Bump the minor-version-updates group with 4 updates PxTools/PCAxis.Menu#100
Merged
Bump log4net and 3 others PxTools/PCAxis.Query#113
Merged
Bump log4net and PCAxis.Core PxTools/PCAxis.Query#114
Closed
Bump log4net from 2.0.8 to 3.6.0 devsecops-lab-luis/demo-ghas-multilenguaje#27
Open
Dependency (dependabot/nuget): Bump log4net from 3.3.0 to 3.6.0 Nevergoodstudy/NETworkManager-macOS#24
Open
Bump the nuget-dependencies group with 14 updates SvenGroot/JumboCore#82
Open
Bump Crc32.NET and 12 others SvenGroot/JumboCore#83
Open
deps: Bump log4net from 3.3.2 to 3.6.0 OliverRetro/WavePlus#62
Open
Bump log4net from 3.3.1 to 3.6.0 bNobo/needabreak#176
Open
This was referenced Nov 19, 2026
Bump log4net from 3.3.2 to 3.6.0 jasonlandreth/GarminR10-BLE-Connector#7
Open
Bump Crc32.NET and 12 others SvenGroot/JumboCore#84
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@swebb2066 swebb2066 swebb2066 left review comments
@fluffynuts fluffynuts fluffynuts approved these changes
@gdziadkiewicz gdziadkiewicz Awaiting requested review from gdziadkiewicz

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.5.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@FreeAndNil @fluffynuts @swebb2066
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.