You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by "aiceflower (via GitHub)" <gi...@apache.org> on 2026/07/16 02:04:46 UTC
[PR] [SECURITY] Remove hardcoded default wds.linkis.crypt.key, fail-closed on insecure values [linkis]
aiceflower opened a new pull request, #5456:
URL: https://github.com/apache/linkis/pull/5456
## Summary
Remove the well-known hardcoded default cryptKey `"bdp-for-server"` that was shared by all Linkis deployments not explicitly configuring `wds.linkis.crypt.key`.
## Changes
- Default value changed from `"bdp-for-server"` to empty string
- Startup validation: empty / legacy default / keys < 16 chars cause `BDPInitServerException` (fail-closed)
- Escape hatch: `linkis.crypt.key.allow.insecure=true` (default false)
- All instances must share the same key — generate 24+ random chars before upgrading
## Affected files
- `linkis-commons/linkis-module/.../ServerConfiguration.scala` (+39/-3)
## Deployment impact
| Scenario | Behavior |
|---|---|
| cryptKey not configured | Refuses to start |
| cryptKey = bdp-for-server | Refuses to start |
| cryptKey = 16+ random | No impact |
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org
Re: [PR] [SECURITY] Remove hardcoded default wds.linkis.crypt.key, fail-closed on insecure values [linkis]
Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning commented on PR #5456:
URL: https://github.com/apache/linkis/pull/5456#issuecomment-5767066887
This is the possible cause of https://github.com/apache/linkis/issues/5482 - a broken build for the last 2 months it appears
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org
Re: [PR] [SECURITY] Remove hardcoded default wds.linkis.crypt.key, fail-closed on insecure values [linkis]
Posted by "casionone (via GitHub)" <gi...@apache.org>.
casionone merged PR #5456:
URL: https://github.com/apache/linkis/pull/5456
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org