Support the certificate with linebreak strings from env variable
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 65/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- java, spring-boot
- 领域
- backend
调研方向
从 temporal-spring-boot-autoconfigure-alpha/src/main/java/io/temporal/spring/boot/autoconfigure/template/ServiceStubOptionsTemplate.java 中 issue 所引用的证书验证行开始,追踪证书值和密钥值如何从 ServiceStubsAutoConfiguration 传到该处。完成的标准是:环境变量中的证书值和私钥值包含转义的 "\n" 时,在将其转换为换行符后能够被接受,同时继续支持现有的 application.yaml/properties 行为。
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
We store the temporal cloud cert and private key as env vars opposed to application.yaml/prop.
Because the env var values cannot contain linebreak/linefeed special characters, the ServiceStubOptionsTemaplte fails to load cert/key saying it is not valid cert on this line .
(It works perfectly with application.yaml/propeties because it converts "\n" to linebreak)
Describe the solution you'd like
Add a logic to convert "\n" to "\n" in the cert string if it is there , maybe in ServiceStubOptionsTemplate class.
Describe alternatives you've considered
I replaced ServiceStubsAutoConfiguration with our customized/extended class which converts "\n" to "\n" in mtlsProperties' cert and key.
@SpringBootApplication(exclude = [ServiceStubsAutoConfiguration::class])
- 主要语言
- Java
- 星标
- 434
- 派生
- 252
- 平均合并
- 2 天 19 小时
- 30 天内合并 PR
- 14
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
temporalio/sdk-java 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
temporalio/sdk-java#2676 · 8 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
test server
难度 4/5 3-5 天 新手友好度 42/100
temporalio/sdk-java#3088 · 2 条评论 ·
维护者通常 1 天内回复
-
Warn if the SDK tried to send a payload above a specific size - Java可能已有人在做 @jmaeagle99 于 20 天前认领。 未关闭
temporalio/sdk-java#3059 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Allow configurable prefix for MDC keys可能已有人在做 @maciejdudko 于 21 天前认领。 未关闭enhancement
temporalio/sdk-java#3058 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Promise.get(timeout, unit) throws a misleading TimeoutException when the workflow is canceled可能重新可做 @Quinn-With-Two-Ns 于 35 天前认领,目前没有进行中的 PR。 未关闭
temporalio/sdk-java#3026 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 temporalio/sdk-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Content
难度 2/5 1-3 小时 新手友好度 68/100
RunestoneInteractive/rs#1559 · 1 条评论 ·
维护者通常 2 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 86/100
inu-appcenter/memorIN-backend#298 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
opendataloader-project/opendataloader-pdf#757 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/intellij-quarkus#1626 ·