mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
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
16 lines
679 B
Go
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")
|