Review: golang-github-hashicorp-go-secure-stdlib 0.1.0-1
Package Information
| Description | Stdlib for HashiCorp Secure products (Go library) These libraries are maintained by engineers in the HashiCorp's Secure division as a stdlib for its projects -- Vault, Vault plugins, Boundary, etc. -- to reduce code duplication and increase consistency. |
|---|---|
| Maintainer | Debian Go Packaging Team <team+pkg-go@tracker.debian.org> |
| Changed By | Lee Garrett <debian@rocketjump.eu> |
| Sponsor | lgarrett@rocketjump.eu |
| Distribution | unstable |
| Architecture | all |
| VCS | git: https://salsa.debian.org/go-team/packages/golang-github-hashicorp-go-secure-stdlib.git (browse) |
| Tracker | https://tracker.debian.org/pkg/golang-github-hashicorp-go-secure-stdlib |
| Uploaded | 8 hours ago |
New Package Report
.changes
| Date | Sun, 22 Nov 2026 16:09:26 +0100 |
|---|---|
| Source | golang-github-hashicorp-go-secure-stdlib |
| Version | 0.1.0-1 |
| Changed-By | Lee Garrett <debian@rocketjump.eu> |
| Architecture | source all |
| Distribution | unstable |
Changelog
golang-github-hashicorp-go-secure-stdlib (0.1.0-1) unstable; urgency=medium . * Initial release.
.dsc
| Priority | optional |
|---|---|
| Component | main |
| Package-List | golang-github-hashicorp-go-secure-stdlib-dev deb golang optional arch=all |
| Section | golang |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://github.com/hashicorp/go-secure-stdlib Upstream-Name: go-secure-stdlib Upstream-Contact: https://github.com/hashicorp/go-secure-stdlib/issues Files: * Copyright: 2020 HashiCorp License: MPL-2.0 Files: debian/* Copyright: 2026 Lee Garrett <debian@rocketjump.eu> License: MPL-2.0 Comment: Debian packaging is licensed under the same terms as upstream License: MPL-2.0 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Comment: On Debian systems, the complete text of the MPL-2.0 license can be found in "/usr/share/common-licenses/MPL-2.0".
DFSG Assistant LLM REVIEW 0 blocker, 1 important, 1 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 6 hours ago.
Report
DFSG NEW review for golang-github-hashicorp-go-secure-stdlib version 0.1.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - Packaging is of good quality: No
- Issues: 0 blocker, 1 important, 1 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
Everything in the tree is MPL-2.0: every one of the 72 Go files opens with // Copyright (c) HashiCorp, Inc. and // SPDX-License-Identifier: MPL-2.0, and the 15 LICENSE files (root plus 14 module directories) carry the same holder and the full MPL-2.0 text. debian/copyright is valid DEP-5, names HashiCorp for Files: * and the Debian uploader for debian/*, and points at /usr/share/common-licenses/MPL-2.0, which exists. No non-free terms, vendored third-party code or generated/binary files were found.
Packaging
The packaging mechanics are competent (debhelper compat 14 with dh-sequence-golang, correct Build-Depends and Depends for what is shipped, autopkgtest with @builddeps@, DEP-5 copyright, current Standards-Version, no patches). The one serious defect is that DH_GOLANG_EXCLUDES removes 13 of the 15 Go modules from build, test and install, so the -dev package named after the whole repository ships only parseutil and strutil, chosen for one reverse dependency (sops) rather than by what can be packaged.
Issues
important packaging 1. The -dev package ships only 2 of the 15 Go modules: DH_GOLANG_EXCLUDES drops 13 import paths ◂
-
Files:
debian/rules:4-17 -
Basis: inferred from what was read, not seen directly
-
Evidence:
# I only need parseutil and strutil for "sops". Feel free to remove entries # if you need them. export DH_GOLANG_EXCLUDES := \ awsutil \ base62 \ configutil \ fileutil \ gatedwriter \ kv-builder \ listenerutil \ mlock \ nonceutil \ password \ pluginutil \ reloadutil \ tlsutilREADME.md: "Each library is its own Go module"
-
Problem: At compat 14 dh-golang honours DH_GOLANG_EXCLUDES in
test,buildandinstall(DH_GOLANG_EXCLUDES_ALL defaults to true from compat 12; seesub installin /usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm). The installed tree under /usr/share/gocode/src/github.com/hashicorp/go-secure-stdlib therefore contains onlyparseutil/andstrutil/. The binary package is named after the repository and its description advertises the HashiCorp stdlib, but 13 of the 15 documented module import paths (awsutil, base62, configutil, fileutil, gatedwriter, kv-builder, listenerutil, mlock, nonceutil, password, pluginutil, reloadutil, tlsutil) are absent, so no Debian package can build against them; Debian offers an incomplete library under the name of the complete one. The exclusions are justified only by what the uploader's own consumer needs, not by anything in those modules being unpackageable. -
Fix: Drop DH_GOLANG_EXCLUDES (retain at most a test-only helper such as
configutil/testplugins) and add the Build-Depends and binary Depends that the remaining modules require (e.g. aws-sdk-go, go-kms-wrapping, go-multierror, hcl, mitchellh/cli, go-plugin, go-uuid, x/sys). If only these two modules are deliberately to be shipped, state that in the package description and changelog so consumers know which import paths are provided, and exclude only modules that really cannot be packaged.
minor packaging 2. uscan finds only upstream versions older than the packaged one ◂
- Files:
debian/watch - Basis: found by the review tooling's own checks
- Evidence: upstream
0.0~git20261119.220975c, packaged0.1.0 - Problem: The newest version uscan finds with
debian/watchis older than the version indebian/changelog, so the watch file does not find the packaged release: it may look in the wrong place, or the versions may need mangling to compare. - Fix: Check where
debian/watchlooks and how it mangles versions.
Verified ◂
- Inventoried the whole upstream tree: 15 module directories (each with its own go.mod/go.sum), the root files (.gitignore, README.md, CONTRIBUTING.md, LICENSE) and .github/{ISSUE_TEMPLATE,workflows}.
- All 72 .go files carry
// Copyright (c) HashiCorp, Inc.and// SPDX-License-Identifier: MPL-2.0; grep over the tree found no other Copyright/(C)/©/SPDX notices and no other holders. - All 15 LICENSE files (repository root plus 14 module directories) are the full MPL-2.0 text headed
Copyright (c) 2020 HashiCorp, Inc.; nonceutil/ is the only module without its own LICENSE copy, but its five .go files carry the same SPDX notice and debian/copyright'sFiles: *stanza states MPL-2.0. - Greps for MIT, BSD/redistribution wording, Apache, ISC, GPL/LGPL outside the MPL text, non-commercial or no-derivative wording, and
All rights reservedfound nothing; no vendored third-party source, no built binaries, minified code, archives or PDFs; .github/, README.md, CONTRIBUTING.md and .gitignore are plain text covered byFiles: *. - debian/copyright is DEP-5 with the canonical Format line, a
Files: debian/*stanza, and a stand-alone MPL-2.0 paragraph referring to /usr/share/common-licenses/MPL-2.0, which is present. - The prescan's holder check listed no file and found every holder declared; there is nothing from its list to account for.
- debian/control: Build-Depends exist in the archive at compatible versions (go-sockaddr 1.0.2-3, mapstructure 1.5.0+git20231216, go-glob 1.0.0-2, testify 1.12.1-1); dh-sequence-single-binary is provided by debhelper 14.5; ${misc:Depends} is present and the compat-14 relationship substvars are fine.
- The binary package's Depends (sockaddr, mapstructure, go-glob) match the imports of parseutil through parseutil strutil, the two modules actually installed.
- Source format 3.0 (quilt), no debian/patches, no maintainer scripts, no debian/tests; Testsuite: autopkgtest-pkg-go; autodep8's go template uses
Depends: @, @builddeps@, so testify is installed for the autopkgtest. - Standards-Version 4.7.4 matches the reviewing system's Policy (checklist latest 4.7.4); changelog is an initial
unstableentry dated Sun, 22 Nov 2026 (a Sunday) with no bug to close; Vcs-*, Homepage and upstream/metadata are present and consistent; gbp.conf'sdist = DEP14is valid. - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (MPL-2.0).
Not confirmed ◂
None.
Proposed changes ◂
None.
Review Information
rejected — allocated to mechtilde 6 hours ago, started 6 hours ago, completed 6 hours ago.
Final Comment
as maintainer requested