Skip to content

fix(bootstrap): drop leading slash from Secrets Manager names (closes #62)#63

Merged
royosherove merged 2 commits into
mainfrom
fix/issue-62-secret-name-leading-slash
May 13, 2026
Merged

fix(bootstrap): drop leading slash from Secrets Manager names (closes #62)#63
royosherove merged 2 commits into
mainfrom
fix/issue-62-secret-name-leading-slash

Conversation

@royosherove
Copy link
Copy Markdown
Member

Problem

Reported in #62 by @maxberta-ait.

bootstraps/telegram/BOOTSTRAP-TELEGRAM.md instructs users to create the bot-token secret as:

```
aws secretsmanager create-secret --name /faststart/telegram-bot-token ...
```

AWS accepts the leading /, but OpenClaw's gateway rejects it on startup:

```
[secrets] [SECRETS_RELOADER_DEGRADED] Error: Exec secret reference id must
match /^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$/ ... (ref: exec:aws-sm:/faststart/telegram-bot-token).
Gateway failed to start: required secrets are unavailable.
```

The first character must be alphanumeric — slashes are allowed inside the name as separators, just not at the start.

Fix

  • BOOTSTRAP-TELEGRAM.md — rename to faststart/telegram-bot-token in all 7 references; add an explanatory note next to the create-secret command so future readers know why.
  • BOOTSTRAP-PIPELINE-NOTIFICATIONS.md — same rename for telegram-bot-token and github-token (consistency; same constraint applies).
  • BOOTSTRAP-CODING-GUIDELINES.md — clarify the naming convention: Secrets Manager uses no leading slash (OpenClaw constraint), SSM Parameter Store keeps the leading slash (its own convention).

Verification

```
$ grep -rn "/faststart/telegram-bot-token|name /faststart" bootstraps/
(no matches)
```

Closes #62.

Loki added 2 commits May 13, 2026 11:01
…62)

OpenClaw's exec secret reference (exec:aws-sm:<name>) requires the
secret name to start with an alphanumeric character per its regex:
  /^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$/

The previous docs instructed users to create '/faststart/telegram-bot-token',
which AWS Secrets Manager accepts but causes the openclaw gateway to fail
startup with SECRETS_RELOADER_DEGRADED.

Changes:
- BOOTSTRAP-TELEGRAM.md: rename secret to 'faststart/telegram-bot-token'
  in all 7 references, plus add an explanatory note on the constraint
- BOOTSTRAP-PIPELINE-NOTIFICATIONS.md: same rename for telegram-bot-token
  and github-token references
- BOOTSTRAP-CODING-GUIDELINES.md: update naming convention to clarify
  Secrets Manager (no leading slash) vs SSM Parameter Store (leading
  slash is fine) — these have different rules

Reported by @maxberta-ait.
Same constraint as #62 — Secrets Manager names used as exec secret
references must start with an alphanumeric character. Updating the
install.sh help text so the example doesn't propagate the broken
pattern.
@royosherove royosherove merged commit d3cab9c into main May 13, 2026
16 checks passed
@royosherove royosherove deleted the fix/issue-62-secret-name-leading-slash branch May 13, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telegram bootstrap generate an invalid configuration

1 participant