mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 16:01:30 +00:00
legal: addlicense headers + normalize legacy variants (Phase 0 RED-4)
Phase 0 closure (Path B2, post-rewrite):
addlicense sweep — adds the canonical certctl LLC copyright + BUSL-1.1
SPDX header to every production Go file. Template:
// Copyright 2026 certctl LLC. All rights reserved.
// SPDX-License-Identifier: BUSL-1.1
Coverage: 338 / 338 production Go files (cmd/ + internal/, excluding
*_test.go and **/testdata/**). Pre-sweep coverage was 22 / 338 (6.5%);
post-sweep is 338 / 338 (100%).
Normalized 22 pre-existing legacy headers (`// Copyright (c) certctl`
+ `// SPDX-License-Identifier: BSL-1.1`) and 1 file using a
`Certctl Contributors` attribution. The legacy SPDX ID `BSL-1.1`
is non-standard; the official SPDX identifier for Business Source
License 1.1 is `BUSL-1.1` (capital U). All 338 files now share the
canonical form.
Generated via:
addlicense -c "certctl LLC" -y 2026 \
-f cowork/legal/copyright-header.tpl \
-ignore '**/testdata/**' -ignore '**/*_test.go' \
cmd/ internal/
Verification:
find cmd internal -name '*.go' -not -name '*_test.go' \
-not -path '*/testdata/*' \
-exec grep -L '^// Copyright 2026 certctl LLC' {} \; | wc -l
Returns: 0
gofmt clean. Header additions are comments only, no compile impact.
Closes: cowork/certctl-architecture-diligence-audit.html#fix-RED-4
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package bootstrap ships the day-0 admin-creation primitive for Bundle 1
|
||||
// Phase 6. The control plane comes up with no admin-roled actors; the
|
||||
// operator hands the env-var token to a single curl call; the server
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package domain holds the break-glass-admin persisted-shape type.
|
||||
//
|
||||
// Auth Bundle 2 Phase 1 / Phase 7.5: types only. Phase 2 ships the
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package breakglass — Auth Bundle 2 Phase 7.5 / break-glass admin service.
|
||||
//
|
||||
// Decision 4: operator-toggleable local-password admin for the SSO-broken
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package auth holds the certctl auth surface: API-key validation, the
|
||||
// authenticated-actor context keys, and the helpers that consumers across
|
||||
// the codebase use to read the actor identity (rate limiter, audit
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package oidc — Auth Bundle 2 Phase 7 / OIDC bootstrap hook.
|
||||
//
|
||||
// Phase 7 ships the "first OIDC login matching CERTCTL_BOOTSTRAP_ADMIN_GROUPS
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package oidc is the Bundle 2 OpenID Connect integration: server-side
|
||||
// validation of ID tokens issued by an enterprise IdP (Okta / Azure AD /
|
||||
// Google Workspace / Keycloak / Authentik / Auth0), JWKS rotation,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package domain holds the OIDC integration's persisted-shape types.
|
||||
//
|
||||
// Auth Bundle 2 Phase 1: types only, no service or repository wiring.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package groupclaim resolves the operator-configured `groups_claim_path`
|
||||
// against an ID token's parsed claims, returning the user's group
|
||||
// membership as a `[]string`.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package oidc — Bundle 2 Phase 5 / pre-login cookie machinery.
|
||||
//
|
||||
// This file implements the production-side PreLoginStore that the
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package oidc
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package oidc
|
||||
|
||||
// Audit 2026-05-10 MED-5 closure — dry-run validator for OIDC provider
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
//go:build integration
|
||||
|
||||
// Package testfixtures provides Bundle 2 Phase 10 multi-IdP integration
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package auth
|
||||
|
||||
import "strings"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package domain holds the session-management persisted-shape types.
|
||||
//
|
||||
// Auth Bundle 2 Phase 1: types only. Phase 2 ships the SQL migration;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package session — Auth Bundle 2 Phase 6 / session + CSRF middleware.
|
||||
//
|
||||
// This file ships the HTTP middleware that wires the post-login session
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package session implements the post-login session lifecycle for
|
||||
// Auth Bundle 2 Phase 4: cookie minting + signature validation +
|
||||
// idle/absolute expiry + revocation + signing-key rotation + GC.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package auth
|
||||
|
||||
import "context"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 certctl LLC. All rights reserved.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
// Package domain holds the federated-human user persisted-shape type.
|
||||
//
|
||||
// Auth Bundle 2 Phase 1: types only. Phase 2 ships the SQL migration;
|
||||
|
||||
Reference in New Issue
Block a user