golang-github-hashicorp-go-secure-stdlib 0.1.0+git20261119.220975c-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 | 3 hours ago |
New Package Report
.changes
| Version | 0.1.0+git20261119.220975c-1 |
|---|---|
| Changed-By | Lee Garrett <debian@rocketjump.eu> |
| Architecture | source all |
| Distribution | unstable |
| Date | Sun, 22 Nov 2026 21:02:15 +0100 |
| Source | golang-github-hashicorp-go-secure-stdlib |
Changelog
golang-github-hashicorp-go-secure-stdlib (0.1.0+git20261119.220975c-1) unstable; urgency=medium . * Initial release.
.dsc
| Section | golang |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | golang-github-hashicorp-go-secure-stdlib-dev deb golang optional arch=all |
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, 0 important, 2 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 1 hour ago.
Report
DFSG NEW review for golang-github-hashicorp-go-secure-stdlib version 0.1.0+git20261119.220975c-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 0 blocker, 0 important, 2 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
The tree is DFSG-free: every file is MPL-2.0 (per-file SPDX-License-Identifier: MPL-2.0 headers, the full MPL-2.0 text in LICENSE and in every module's LICENSE), with no non-free terms, no licence conflicts and no vendored third-party code. debian/copyright is in DEP-5 format and the licence short name is right. It is not complete: almost every .go file carries Copyright IBM Corp. 2020, 2025, a holder the file never names; it credits only HashiCorp. Since the -dev package installs the sources verbatim with those notices intact, Policy 2.3 does not require copying them, so this is a completeness problem, not a blocker.
Packaging
Control, rules, changelog, DEP-3 patch and autopkgtest wiring are in order: compat 14 with dh-sequence-golang, dependencies cover exactly what the shipped packages import and all four exist in the archive, Standards-Version 4.7.4 matches Policy 4.7.4.1, the single patch only adjusts parseutil test expectations for newer Go, and Testsuite: autopkgtest-pkg-go gets its test dependencies from @builddeps@. The one defect is scope: rules excludes 22 of the 24 upstream modules, so the -dev package ships only parseutil and strutil while its description promises the whole stdlib.
Issues
minor licensing 1. Files: * names only HashiCorp, but every .go source is copyrighted by IBM Corp. 2020, 2025 ◂
- Files:
debian/copyright:6-8,parseutil/parseutil.go:1,parseutil/normalize.go:1,strutil/strutil.go:1,awsutil/clients.go:1,listenerutil/handler.go:1,plugincontainer/examples/container/Dockerfile:1 - Basis: checked, in the package or with a reference tool
- Evidence: debian/copyright
Files: */Copyright: 2020 HashiCorp, against e.g. parseutil/normalize.go:1// Copyright IBM Corp. 2020, 2025and// SPDX-License-Identifier: MPL-2.0; the same pair of lines heads about 120 files from awsutil/ through toggledlogger/, and even the examples' Dockerfile and buf.gen.yaml. Each module's LICENSE saysCopyright (c) 2020 HashiCorp, Inc.(random/LICENSE: 2024). - Problem: The copyright field of the catch-all stanza is materially wrong: the code itself is IBM Corp.'s (HashiCorp's acquisition), while only the LICENSE files are HashiCorp's. Policy 2.3 does not require this notice in debian/copyright: the files are shipped in the -dev package only as unchanged plain-text .go sources with their own notices in them (
/usr/share/gocode/src/github.com/hashicorp/go-secure-stdlib/..., dh-golang copies sources verbatim), so none of the three conditions of Policy 2.3 holds. It is still something a complete copyright file should record. - Fix: Add a stanza for the code, e.g.
Files: *withCopyright: 2020, 2025 IBM Corp.and2020, 2024 HashiCorp, Inc., keeping MPL-2.0.
minor packaging 2. -dev package ships only parseutil and strutil of the 24 upstream modules, which its description does not disclose ◂
- Files:
debian/rules:5-27,debian/control:29-33 - Basis: checked, in the package or with a reference tool
- Evidence:
export DH_GOLANG_EXCLUDES := awsutil base62 configutil cryptoutil fileutil gatedwriter httputil kv-builder listenerutil mlock nonceutil password permitpool plugincontainer pluginutil random regexp reloadutil temperror tlsutil toggledloggerwith the commentI only need parseutil and strutil for "sops", againstDescription: Stdlib for HashiCorp Secure products (Go library). - Problem: At compat 14 DH_GOLANG_EXCLUDES_ALL defaults to on, so dh-golang skips these paths at install as well as at build (verified in /usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm,
sub install). The resulting -dev package provides only github.com/hashicorp/go-secure-stdlib/{parseutil,strutil}; a user or package importing .../listenerutil, .../password or any other module named in the Description and README gets "cannot find package" even though the -dev package is installed. The narrowing is deliberate but invisible to consumers. - Fix: Either ship all modules (adding the Build-Depends their imports need, e.g. golang-github-aws-aws-sdk-go-dev, golang-github-hashicorp-go-hclog-dev, grpc), or keep the two modules and say so in the long Description ("This package ships the parseutil and strutil modules only").
Verified ◂
- debian/copyright read in full: DEP-5, correct Format URL,
Files: *(MPL-2.0),Files: debian/*, and a stand-alone MPL-2.0 paragraph (Exhibit A notice plus a pointer to /usr/share/common-licenses/MPL-2.0, which exists). - Whole tree grepped (excluding .pc/) for Copyright/(C)/SPDX/Licensed under/Permission is hereby granted/GNU/Apache/Mozilla/public domain/All rights reserved; every .go, .proto, Dockerfile, buf.gen.yaml and YAML file is MPL-2.0, either
Copyright IBM Corp. 2020, 2025orCopyright (c) HashiCorp, Inc.. - Every file in the prescan's missing-holder list (awsutil/clients.go through tlsutil/tlsutil.go, including all _test.go, configutil/testplugins/aead/main.go, plugincontainer/examples/container/, plugincontainer/testdata/Dockerfile, nonceutil/, random/, toggledlogger/*) is ordinary upstream source, test or config of this repository carrying the IBM Corp. header; none is third-party or vendored code.
- plugincontainer/examples/container/proto/counter.pb.go and storage.pb.go (plus the *_grpc.pb.go files) are committed protoc-gen-go v1.28.1 output generated from counter.proto and storage.proto in the same directory, which are present; headers
Copyright (c) HashiCorp, Inc., MPL-2.0. - No binary blobs, images, fonts, PDFs, archives or minified code anywhere in the tree (glob over those extensions returned nothing); no vendor/ directory; all 24 subdirectories are separate Go modules (go.mod each) and the root module has no Go packages.
- dh-golang at compat 14 (DH_GOLANG_EXCLUDES_ALL default on) installs the unchanged .go sources of parseutil/ and strutil/ into /usr/share/gocode/src/github.com/hashicorp/go-secure-stdlib/, notices included.
- Build and binary dependencies checked against the archive: golang-github-hashicorp-go-sockaddr-dev 1.0.2-3, golang-github-mitchellh-mapstructure-dev 1.5.0+git20231216.8508981-1, golang-github-ryanuber-go-glob-dev 1.0.0-2, golang-github-stretchr-testify-dev 1.12.1-1 all exist; these and the standard library are the only imports of the shipped packages and their tests (parseutil.go:18-20, strutil.go:14, the *_test.go files).
- debian/patches/fix-normalizeaddr-test-strict-ip-literal.patch has a complete DEP-3 header (Description, Author, Forwarded: no, Last-Update: 2026-11-22) and only changes expected errors/results in parseutil/normalize_test.go; series lists it alone.
- Standards-Version 4.7.4 against Policy 4.7.4.1 (first two components match, so current).
- Testsuite: autopkgtest-pkg-go: autodep8's go generator (/usr/share/autodep8/support/go/generate) emits
Depends: @, @builddeps@, so testify and the other Build-Depends are available to the test. - dh-sequence-single-binary is provided by debhelper (Sequence/single_binary.pm) and the source builds exactly one binary package, so its use is valid.
- debian/changelog: single initial-release entry, distribution unstable, date 2026-11-22 (a Sunday); debian/source/format 3.0 (quilt); gbp.conf
dist = DEP14is gbp's branch-derived distribution value; debian/upstream/metadata and salsa-ci.yml are consistent with the Homepage/Vcs fields. - uscan found the packaged version as the newest upstream release (upstream
0.1.0+git20261119.220975c, packaged0.1.0+git20261119.220975c). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (MPL-2.0).
Not confirmed ◂
None.
Proposed changes ◂
None.
Uploader's response to the LLM review
The uploader was emailed about the review 1 hour ago.
Other Reviews of this Package
| Version | Hash | Allocated | Completed | Reviewer | Status | Details |
|---|---|---|---|---|---|---|
| 0.1.0-1 | 2c9f9b06… | 2026-11-22 17:21 | 2026-11-22 17:22 | mechtilde | rejected | VIEW |