[Security] Secure and Sanitize Campaign API
@agaragon がすでに取り組んでいます。
2025年6月10日 から。
評価
この issue はまだ評価されていません。
説明
Intro
In DevSecOps, "less privilege" refers to the principle of least privilege (PoLP), which means granting users, applications, or services the minimal level of access required to perform their tasks, and nothing more. When working with an API, this principle ensures that:
API users (such as applications or services) only have the minimum permissions they need to interact with the API. Each API key or token is assigned only the specific roles, access levels, or scopes necessary to perform a given function.Limiting exposure of sensitive data or operations by making sure an API consumer can only access certain endpoints or perform certain actions (e.g., read-only vs. read-write access).
Example in DevSecOps:
If you have an API that manages user data, and an application only needs to fetch user information, the API key associated with this app should only have read-only access to user data, not permissions to modify or delete it.
By enforcing least privilege, you minimize the risk of accidental or malicious damage in case the API key is compromised. Applying this principle helps to reduce security risks, ensuring that even if an account or service is compromised, the damage potential is limited.
Task
In file: https://github.com/OpenSourceFellows/amplify/blob/main/server/routes/api/campaigns.js
Copilot Prompts in quotes
- " Limit Data Exposure" in line 17 - 26
- Highlight file "refactor to give least privilege"
- 主要言語
- JavaScript
- スター
- 120
- フォーク
- 101
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenSourceFellows/amplify のほかの issue
-
QA Bug Part 2 Update Axios-cache-Interception再び着手できるかも @SAUMILDHANKAR が 354 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug Failing workflow check
OpenSourceFellows/amplify#1077 · コメント 4 件 · 担当者 2 名 ·
-
Auto messages for Pull Request再び着手できるかも @Alex-is-Gonzalez が 354 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
OpenSourceFellows/amplify#1076 · コメント 2 件 · 担当者 1 名 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
OpenSourceFellows/amplify#1075 ·
-
new contributor
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
OpenSourceFellows/amplify#1059 · コメント 1 件 ·
-
Pick your own Actionオープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
OpenSourceFellows/amplify#1058 · コメント 1 件 ·
OpenSourceFellows/amplify の issue をすべて見る
似ている issue
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
opensearch-project/security-dashboards-plugin#2543 ·
メンテナーはふだん 1 日以内に返信
-
[quality] refresh-radar-reports.yml runs on ubuntu-latest while every other job pins ubuntu-24.04オープンagent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
godotengine/godot-website#1432 ·
-
Add: Mooz Retroオープンchannels:add check:passed
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信