CRUD権限ポリシーとCLI引数解析を整理し0.4.1へ更新 - #16
Merged
Merged
Conversation
## 概要 CRUD権限の解析と操作ごとのアクセス方針を整理し、新しい操作が追加された際に 未定義の権限で実行されない構造へ変更しました。あわせてCLI引数解析を独立した 処理へ分離し、未知・重複オプションや余分な引数を明示的な使用法エラーとして 扱うようにしました。 製品バージョンは`0.4.0`から`0.4.1`へ更新しました。 ## 変更内容 ### CRUD権限と操作ポリシー - 環境変数と`--allow`で共通利用するCRUD権限パーサーを追加 - 既定のREAD権限と対応する4権限の定義を一元化 - 全59操作のmutation分類と必要権限を明示的なポリシーとして定義 - 未知の操作を環境設定やBacklogクライアントの解決前に拒否 - ポリシー未定義の操作を暗黙のREADとして扱わず、設定エラーとして停止 ### CLI引数解析 - CLI引数解析を独立した純粋関数へ分離 - 未知のオプション、重複オプション、余分な位置引数を終了コード2で拒否 - `help`、`--version`、`tools list`、`trace`、`call`ごとの引数条件を明示 - 厳格な引数規則を`--help`へ追加 ### バージョンとトレーサビリティ - `package.json`、lock、製品情報、開発資料を`0.4.1`へ更新 - 操作対応表を再生成し、対象製品バージョンを更新 - CLIとruntimeのバージョン検証を更新 ## 動作確認 - `npm run trace:refresh`:59操作の対応表を生成 - `npm test`:41テスト成功 - `npm run smoke:node`:成功
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
CRUD権限の解析と操作ごとのアクセス方針を整理し、新しい操作が追加された際に
未定義の権限で実行されない構造へ変更しました。あわせてCLI引数解析を独立した
処理へ分離し、未知・重複オプションや余分な引数を明示的な使用法エラーとして
扱うようにしました。
製品バージョンは
0.4.0から0.4.1へ更新しました。変更内容
CRUD権限と操作ポリシー
--allowで共通利用するCRUD権限パーサーを追加CLI引数解析
help、--version、tools list、trace、callごとの引数条件を明示--helpへ追加バージョンとトレーサビリティ
package.json、lock、製品情報、開発資料を0.4.1へ更新動作確認
npm run trace:refresh:59操作の対応表を生成npm test:41テスト成功npm run smoke:node:成功