Handle TSP error code 212

オープン 初心者向け
#185 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
backend

調査の方向性

KMS_ROLE_ASSUMPTION_MISCONFIGURED(212, ...) を既存の 2xx エントリと並べて TenantSecurityErrorCodes に追加します。ErrorResponse.toTenantSecurityException を読み、200-299 が KmsException にマッピングされ、TSP メッセージが保持されることを確認してから、コード 212/HTTP 502 をカバーする単体テストを追加または拡張します。完了とは、TSP 212 応答が UNKNOWN_ERROR ではなく元のメッセージを運ぶ KmsException になることを意味します。

索引モデルが issue の本文から書いたものです。

説明

TSP 6.1.0 will add error code 212, KmsRoleAssumptionMisconfigured (HTTP 502). The TSP will return it when a tenant's IAM role config fails a check before the TSP assumes the role (to start, a trust policy that doesn't require the external ID).
Currently TenantSecurityErrorCodes has no 212, so when the TSP sends it, ErrorResponse.toTenantSecurityException will return a TspServiceException with UNKNOWN_ERROR and replace the TSP's message with "TSP status code outside of recognized range". The message will be the only place the TSP says what's wrong with the role, so the app would be left with nothing to act on.
I think adding KMS_ROLE_ASSUMPTION_MISCONFIGURED(212, ...) would be enough, since 200-299 already maps to KmsException with the TSP's message.

主要言語
Java
スター
3
フォーク
4
平均マージ
49分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IronCoreLabs/tenant-security-client-java のほかの issue

IronCoreLabs/tenant-security-client-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。