From ff8e0caca8d7c7dc503d9c6644079c32eb6a2106 Mon Sep 17 00:00:00 2001 From: Daniel Salazar Date: Thu, 12 Dec 2024 19:02:23 -0500 Subject: [PATCH] refac(back): #1378 deprecate make sops file - Deprecate makeSopsEncryptedFile as it is too specific - Remove documentation Signed-off-by: Daniel Salazar --- docs/src/api/builtins/utilities.md | 13 ------------- makes/utils/makeSopsEncryptedFile/entrypoint.sh | 10 ---------- makes/utils/makeSopsEncryptedFile/main.nix | 10 ---------- makes/utils/makeSopsEncryptedFile/template.yaml | 1 - 4 files changed, 34 deletions(-) delete mode 100644 makes/utils/makeSopsEncryptedFile/entrypoint.sh delete mode 100644 makes/utils/makeSopsEncryptedFile/main.nix delete mode 100644 makes/utils/makeSopsEncryptedFile/template.yaml diff --git a/docs/src/api/builtins/utilities.md b/docs/src/api/builtins/utilities.md index 2fb425a4..dd8b0add 100644 --- a/docs/src/api/builtins/utilities.md +++ b/docs/src/api/builtins/utilities.md @@ -63,16 +63,3 @@ m github:fluidattacks/makes@24.09 /utils/makeRubyLock \ - `sources_yaml` is the **absolute path** to a file were the script will output results. - -## makeSopsEncryptedFile - -You can generate an encrypted [Sops](https://github.com/mozilla/sops) file like this: - -```bash -m github:fluidattacks/makes@24.09 /utils/makeSopsEncryptedFile \ - "${kms_key_arn}" \ - "${output}" -``` - -- `kms_key_arn` is the arn of the key you will use for encrypting the file. -- `output` is the path for your resulting encrypted file. diff --git a/makes/utils/makeSopsEncryptedFile/entrypoint.sh b/makes/utils/makeSopsEncryptedFile/entrypoint.sh deleted file mode 100644 index 41bf4277..00000000 --- a/makes/utils/makeSopsEncryptedFile/entrypoint.sh +++ /dev/null @@ -1,10 +0,0 @@ -# shellcheck shell=bash - -function main { - local key="${1}" - local output="${2}" - - sops --encrypt --kms "${key}" "__argTemplate__" > "${output}" -} - -main "${@}" diff --git a/makes/utils/makeSopsEncryptedFile/main.nix b/makes/utils/makeSopsEncryptedFile/main.nix deleted file mode 100644 index c893e9ad..00000000 --- a/makes/utils/makeSopsEncryptedFile/main.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ __nixpkgs__, makeScript, projectPath, ... }: -makeScript { - entrypoint = ./entrypoint.sh; - name = "make-sops-encrypted-file"; - replace = { - __argTemplate__ = - projectPath "/makes/utils/makeSopsEncryptedFile/template.yaml"; - }; - searchPaths.bin = [ __nixpkgs__.sops ]; -} diff --git a/makes/utils/makeSopsEncryptedFile/template.yaml b/makes/utils/makeSopsEncryptedFile/template.yaml deleted file mode 100644 index f410f9ca..00000000 --- a/makes/utils/makeSopsEncryptedFile/template.yaml +++ /dev/null @@ -1 +0,0 @@ -test_key: test_value