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

未關閉
#1,559 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@ruthst00 已經在處理了。

開始於 2026年11月28日。

  • #1562 來自 @ruthst00 —— 未關閉

評估

難度
3/5
預估耗時
半天
新手友好度
66/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
java

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Java
星號
1.1k
分支
658
平均合併
4 小時 54 分鐘
30 天內合併 PR
10

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

spring-cloud/spring-cloud-function 的其他 Issue

查看 spring-cloud/spring-cloud-function 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。