Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions lib/loopctl_web/controllers/dispatch_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defmodule LoopctlWeb.DispatchController do

alias Loopctl.Dispatches

action_fallback LoopctlWeb.FallbackController

plug LoopctlWeb.Plugs.RequireRole, [role: :orchestrator] when action in [:create]
plug LoopctlWeb.Plugs.RequireRole, [role: :agent] when action in [:show, :index]

Expand Down
15 changes: 15 additions & 0 deletions lib/loopctl_web/controllers/route_discovery_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ defmodule LoopctlWeb.RouteDiscoveryController do
path: "/api/v1/tenants/me",
description: "Update current tenant (settings.knowledge_auto_extract, etc.)"
},
%{
method: "POST",
path: "/api/v1/tenants/:id/rotate-audit-key",
description: "Rotate tenant audit signing keypair (requires WebAuthn)"
},
%{
method: "POST",
path: "/api/v1/tenants/:id/bootstrap-audit-key",
description: "Generate initial audit keypair for legacy tenants (user role + ownership)"
},
%{
method: "GET",
path: "/api/v1/tenants/:id/audit_public_key",
description: "Public endpoint — tenant Ed25519 audit signing public key (PEM or JWK)"
},

# API key management
%{
Expand Down
Loading