Authentication issues from Cloud foundry V2
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- java, spring-boot
- 領域
- authentication, cloud
調査の方向性
DefaultConnectionContext、CloudFoundryClient、ReactorDopplerClient、ReactorUaaClient、PasswordGrantTokenProvider を作成する @Bean メソッドから始めます。後続のリクエスト中に5分間のパスコードとトークンプロバイダーがどのように使用されるかを追跡し、その後、遅延して発生する認証失敗を再現します。ライフサイクルまたは更新が原因であることを特定し、信頼できる解決策を文書化または検証できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello everyone, we are using the cloud foundry V2 client for creating/updating Hana Cloud service instances.
The error is
unauthorized: {"error":"invalid_grant","error_description":"User authentication failed: Unauthorized"}
We have a spring boot app and they way we initialize our CF client is with a @Configuration class on application start.
@Bean
public DefaultConnectionContext connectionContext() {
String cfApi = CfToolsHelper.getCfApi();
String host = cfApi.substring(cfApi.lastIndexOf("/") + 1);
return DefaultConnectionContext.builder().apiHost(host).build();
}
@Bean
CloudFoundryClient cloudFoundryClient(ConnectionContext connectionContext, TokenProvider tokenProvider) {
return ReactorCloudFoundryClient.builder()
.connectionContext(connectionContext)
.tokenProvider(tokenProvider)
.build();
}
@Bean
ReactorDopplerClient dopplerClient(ConnectionContext connectionContext, TokenProvider tokenProvider) {
return ReactorDopplerClient.builder().connectionContext(connectionContext).tokenProvider(tokenProvider).build();
}
@Bean
ReactorUaaClient uaaClient(ConnectionContext connectionContext, TokenProvider tokenProvider) {
return ReactorUaaClient.builder().connectionContext(connectionContext).tokenProvider(tokenProvider).build();
}
We have a technical user and for the authentication we user username and x509 certificate. With it we create a one-time, 5 minute-living passcode with which we create initialize a bean of PasswordGrantTokenProvider:
return PasswordGrantTokenProvider.builder().password(passcode).username(username).build();
which is used for the init of the client above. After that we do not re-initialize PasswordGrantTokenProvider during the lifetime of the app.
We haven't seen any concrete dependency on why and when the error is thrown. E.g. after application start there can be multiple successful executions in the timespan of several hours, but after that it start failing(here I cannot say if from this point on it fails every time or if there can still be successful executions after the first failure, but for sure it fails more than not).
- 主要言語
- Java
- スター
- 334
- フォーク
- 319
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudfoundry/cf-java-client のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
cloudfoundry/cf-java-client#1374 ·
-
Integration tests fail: test-service-broker.jar incompatible with java-buildpack v5 (JDK 17 default) オープン
難易度 2/5 半日 初心者へのやさしさ 74/100
cloudfoundry/cf-java-client#1344 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
cloudfoundry/cf-java-client#1376 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
cloudfoundry/cf-java-client#1373 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
cloudfoundry/cf-java-client#1370 ·
cloudfoundry/cf-java-client の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
checkstyle/test-configs#263 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
1.0.0-alpha2 Type/Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
wso2/dpdp-accelerator#272 ·