Backport of docs: deprecate rsadecrypt into stable-website #18858
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport
This PR is auto-generated from #18856 to be assessed for backporting due to the inclusion of the label backport/website.
The below text is copied from the body of the original PR.
rsadecrypt
usesPKCS #1 v1.5
padding which has multiple known weaknesses. While it is possible to use safely in Nomad, we should not encourage our users to use bad cryptographic primitives.If users want to decrypt secrets in jobspecs we should choose a cryptographic primitive designed for that purpose.
rsadecrypt
was inherited from Terraform which only implemented it to support decrypting Window's passwords on AWS EC2 instances:hashicorp/terraform#16647
This is not something that should ever be done in a jobspec, therefore there's no reason for Nomad to support this HCL2 function.
Preview to save you a few clicks:
![image](https://private-user-images.githubusercontent.com/113362/277805199-3a250bf4-0d5c-4857-8071-e42008dd3c12.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5Mzk5NzQsIm5iZiI6MTczOTkzOTY3NCwicGF0aCI6Ii8xMTMzNjIvMjc3ODA1MTk5LTNhMjUwYmY0LTBkNWMtNDg1Ny04MDcxLWU0MjAwOGRkM2MxMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQwNDM0MzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jOWNkM2MzNjFmYzAxMWFmMzIwNjExZGFiYTZkMGQ2ZDhiMThmZDAwNzczZmJkOTZiNDBkNTU3ZDNmNzRiMzkxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.fUxreBnZCB32BkTl2rDQ19mxgYlQmwI5B3E-3egOWlY)
Overview of commits