Azure / Azure/Azure-Spring-Apps

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

Đang mở
#54 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
9
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Không có tệp repository hoặc bài kiểm thử nào được nêu tên. Trước tiên, hãy tái hiện việc triển khai trong Azure Spring Apps với một chứng chỉ được cấu hình để tải vào trust store, sau đó kiểm tra đầu ra console khi khởi tạo để tìm AccessDeniedException trên /jca/lib. Hoàn tất khi ứng dụng khởi động thành công trong khi chứng chỉ vẫn được tải vào trust store.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
azure, java, spring-boot
Lĩnh vực
cloud, security
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.