docs: move token docs to docs/ops/API_TOKENS.md + link in TROUBLESHOOTING

This commit is contained in:
“Naeel”
2026-06-30 17:25:51 +04:00
parent 6c442623be
commit 63d92d5880
2 changed files with 7 additions and 0 deletions
+7
View File
@@ -1,5 +1,12 @@
# Troubleshooting
## API Nubes — ошибки доступа (403, 401, IAM error)
> **Подробно:** [`docs/ops/API_TOKENS.md`](API_TOKENS.md) — полная документация по токенам, DDoS-Guard, endpoint'ам.
- **403 Forbidden** → проверить `User-Agent` (DDoS-Guard режет не-браузерные UA)
- **401 / IAM error** → проверить `token_type` в JWT (должен быть `"tech"`)
- **Токен работает, но не на этом endpoint** → токены привязаны к стендам (prod/test/dev)
- Правильный curl: `curl -H "User-Agent: Mozilla/5.0 ..." -H "Authorization: Bearer <JWT>" https://deck-api(-test|-dev).ngcloud.ru/api/v1/index.cfm/...`
## Registry Server не отвечает
1. `kubectl -n terraform-registry get pods -l app=registry-server`
2. `kubectl -n terraform-registry logs -l app=registry-server --tail=100`