Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3e8256d
Rework database schema to support teams + better data model for API-d…
evanebb Mar 18, 2025
37a1fe3
Remove all front-end templates
evanebb Mar 18, 2025
0edbb51
Add OpenAPI spec
evanebb Mar 18, 2025
dc69c90
Remove session key config directive
evanebb Mar 18, 2025
51e46c4
Rework the whole thing to be API-driven, remove the UI
evanebb Mar 18, 2025
dc2065f
Rework authorizer to support teams
evanebb Mar 18, 2025
26b9c41
Collapse registry access token config into struct
evanebb Mar 18, 2025
94c3995
Add cross-method transaction support to stores, rework stores to supp…
evanebb Mar 18, 2025
c1c33ef
Hash API keys with single pass SHA-256 with salt to avoid slowdown wi…
evanebb Mar 18, 2025
bb9f471
Add transaction support to auth user store
evanebb Mar 18, 2025
e19bf2a
Update repo store with transaction support and new methods
evanebb Mar 18, 2025
1ed2b45
Add JSON tags to repo, remove unused function
evanebb Mar 18, 2025
f783599
Add convenience method to check password for auth user
evanebb Mar 18, 2025
3e7c878
Update hashes to SHA-256 in seeds
evanebb Mar 18, 2025
a3e9c1f
Add basic route to change user password
evanebb Mar 18, 2025
def0bdd
Do not allow deleting current user
evanebb Mar 18, 2025
bb8b404
Host API docs on server using Redoc
evanebb Mar 19, 2025
07dfa6f
Only allow GET for health endpoint
evanebb Mar 19, 2025
7b909c9
Add not found handler to API
evanebb Mar 19, 2025
66d7311
Make team checks faster by using map instead of slice
evanebb Mar 19, 2025
a138c20
Restructure JSON responses for better OpenAPI-based client generation :)
evanebb Mar 19, 2025
8ef2220
Rework API to accept names only, add default error to API docs
evanebb Mar 21, 2025
5f4d3b8
Fix user insert query
evanebb Mar 21, 2025
16177b7
Add a bunch of debug logging to auth middleware
evanebb Mar 21, 2025
21781d4
Add missing default namespace for admin user
evanebb Mar 21, 2025
80b3c80
Create auth user if it does not yet exist on password change
evanebb Mar 21, 2025
6920464
Add automatically generated API client using ogen
evanebb Mar 21, 2025
ff3ee2d
Add CLI to interact with API
evanebb Mar 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build:
CGO_ENABLED=0 go build -tags viper_bind_struct -o ./bin/regauth ./cmd/regauth
CGO_ENABLED=0 go build -o ./bin/regauth-cli ./cmd/regauth-cli
2 changes: 1 addition & 1 deletion resources/templates/embed.go → api/embed.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package templates
package api

import "embed"

Expand Down
18 changes: 18 additions & 0 deletions api/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Regauth API documentation</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<redoc spec-url="/reference/openapi.yaml"></redoc>
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
</body>
</html>
Loading
Loading