Skip to content

Commit cad8b25

Browse files
committed
bump 0.9.12: add auth: plugin to all HTTP route registrations
OpenClaw 2026.3.2+ requires explicit auth field on registerHttpRoute. All JACS well-known and public endpoints use auth: plugin (plugin-managed, no gateway token required) since they must be publicly accessible for agent discovery and document verification.
1 parent 07b1bb0 commit cad8b25

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

openclaw.plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "moltyjacs",
33
"name": "JACS Cryptographic Provenance",
4-
"version": "0.9.11",
4+
"version": "0.9.12",
55
"description": "Add JACS cryptographic provenance plus HAI platform features (attestation, username, mailbox, and benchmark workflows)",
66
"homepage": "https://hai.ai/jacs",
77
"configSchema": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moltyjacs",
3-
"version": "0.9.11",
3+
"version": "0.9.12",
44
"description": "JACS cryptographic provenance plugin for OpenClaw - signing, verification, commitments, todos, agent state, and conversations",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/gateway/wellknown.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
7070
registerRoute({
7171
method: "GET",
7272
path: "/.well-known/jacs-pubkey.json",
73+
auth: "plugin",
7374
handler: async (req: GatewayRequest, res: GatewayResponse) => {
7475
if (!api.runtime.jacs?.isInitialized()) {
7576
res.status(503).json({
@@ -115,6 +116,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
115116
registerRoute({
116117
method: "GET",
117118
path: "/.well-known/agent-card.json",
119+
auth: "plugin",
118120
handler: async (_req: GatewayRequest, res: GatewayResponse) => {
119121
await serveGeneratedWellKnownDocument("/.well-known/agent-card.json", res);
120122
},
@@ -124,6 +126,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
124126
registerRoute({
125127
method: "GET",
126128
path: "/.well-known/jwks.json",
129+
auth: "plugin",
127130
handler: async (_req: GatewayRequest, res: GatewayResponse) => {
128131
await serveGeneratedWellKnownDocument("/.well-known/jwks.json", res);
129132
},
@@ -133,6 +136,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
133136
registerRoute({
134137
method: "GET",
135138
path: "/.well-known/jacs-agent.json",
139+
auth: "plugin",
136140
handler: async (_req: GatewayRequest, res: GatewayResponse) => {
137141
await serveGeneratedWellKnownDocument("/.well-known/jacs-agent.json", res);
138142
},
@@ -142,6 +146,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
142146
registerRoute({
143147
method: "GET",
144148
path: "/.well-known/jacs-extension.json",
149+
auth: "plugin",
145150
handler: async (_req: GatewayRequest, res: GatewayResponse) => {
146151
await serveGeneratedWellKnownDocument("/.well-known/jacs-extension.json", res);
147152
},
@@ -151,6 +156,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
151156
registerRoute({
152157
method: "POST",
153158
path: "/jacs/verify",
159+
auth: "plugin",
154160
handler: async (req: GatewayRequest, res: GatewayResponse) => {
155161
if (!api.runtime.jacs?.isInitialized()) {
156162
res.status(503).json({ error: "JACS not initialized" });
@@ -185,6 +191,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
185191
registerRoute({
186192
method: "GET",
187193
path: "/jacs/agent",
194+
auth: "plugin",
188195
handler: async (_req: GatewayRequest, res: GatewayResponse) => {
189196
if (!api.runtime.jacs?.isInitialized()) {
190197
res.status(503).json({
@@ -229,6 +236,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
229236
registerRoute({
230237
method: "GET",
231238
path: "/jacs/status",
239+
auth: "plugin",
232240
handler: async (req: GatewayRequest, res: GatewayResponse) => {
233241
const config = api.config;
234242
const initialized = api.runtime.jacs?.isInitialized() || false;
@@ -247,6 +255,7 @@ export function registerGatewayMethods(api: OpenClawPluginAPI): void {
247255
registerRoute({
248256
method: "GET",
249257
path: "/jacs/attestation",
258+
auth: "plugin",
250259
handler: async (req: GatewayRequest, res: GatewayResponse) => {
251260
if (!api.runtime.jacs?.isInitialized()) {
252261
res.status(503).json({

0 commit comments

Comments
 (0)