idpzero

command module
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

idpzero

Local IdP for development and testing purposes, single binary with zero addition dependencies

For local development, we suggest leveraging make dev which will setup the required watches across the development tooling required. This will launch a brower at http://localhost:8080 which operates as a proxy to the http://localhost:4379 to enable hot reloading.

Run Sample Client:

CLIENT_ID=web CLIENT_SECRET=secret ISSUER=http://localhost:4379 SCOPES="openid profile" PORT=9999 go run github.com/zitadel/oidc/v3/example/client/app

Navigate to http://localhost:9999/login

Running with Docker

Released versions are published as a hardened, multi-arch (amd64/arm64) container image to the GitHub Container Registry (ghcr.io/idpzero/idpzero). The image runs the server as an unprivileged user and carries only the static binary, CA certificates and su-exec on a minimal Alpine base.

The container reads its configuration from /config, so bind-mount the directory that holds your server.yaml (the generated cache/ state is written alongside it). Initialize a configuration directory once, then serve it:

# Create ./.idpzero/server.yaml with sample clients + users
docker run --rm \
  -v "$(pwd)/.idpzero:/config" \
  ghcr.io/idpzero/idpzero:latest init --config /config --with-sample-config

# Start the IDP on http://localhost:4379
docker run --rm \
  -p 4379:4379 \
  -v "$(pwd)/.idpzero:/config" \
  ghcr.io/idpzero/idpzero:latest

The default command is serve --config /config, so no extra arguments are needed to start the server.

How volume permissions work: the container starts as root only long enough for its entrypoint to take ownership of /config, then drops to the unprivileged idpzero user (uid/gid 65532) to run the server — the same approach the official Postgres image uses. This means a bind-mounted host directory just works, with no --user juggling. If you prefer to run as a fixed user (e.g. in a locked-down/Kubernetes environment), pass --user "$(id -u):$(id -g)"; the entrypoint detects it isn't root, skips the chown, and runs directly — just ensure the mounted directory is writable by that user.

To build the image from source instead of pulling a release:

make docker            # builds idpzero:local
# or: docker build -t idpzero:local .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg
dbg
scim
Package scim implements a minimal SCIM 2.0 provisioning client.
Package scim implements a minimal SCIM 2.0 provisioning client.
web/views/layouts
templ: version: v0.3.857
templ: version: v0.3.857
web/views/pages
templ: version: v0.3.857
templ: version: v0.3.857

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL