From 00b416f595478332988e44cf5b8a0c072425bc13 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 11 Jun 2024 15:10:01 -0700 Subject: [PATCH] Add environment variables from bitwarden secrets --- dot_config/profile/env.d/atlassian.env.tmpl | 5 +++++ dot_config/profile/env.d/bitwarden-secrets-cli.env.tmpl | 5 +++++ dot_config/profile/env.d/cloudflare.env.tmpl | 6 ++++++ dot_config/profile/env.d/linear_app.env.tmpl | 5 +++++ dot_config/profile/env.d/openapi.env.tmpl | 5 +++++ dot_config/profile/env.d/pulumi.env.tmpl | 5 +++++ 6 files changed, 31 insertions(+) create mode 100644 dot_config/profile/env.d/atlassian.env.tmpl create mode 100644 dot_config/profile/env.d/bitwarden-secrets-cli.env.tmpl create mode 100644 dot_config/profile/env.d/cloudflare.env.tmpl create mode 100644 dot_config/profile/env.d/linear_app.env.tmpl create mode 100644 dot_config/profile/env.d/openapi.env.tmpl create mode 100644 dot_config/profile/env.d/pulumi.env.tmpl diff --git a/dot_config/profile/env.d/atlassian.env.tmpl b/dot_config/profile/env.d/atlassian.env.tmpl new file mode 100644 index 0000000..fbcc996 --- /dev/null +++ b/dot_config/profile/env.d/atlassian.env.tmpl @@ -0,0 +1,5 @@ +# chezmoi:template:left-delimiter=#{{ +#{{- /* vim: set filetype=sh: */ -}} +#{{- if and .hellotech .bws_token -}} +ATLASSIAN_TOKEN=#{{ (bitwardenSecrets "70fbcffa-2cb1-4ddf-9b1f-b18c015c9ba9" .bws_token).value }} +#{{- end }} diff --git a/dot_config/profile/env.d/bitwarden-secrets-cli.env.tmpl b/dot_config/profile/env.d/bitwarden-secrets-cli.env.tmpl new file mode 100644 index 0000000..52a4353 --- /dev/null +++ b/dot_config/profile/env.d/bitwarden-secrets-cli.env.tmpl @@ -0,0 +1,5 @@ +# chezmoi:template:left-delimiter=#{{ +#{{- /* vim: set filetype=sh: */ -}} +#{{- if .bws_token -}} +BWS_ACCESS_TOKEN=#{{ .bws_token }} +#{{- end }} diff --git a/dot_config/profile/env.d/cloudflare.env.tmpl b/dot_config/profile/env.d/cloudflare.env.tmpl new file mode 100644 index 0000000..dff81a9 --- /dev/null +++ b/dot_config/profile/env.d/cloudflare.env.tmpl @@ -0,0 +1,6 @@ +# chezmoi:template:left-delimiter=#{{ +#{{- /* vim: set filetype=sh: */ -}} +#{{- if and .hellotech .bws_token -}} +CLOUDFLARE_EMAIL=#{{ (bitwardenSecrets "fbc453ba-4c18-4471-82a3-b18c015e40c5" .bws_token).value }} +CLOUDFLARE_KEY=#{{ (bitwardenSecrets "c8aff966-4232-4629-8a08-b18c015e5da8" .bws_token).value }} +#{{- end }} diff --git a/dot_config/profile/env.d/linear_app.env.tmpl b/dot_config/profile/env.d/linear_app.env.tmpl new file mode 100644 index 0000000..ec58d5a --- /dev/null +++ b/dot_config/profile/env.d/linear_app.env.tmpl @@ -0,0 +1,5 @@ +# chezmoi:template:left-delimiter=#{{ +#{{- /* vim: set filetype=sh: */ -}} +#{{- if and .hellotech .bws_token -}} +LINEAR_APP_TOKEN=#{{ (bitwardenSecrets "76693d18-eeb1-4019-976d-b18c015f7048" .bws_token).value }} +#{{- end }} diff --git a/dot_config/profile/env.d/openapi.env.tmpl b/dot_config/profile/env.d/openapi.env.tmpl new file mode 100644 index 0000000..da9f18d --- /dev/null +++ b/dot_config/profile/env.d/openapi.env.tmpl @@ -0,0 +1,5 @@ +# chezmoi:template:left-delimiter=#{{ +#{{- /* vim: set filetype=sh: */ -}} +#{{- if .bws_token -}} +OPENAI_API_KEY=#{{ (bitwardenSecrets "579bd247-2357-4817-a033-b18c0161b7f1" .bws_token).value }} +#{{- end }} diff --git a/dot_config/profile/env.d/pulumi.env.tmpl b/dot_config/profile/env.d/pulumi.env.tmpl new file mode 100644 index 0000000..ec36fbc --- /dev/null +++ b/dot_config/profile/env.d/pulumi.env.tmpl @@ -0,0 +1,5 @@ +# chezmoi:template:left-delimiter=#{{ +#{{- /* vim: set filetype=sh: */ -}} +#{{- if and .hellotech .bws_token -}} +PULUMI_ACCESS_TOKEN=#{{ (bitwardenSecrets "4688eb1b-e889-468f-ba40-b18c01607ae8" .bws_token).value }} +#{{- end }}