Files
zeekay 1943f1c093 Hanzo Commerce
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans,
usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0.

Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
2026-09-23 21:52:16 -07:00

16 lines
679 B
Go

// Copyright (c) 2014-present Hanzo AI, Inc.
// Licensed under MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.
package organization
import "errors"
// ErrSecretLikeName is returned when an untrusted, gateway-supplied org name is
// actually a raw API key / bearer token rather than a real org identifier.
//
// The predicate itself is secret.Like. It lives in package secret because the
// same list of credential markers also generates the DB backstop trigger on
// _entities — one definition behind both gates, so neither can drift out from
// under the other.
var ErrSecretLikeName = errors.New("organization: refusing to provision org from a bearer-shaped name")