Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
208b51c
feat: poc migrating from prefixed-api-key
chronark Aug 24, 2025
f3ce474
Update keys.ts
chronark Aug 25, 2025
71bb511
Merge branch 'main' of https://github.com/unkeyed/unkey into 08-24-fe…
chronark Aug 25, 2025
0c5482c
fix: remove log
chronark Aug 25, 2025
a6d35e1
docs: fix comment
chronark Aug 25, 2025
a046100
fix: trace name
chronark Aug 25, 2025
ad1b1da
fix: query by workspace id
chronark Aug 25, 2025
177d9cc
Update interface.go
chronark Aug 25, 2025
06b7578
fix: remove cache once
chronark Aug 25, 2025
3a96ac0
Merge branch '08-24-feat_poc_migrating_from_prefixed-api-key' of http…
chronark Aug 25, 2025
3b469af
stash
Flo4604 Aug 26, 2025
9f10c42
add actual route
Flo4604 Aug 26, 2025
249f275
some small changes
Flo4604 Aug 26, 2025
598a038
add tests and a replica of the prefixed api key package
Flo4604 Aug 26, 2025
d98826d
Merge branch 'main' into 08-24-feat_poc_migrating_from_prefixed-api-key
Flo4604 Aug 26, 2025
388c06f
fix: insert ratelimits
Flo4604 Aug 26, 2025
faec639
adjust tests
Flo4604 Aug 27, 2025
83c3cdb
adjust some rabbit comments
Flo4604 Aug 27, 2025
a968eb5
adjust some rabbit comments
Flo4604 Aug 27, 2025
ae9de86
adjust some rabbit comments
Flo4604 Aug 27, 2025
cbc1419
adjust some rabbit comments
Flo4604 Aug 27, 2025
71cd41f
adjust middleware
Flo4604 Aug 27, 2025
71b1f9e
fix test
Flo4604 Aug 27, 2025
3e5fe26
Merge branch 'main' into 08-24-feat_poc_migrating_from_prefixed-api-key
Flo4604 Sep 9, 2025
fc6fce6
add missing file back
Flo4604 Sep 9, 2025
5c98051
remove duplicate file
Flo4604 Sep 9, 2025
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
51 changes: 51 additions & 0 deletions apps/docs/errors/unkey/data/migration_not_found.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: "migration_not_found"
description: "The requested Key Migration was not found"
---

<Danger>err:unkey:data:migration_not_found</Danger>

```json Example
{
"meta": {
"requestId": "req_2c9a0jf23l4k567"
},
"error": {
"detail": "The requested Migration could not be found",
"status": 404,
"title": "Not Found",
"type": "https://unkey.com/docs/api-reference/errors-v2/unkey/data/migration_not_found"
}
}
```

## What Happened?

This error occurs when you're trying to migrate api keys for a migration that doesn't exist in the Unkey system.

Common scenarios that trigger this error:

- Using an incorrect or expired migrationId
- The migration was deleted
- The migration belongs to a different workspace
- Typos in the migrationId

Here's an example of a request that would trigger this error:

```bash
# Attempting to migrate keys with a non-existent migrationId
curl -X POST https://api.unkey.com/v2/keys.migrateKeys \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <UNKEY_ROOT_KEY>" \
-d '{
"apiId": "api_123",
"migrationId": "migration_456",
"keys": [{ "hash": "deadbeef" }]
}'
```

## How To Fix

<Info>
If you’re unsure about your migrationId or setup, contact [email protected].
</Info>
1 change: 1 addition & 0 deletions go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ build:
generate:
buf generate
go generate ./...
go fmt ./...

generate-builder:
buf generate --path proto/deploy/builderd
Expand Down
1 change: 0 additions & 1 deletion go/apps/api/openapi/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package: openapi
output: ./gen.go
generate:
models: true

output-options:
nullable-type: true
overlay:
Expand Down
101 changes: 101 additions & 0 deletions go/apps/api/openapi/gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading