[PR #1369] [MERGED] api/api-key: limit or allow access to services per key #1390

Closed
opened 2025-11-09 10:12:02 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1369
Author: @wukko
Created: 6/26/2025
Status: Merged
Merged: 6/26/2025
Merged by: @github-actions[bot]

Base: developHead: api-key-services


📝 Commits (4)

  • d69100c api/tiktok: validate that redirected link is still tiktok
  • 3243564 api/api-keys: add allowedServices to limit or extend access
  • dce9eb3 docs/protect-an-instance: add info about allowedServices in api keys
  • 8feaf5c api/api-keys: replace .find() with .some() in allowedServices

📊 Changes

6 files changed (+55 additions, -8 deletions)

View changed files

📝 api/src/core/api.js (+4 -1)
📝 api/src/core/env.js (+2 -0)
📝 api/src/processing/services/tiktok.js (+4 -2)
📝 api/src/processing/url.js (+2 -2)
📝 api/src/security/api-keys.js (+36 -2)
📝 docs/protect-an-instance.md (+7 -1)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1369 **Author:** [@wukko](https://github.com/wukko) **Created:** 6/26/2025 **Status:** ✅ Merged **Merged:** 6/26/2025 **Merged by:** [@github-actions[bot]](https://github.com/apps/github-actions) **Base:** `develop` ← **Head:** `api-key-services` --- ### 📝 Commits (4) - [`d69100c`](https://github.com/imputnet/cobalt/commit/d69100c68d038639c5cf79fd0e6466faa87ea0a8) api/tiktok: validate that redirected link is still tiktok - [`3243564`](https://github.com/imputnet/cobalt/commit/3243564f7771a5bc38f15b97a271980a5d78242e) api/api-keys: add allowedServices to limit or extend access - [`dce9eb3`](https://github.com/imputnet/cobalt/commit/dce9eb30c1d2a2618ea456338224ac1857738873) docs/protect-an-instance: add info about allowedServices in api keys - [`8feaf5c`](https://github.com/imputnet/cobalt/commit/8feaf5c63683d5b7ceee173122ef7bb6dc0df91c) api/api-keys: replace .find() with .some() in allowedServices ### 📊 Changes **6 files changed** (+55 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `api/src/core/api.js` (+4 -1) 📝 `api/src/core/env.js` (+2 -0) 📝 `api/src/processing/services/tiktok.js` (+4 -2) 📝 `api/src/processing/url.js` (+2 -2) 📝 `api/src/security/api-keys.js` (+36 -2) 📝 `docs/protect-an-instance.md` (+7 -1) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-09 10:12:02 -06:00
Sign in to join this conversation.