Skip to content

feat(auth): recognise mku_-prefixed Make API keys - #123

Merged
JanKulhavy merged 6 commits into
mainfrom
feat/api-token-mku
Dec 2, 2026
Merged

JanKulhavy merged 6 commits into
mainfrom
feat/api-token-mku

Conversation

@JanKulhavy

@JanKulhavy JanKulhavy commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

https://make.atlassian.net/browse/TECH-623

Summary

Make API tokens will be issued with a prefix: mku_ + the token's usual dashed UUID, e.g. mku_2b58802d-d95a-4715-acd5-b65acaaef470. isAPIKey now treats mku_ + a UUIDv4 as an API key, as well as a bare UUIDv4, so such keys are sent as Authorization: Token … instead of Bearer ….

  • The prefix is case-sensitive. The UUID after it is accepted in any case, the same as a bare key.
  • The UUID shape is defined once (UUIDv4_RE); the prefix is stripped before the test.
  • Non-key values such as OAuth/JWT access tokens still go out as Bearer.

Includes the minor version bump to 1.20.0: package.json and package-lock.json, as in earlier bumps. The new behavior is a feature with no breaking change.

Compatibility

The Make API also accepts Bearer mku_…, so older SDK versions keep working with prefixed keys.

Tests

  • test/make.spec.ts pins the authorization scheme for a UUID, an mku_ key and a non-key.
  • test/utils.spec.ts covers:
    • acceptance of mku_ + UUID, including an uppercase UUID
    • rejection of a MKU_ prefix, an undashed body, a non-v4 UUID, extra characters, mku_ alone and a trailing newline
  • npm test: 600 passed. npm run lint and npm run build pass.

🤖 Generated with Claude Code

JanKulhavy and others added 3 commits December 1, 2026 16:05
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JanKulhavy
JanKulhavy requested a review from a team as a code owner December 1, 2026 20:30
JanKulhavy and others added 3 commits December 2, 2026 08:21
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JanKulhavy
JanKulhavy enabled auto-merge (squash) December 2, 2026 07:30
@JanKulhavy
JanKulhavy merged commit 2bb4d0b into main Dec 2, 2026
5 checks passed
@JanKulhavy
JanKulhavy deleted the feat/api-token-mku branch December 2, 2026 09:43
JanKulhavy added a commit to integromat/make-cli that referenced this pull request Dec 2, 2026
## Summary
Updates `@makehq/sdk` from `^1.3.0` to `^1.20.0` (package.json and
package-lock.json only).

- **Prefixed API tokens:** SDK 1.20.0
(integromat/make-typescript-sdk#123) recognises `mku_<uuid>` keys and
sends them with the `Token` scheme. The CLI passes the key through as
is, so `make` works with the new prefixed tokens without a code change.
Bare-UUID tokens work exactly as before.
- **More commands:** the CLI builds its commands from the SDK's
`MakeTools`, so this update adds the SDK's newer tools. The command
count goes from 130 to 241, and none are removed. New groups include
functions, sdk-apps/endpoints/modules, event-subscriptions,
scenario-labels, custom properties, templates, audit-logs and
on-prem-agent.

The CLI's own version is unchanged. Bump it in the usual separate
`chore: bump version` commit when releasing.

## Testing
- `npm test`: 4 suites / 104 tests pass, the same as on main.
- `npm run lint`, `npm run build` and `npm run build:docs` succeed.
docs/ is git-ignored, so no generated files are committed.
- `npm ci --dry-run` passes on the new lockfile (Node 24.22.1 / npm
11.19.1).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants