Repository navigation
feat(auth): recognise checksummed mku_ Make API keys - #124
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Checker findings (self-review). Each added case fails against one plausible wrong pattern that the existing cases let through: - a checksummed body without the mku_ prefix: matching the stripped body instead of the whole value - a leading space: a pattern without the start anchor - an underscore in the checksum: \w instead of the base62 class - a trailing newline after the checksummed form: the multiline flag Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
No existing case put a lowercase letter outside a-f in the 32-character body, so a pattern written with a-z for "lowercase hex" passed every test. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
JanKulhavy
enabled auto-merge (squash)
December 3, 2026 20:27
Uğur Oruç (Ketcap)
approved these changes
Dec 4, 2026
JanKulhavy
added a commit
to integromat/make-cli
that referenced
this pull request
Dec 4, 2026
https://make.atlassian.net/browse/TECH-623 ## Summary Updates `@makehq/sdk` from `^1.20.0` to `^1.21.0` (`package.json` and `package-lock.json` only). - **Checksummed API tokens:** SDK 1.21.0 ([make-typescript-sdk#124](integromat/make-typescript-sdk#124)) recognises the checksummed `mku_` key (`mku_` + 32 lowercase hex characters + a 6-character checksum) and sends it with the `Token` scheme. The CLI passes the key through as is (`src/auth.ts`, `src/login.ts` do no format check), so `make` works with the new tokens without a code change. Bare-UUID and dashed `mku_` tokens work exactly as before. - **Why bump now:** with SDK 1.20.0 a checksummed key goes out as `Bearer mku_…`, which imt-web-api only accepts through its Bearer fallback. This is not a deploy gate for the rollout. - **No new commands:** 1.21.0 adds no tools, so the command count stays at 241 across 44 categories. The CLI's own version is unchanged. Bump it in the usual separate `chore: bump version` commit when releasing. ## Testing Same results before and after the bump (Node 24.22.1 / npm 11.19.1): - `npm test`: 4 suites / 104 tests pass. - `npm run lint`, `npm run build` and `npm run build:docs` succeed (241 commands). `docs/` is git-ignored, so no generated files are committed. - `npm ci --dry-run` passes on the new lockfile, run in a clean temp dir. - Auth scheme with the installed SDK, checked by stubbing `fetch` and reading the `Authorization` header: UUID, dashed `mku_` and checksummed `mku_` keys all send `Token`; an OAuth-style token still sends `Bearer`. The CLI has no test for this. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://make.atlassian.net/browse/TECH-623
Summary
Make API tokens will be issued in a checksummed form:
mku_+ the token's UUID as 32 lowercase hex characters (no dashes) + a 6-character base62 checksum, e.g.mku_2b58802dd95a4715acd5b65acaaef4701nJqvqfor UUID2b58802d-d95a-4715-acd5-b65acaaef470.isAPIKeynow treats that shape as an API key too, so such keys are sent asAuthorization: Token …instead ofBearer ….node:zlibis unavailable.0-9A-Za-z.mku_+ dashed UUID are recognised as before. Non-key values such as OAuth/JWT access tokens still go out asBearer.Includes the minor version bump to 1.21.0 (
package.jsonandpackage-lock.json), as in earlier bumps. The new behavior is a feature with no breaking change.Compatibility
The Make API will also accept
Bearerwith a checksummed key, so older SDK versions keep working with the new tokens.Tests
test/make.spec.tspins theTokenscheme for a checksummed key.test/utils.spec.tscovers acceptance of the checksummed form (including one with a wrong checksum, which is accepted by shape) and rejection of an uppercased body, a 5- and a 7-character checksum, a non-hex letter in the body, a non-base62 checksum character (-and_), a dashed UUID followed by a checksum, a leading space, a trailing newline and a checksummed body without themku_prefix.npm test: 66 suites / 612 tests passed.🤖 Generated with Claude Code