Severity: low · Category: design (judgment call)
Evidence
src/optypes/KeyWrapAlgorithm.scala:10-20 — opaque type KeyWrapAlgorithm = String with only Rsa = "RSA" / Aes = "AES" constants; forwarded unchecked at src/internal/CryptoCapabilityImpl.scala:20.
Problem
A typo ("rsa", "RSA-OAEP") is silently accepted and fails only at the sidecar. The doc comment intentionally allows other component-supported strings, so the open set is partly by design — flagging for a decision.
Suggested fix
Either leave as-is (documented open set — acceptable) or switch to an enum of the algorithms Dapr's crypto building block documents, with an escape hatch if arbitrary strings are still needed.
Severity: low · Category: design (judgment call)
Evidence
src/optypes/KeyWrapAlgorithm.scala:10-20—opaque type KeyWrapAlgorithm = Stringwith onlyRsa = "RSA"/Aes = "AES"constants; forwarded unchecked atsrc/internal/CryptoCapabilityImpl.scala:20.Problem
A typo (
"rsa","RSA-OAEP") is silently accepted and fails only at the sidecar. The doc comment intentionally allows other component-supported strings, so the open set is partly by design — flagging for a decision.Suggested fix
Either leave as-is (documented open set — acceptable) or switch to an
enumof the algorithms Dapr's crypto building block documents, with an escape hatch if arbitrary strings are still needed.