Full dependency inventory across Rust/Go/npm plus Docker base images and vendored assets (776 rows, 502 unique deps), classified against AGPLv3 compatibility with real citations rather than assumptions. enterprise/ relicensed from its commercial-license stub to AGPLv3, matching core -- the one real flag (Redpanda's BSL 1.1) was evaluated against primary sources and accepted as-is rather than triggering a broker swap. CI enforcement wired up (.github/workflows/license- compliance.yml, this repo's first CI workflow), a root LICENSE file added, and every doc/comment referencing the old commercial-license boundary updated to describe it as architectural only. See /docs/compliance/ for the full report, inventory, and policy.
26 lines
1.4 KiB
Docker
26 lines
1.4 KiB
Docker
# AGPLv3 module (same as core as of Phase 6), built like every other Go service here --
|
|
# context must be the repo root, not enterprise/ alone. enterprise/go.mod
|
|
# has replace directives for api/, ingest/, and proto/ (all resolved as
|
|
# sibling directories, e.g. ../api), and enterprise-auth needs api/
|
|
# specifically for two real reasons: cmd/enterprise-auth/main.go imports
|
|
# api/httpserver directly (WithCredentialedCORS, for the tenant-picker's
|
|
# credentialed cross-origin requests), and internal/rbacstore's
|
|
# DashboardPermissions adapter imports api/dashboards transitively.
|
|
# Go's module resolution needs the whole module's go.mod satisfied to
|
|
# build any one package in it, so this was never actually optional the
|
|
# way the old enterprise/-only context assumed -- confirmed broken the
|
|
# first time this was built with real Docker access after those two
|
|
# imports existed; the repo-root context below is the same shape
|
|
# enterprise-api's and enterprise-ingest's Dockerfiles already use for
|
|
# the identical reason.
|
|
# docker build -f enterprise/Dockerfile -t sentry-enterprise-auth .
|
|
FROM golang:1.25-alpine AS builder
|
|
WORKDIR /src
|
|
COPY . .
|
|
WORKDIR /src/enterprise
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /out/enterprise-auth ./cmd/enterprise-auth
|
|
|
|
FROM gcr.io/distroless/static-debian12
|
|
COPY --from=builder /out/enterprise-auth /enterprise-auth
|
|
ENTRYPOINT ["/enterprise-auth"]
|