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 摘要。