auth

command
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Command auth is a runnable demonstration of every quicSQL authentication method and every authorization level. It starts an in-process server configured with a principal per method (no-auth, Unix peer-credentials, bearer, HTTP-basic password, mTLS, and the ed25519 challenge/response) and per-database grants at each level (none / read-only / read-write / admin), then connects with each credential and prints, as a matrix, which operations are allowed and which are denied — including the wrong-credential and wrong-level denial paths and the admin-only control plane.

go run ./examples/auth

Everything runs on loopback with a temp data directory removed on exit. It exits non-zero if any expectation fails, so it doubles as a smoke test.

Jump to

Keyboard shortcuts

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