Document that securing exposed function endpoints is the application's responsibility

Đang mở
#1,559 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ruthst00 đang làm issue này rồi.

Từ ngày 28/11/2026.

  • #1562 của @ruthst00 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
66/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
documentation, security

Hướng nghiên cứu

The change belongs in the web section of the Spring Cloud Function reference docs, with a short cross-reference from the function catalog and definition documentation. Before writing, confirm in the code how the first path segment is resolved against the catalog and how spring.cloud.function.definition and spring.cloud.function.ineligible-definitions filter it. Done when the section states the responsibility for security, what is reachable by default, and both properties with an example.

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

Mô tả

5.0.x backport documentation

Spring Cloud Function is a framework for building applications, and the applications built on it are responsible for their own security. The reference documentation should say this explicitly in the web support section, together with what is reachable over HTTP by default.

Proposed content

  • With spring-cloud-function-web (MVC or WebFlux), the first path segment is used as a function name and looked up in the function catalog. Anything the catalog can resolve is invocable by that name, including beans that are not declared as Function, Supplier or Consumer but are discovered as POJO functions.
  • spring.cloud.function.definition limits what the application intends to expose, and spring.cloud.function.ineligible-definitions removes names from the catalog. Document both in this context and show an example.
  • The framework does not authenticate or authorize requests. Securing the exposed endpoints is the responsibility of the application, for example with Spring Security, or at a gateway or network layer.
  • Applications that put Spring Cloud Function web endpoints on an untrusted network should secure them and review the beans present in the application context.

Where

The web section of the reference docs, with a short cross-reference from the function catalog / definition documentation.

Ngôn ngữ chính
Java
Star
1.1k
Fork
658
Merge trung bình
4 giờ 54 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của spring-cloud/spring-cloud-function

Tất cả issue của spring-cloud/spring-cloud-function

Issue tương tự

Thêm issue về Java

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.