Skip to content

Commit

Permalink
refac(back): fluidattacks#1378 deprecate k8s config from aws
Browse files Browse the repository at this point in the history
- Deprecate secretsForKubernetesConfigFromAws
as it is not being used
- Remove documentation

Signed-off-by: Daniel Salazar <[email protected]>
  • Loading branch information
dsalaza4 committed Dec 13, 2024
1 parent 2a12307 commit 2e663c6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 81 deletions.
47 changes: 0 additions & 47 deletions docs/src/api/builtins/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,53 +276,6 @@ Example:
Decrypted password: 123
```

## secretsForKubernetesConfigFromAws

Create a Kubernetes
config file out of an AWS EKS cluster
and set it up in the
[KUBECONFIG Environment Variable](https://kubernetes.io/docs/concepts/configuration/).

Types:

- secretsForKubernetesConfigFromAws
(`attrsOf secretForKubernetesConfigFromAwsType`): Optional.
Defaults to `{ }`.
- secretForKubernetesConfigFromAwsType (`submodule`):
- cluster (`str`):
AWS EKS Cluster name.
- region (`str`):
AWS Region the EKS cluster is located in.

Example:

=== "makes.nix"

```nix
{
outputs,
...
}: {
secretsForKubernetesConfigFromAws = {
myCluster = {
cluster = "makes-k8s";
region = "us-east-1";
};
};
deployTerraform = {
modules = {
moduleProd = {
setup = [
outputs."/secretsForKubernetesConfigFromAws/myCluster"
];
src = "/my/module1";
version = "0.14";
};
};
};
}
```

## secretsForTerraformFromEnv

Export secrets in a format suitable for Terraform
Expand Down
3 changes: 1 addition & 2 deletions docs/src/security/threat-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@
`secretsForAwsFromEnv`,
`secretsForAwsFromGitlab`,
`secretsForEnvFromSops`,
`secretsForGpgFromEnv`,
`secretsForKubernetesConfigFromAws`, and
`secretsForGpgFromEnv`, and
`secretsForTerraformFromEnv`.
However, we don't currently have a way to protect the user
Expand Down
1 change: 0 additions & 1 deletion src/evaluator/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
(import ./secrets-for-aws-from-gitlab/default.nix args)
(import ./secrets-for-env-from-sops/default.nix args)
(import ./secrets-for-gpg-from-env/default.nix args)
(import ./secrets-for-kubernetes-config-from-aws/default.nix args)
(import ./secrets-for-terraform-from-env/default.nix args)
(import ./test-license/default.nix args)
(import ./test-terraform/default.nix args)
Expand Down

This file was deleted.

0 comments on commit 2e663c6

Please sign in to comment.