server: check-config warns when rest.requiredScopes is set in token mode
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
調査の方向性
config.jsとrest/sign-in.jsの61行目付近を読み、トークンモードでスコープがどのように扱われるかを確認してから、check-configの検証とそのテストを探します。トークンモードでrest.requiredScopesまたはREST auth.requiredScopesが設定されている場合に警告を追加し、issueで挙げられた制限も含めます。その設定で警告が表示され、関連するチェックが通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
rest.requiredScopes only applies to OAuth bearer tokens (config.js: "OAuth: scopes every REST call needs"). In auth.mode: "token", the REST sign-in takes the token mode's path (rest/sign-in.js:61), and the option has no effect. That also holds for tokens of auth.externalIssuers.
check-config says nothing when the option is set in token mode. An operator who sets it there expects every REST call to need those scopes, but no call does. The profile and the issuer entry's scopes still limit what a caller gets.
Proposal: check-config warns when rest.requiredScopes (or auth.requiredScopes for REST) is set while auth.mode is token, and names what limits a caller in that mode (profiles, the issuer entry's scopes, sources[].scopes).
- 主要言語
- JavaScript
- スター
- 1
- フォーク
- 1
- 平均マージ
- 3時間 57分
- マージ済み PR(30日)
- 453
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eizedev/pivotkit のほかの issue
-
area:tests documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
area:server enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
area:server
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
area:server bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
area:server area:tests
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
eizedev/pivotkit の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
TheOdinProject/curriculum#31585 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Groundskeeper-robot/groundskeeper#248 ·
メンテナーはふだん 1 日以内に返信
-
ci
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-js#1248 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
zh667/TokenLedger#69 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
debpalash/VoiceStudio#4550 ·
メンテナーはふだん 1 日以内に返信