backport of commit 9b3c38b3ed886f06cd945a3dfd34aa7d8f8817c1 (#18859)

Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
This commit is contained in:
hc-github-team-nomad-core 2023-10-24 18:23:44 -05:00 committed by GitHub
parent 497d91f4bc
commit 76b2360213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -6,6 +6,18 @@ description: The rsadecrypt function decrypts an RSA-encrypted message.
# `rsadecrypt` Function
<Note title="Deprecated">
This function is deprecated and may be removed in the future.
</Note>
<Warning>
While it is possible to use safely, it encourages use of cryptographic
primitives with <a href="https://en.wikipedia.org/wiki/PKCS_1#Attacks">known
weaknesses</a>. <a href="/nomad/docs/concepts/variables">Nomad Variables</a>
and <a href="/nomad/docs/integrations/vault-integration">HashiCorp Vault</a> are
the recommended ways to provide secrets to workloads.
</Warning>
`rsadecrypt` decrypts an RSA-encrypted ciphertext, returning the corresponding
cleartext.

View File

@ -1308,7 +1308,12 @@
},
{
"title": "rsadecrypt",
"path": "job-specification/hcl2/functions/crypto/rsadecrypt"
"path": "job-specification/hcl2/functions/crypto/rsadecrypt",
"badge": {
"text": "Deprecated",
"type": "outlined",
"color": "neutral"
}
},
{
"title": "sha1",