Azure / Azure/Azure-Spring-Apps

Starting application fails during initialization of boot layer with java.nio.file.AccessDeniedException: /jca/lib

オープン
#54 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
9
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
We can no longer start our Spring Boot applications deployed to Azure Spring Apps. The apps fail to start with 'Exit code 1'. The console output from the application has:
_Error occurred during initialization of boot layer
java.lang.module.FindException: java.nio.file.AccessDeniedException: /jca/lib_

What I noticed is if we disable loading a Certificate into the trust store (attached screenshot), the application will start. However, we need the Certificate loaded into the trust store so our applications can access resources utilizing the Certificate so this option isn't a viable solution.

We first ran into the error on 11/8/2023 around 2pm EST. We have multiple applications running in Azure Spring. However, we're very afraid that if we restart them, they will fail with this error because we load the same Certificate into the trust store of each application. It appears that something has changed within Azure (Azure Spring or Azure Key Vault) as we haven't changed anything with our applications for a few weeks.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a Spring Boot application deployment in Azure Spring which relies on a Certificate in the trust store
2. Add the Certificate to the application and check 'Load into trust store'
3. Start the Spring Boot application deployment
4. Start should fail with exit code 1

**Expected behavior**
Application starts successfully

**Screenshots**
![AzureSpringTrustStore](https://github.com/Azure/Azure-Spring-Apps/assets/35078136/5868abef-971b-4f37-92a2-033e06df2853)

**Can we contact you for additional details?** Y/N
Y

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

リポジトリのファイルやテストは指定されていません。まず、証明書がトラストストアに読み込まれるように構成した状態で Azure Spring Apps へのデプロイを再現し、次に初期化時のコンソール出力を調べて /jca/lib に対する AccessDeniedException を確認します。証明書がトラストストアに読み込まれたまま、アプリケーションが正常に起動すれば完了です。

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

評価

技術スタック
azure, java, spring-boot
領域
cloud, security
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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