Publish the reviewed Gamertan Web Foundations v0.1.0-preview.4 snapshot with local-only administrative reset, atomic Argon2id credential replacement, mandatory rotation, all-session revocation, secret-free audit evidence, rollback coverage, and exact application-boundary guidance. Exported from reviewed private source 403e5f6ef4d0cac683aaa76ed922236571d259a9 after trusted CI run 317 and exact Go 1.26.6 verification. Material implementation assistance provided by OpenAI Codex; reviewed and verified through the maintainer workflow. Signed-off-by: Cole Speelman <crspeelman@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@ The packages are ordinary Go imports. Pin the current preview and verify its
|
||||
module checksum:
|
||||
|
||||
```bash
|
||||
go get gamertan.com/web/requestmeta@v0.1.0-preview.3
|
||||
go get gamertan.com/web/requestmeta@v0.1.0-preview.4
|
||||
go mod verify
|
||||
```
|
||||
|
||||
@@ -67,6 +67,14 @@ adapter. Clear the browser cookie and require a fresh login after success. Do
|
||||
not treat a redirect alone as enforcement; apply the restriction before every
|
||||
protected handler.
|
||||
|
||||
For operator-led recovery, expose `auth.ResetPassword` only through a local
|
||||
administrative command—not a public HTTP endpoint. The operation installs an
|
||||
application-generated one-time credential, sets `PasswordChangeRequired`,
|
||||
revokes every existing session, and appends a secret-free audit event in the
|
||||
same repository transaction. Deliver that credential through an exclusive
|
||||
root-owned mode-`0600` file, delete it after successful rotation, and never put
|
||||
it in command arguments, stdout, logs, manifests, or deployment state.
|
||||
|
||||
## Add HTML without merging responsibilities
|
||||
|
||||
Handlers should convert request and service state into typed display data.
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import "gamertan.com/web/requestmeta"
|
||||
and request the containing module at an exact version:
|
||||
|
||||
```bash
|
||||
go get gamertan.com/web/requestmeta@v0.1.0-preview.2
|
||||
go get gamertan.com/web/requestmeta@v0.1.0-preview.4
|
||||
```
|
||||
|
||||
Only imported packages are compiled and linked. The packages nevertheless
|
||||
|
||||
@@ -23,6 +23,15 @@ the library does not infer route policy. Temporary credentials must be written
|
||||
to a private channel or mode-`0600` file and must never be printed into logs,
|
||||
manifests, process arguments, or deployment state.
|
||||
|
||||
Administrative recovery is deliberately a separate capability. The storage
|
||||
adapter atomically replaces the credential, restores the password-change
|
||||
requirement, revokes all sessions, and appends a generic audit event. The core
|
||||
library does not expose a recovery HTTP handler, deliver the credential, or
|
||||
authorize the local operator. Applications must keep that command local,
|
||||
generate the credential cryptographically, and write it only to a newly created
|
||||
private file. A recovery must not reveal whether an account exists through a
|
||||
public request surface.
|
||||
|
||||
Unsafe methods without an exact Origin or trustworthy same-origin Fetch
|
||||
Metadata fail the origin check. Authentication middleware fails closed when its
|
||||
service or `__Host-` cookie policy is invalid. Imported request records have
|
||||
|
||||
Reference in New Issue
Block a user