Skip to main content
Engineering Case Study

AccessMan

Go authorization service and Preact/Vite administration client

backendScope L3

1. At a glance

AccessMan is an open-source access and policy management project. The repository pairs a Go service with a TypeScript and Preact/Vite administration client. Its public code is the reference for implementation and test-suite details; no test total is claimed here.

2. Why it existed

Applications need to make authorization decisions consistently and give operators a way to manage access policies. AccessMan explores a dedicated service and admin interface for those responsibilities.

3. Contribution

Designed and built end-to-end as the sole architect and developer, spanning the Go authorization engine, PostgreSQL persistence, token lifecycle APIs, and the Preact/Vite administration dashboard.

4. System Shape & Architecture

System Architecture SchematicACCESSMAN // SVG
ApplicationIdentity requestGo Policy ServiceRoles & PoliciesAuthorization resultAdmin ClientPreact + Vite
A Go policy service connects application authorization requests with an administration client.

The project story

AccessMan grew out of seeing multiple backend applications re-implement fragile permission checks, ad-hoc API keys, and manual database scripts whenever team roles changed. The goal was to extract identity verification and policy administration into one lightweight service paired with a self-service operator panel.

01

Establishing a clean policy boundary

Work began by isolating configuration guards, application registration, metadata schemas, and stateless token verification behind a single predictable Go service boundary.

02

Supporting the full credential lifecycle

Once verification stabilized, AccessMan expanded to handle real operational workflows: minting credentials, clean revocation without losing audit history, safe token reissuance, and structured user/application onboarding.

03

Shipping the operator dashboard

Because authorization policies only stay accurate when administrators can inspect them easily, a Preact/Vite control panel was introduced for searching identities, inspecting metadata, managing tokens, and running bulk CSV imports.

04

End-to-end operational hardening

To make everyday workflows dependable under real browser usage, the dashboard and backend were verified together across session expiry, malformed CSV quotes, and settings updates.

5. Technical Decisions & Tradeoffs

The project separates authorization service logic from its administration interface. That gives application integrations and operators distinct surfaces while keeping policy decisions in the service.

Challenges & how I solved them

Token lifecycle

Reissuing a token after revocation

A revoked token could prevent a user from receiving a replacement for the same app. Removing revoked records to make issuance work also blurred the distinction between an old credential and its replacement.

How I Solved It
The service was changed to retain revoked-token state, and a reissue path now revokes the prior token before creating its replacement. That keeps the lifecycle explicit while allowing the user to continue. Token-state refactor ↗

Bulk import correctness

Keep scoped reissues and quoted CSV intact

Single-app reissue requests needed the app context on each item, and CSV values containing escaped quotes could be split incorrectly during import.

How I Solved It
The panel now supplies the app name for single-app requests, parses escaped CSV quotes, and catches clipboard failures instead of breaking the format helper. Import edge-case fixes ↗

Session behavior

End stale sessions on authorization failure

The panel could remain in a logged-in state after an API response indicated the session was no longer authorized.

How I Solved It
The API client and authentication context were updated to clear the session on a 401 response, with the affected import and token screens adjusted to handle that path. 401 handling fix ↗

6. Verification & Security

The repository includes automated tests. A numeric total is omitted because the count and suite boundaries have not been verified in this review. Authentication and authorization behavior should be assessed from the current source and test commands.

7. Outcome & Metrics

The repository demonstrates a Go access-management service with a web administration client. The project is open source; adoption and test-count metrics are not asserted here.

8. Reflection & Lessons Learned

An authorization service needs clear policy semantics and a usable operator workflow. Keeping those concerns explicit makes it easier for applications to request decisions and for teams to review the rules behind them.

9. Explore Source & Artifacts