From fa10cbc6e25e784398166c061b5214164c0616c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20D=C3=B6ll?= Date: Fri, 17 May 2024 16:22:19 +0200 Subject: [PATCH] chore: add zscaler root certificate --- .devcontainer/Dockerfile | 10 ++++++- .devcontainer/zscaler.pem | 28 ++++++++++++++++++++ .gitignore | 55 +++++++++------------------------------ 3 files changed, 50 insertions(+), 43 deletions(-) create mode 100644 .devcontainer/zscaler.pem diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 4a60fa4e..ca4a945d 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -4,6 +4,14 @@ ARG VARIANT="jammy" FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} +# Install additional OS packages, if needed. +RUN apt-get update \ + && apt-get install -y --no-install-recommends ca-certificates + +# zScaler certificate, for all busy engineers +ADD zscaler.pem /usr/local/share/ca-certificates/zscaler.crt +RUN sudo chmod 644 /usr/local/share/ca-certificates/zscaler.crt && sudo update-ca-certificates + # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install protobuf-compiler \ No newline at end of file +# && apt-get -y install protobuf-compiler diff --git a/.devcontainer/zscaler.pem b/.devcontainer/zscaler.pem new file mode 100644 index 00000000..45e3a29f --- /dev/null +++ b/.devcontainer/zscaler.pem @@ -0,0 +1,28 @@ +-----BEGIN CERTIFICATE----- +MIIE0zCCA7ugAwIBAgIJANu+mC2Jt3uTMA0GCSqGSIb3DQEBCwUAMIGhMQswCQYD +VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTERMA8GA1UEBxMIU2FuIEpvc2Ux +FTATBgNVBAoTDFpzY2FsZXIgSW5jLjEVMBMGA1UECxMMWnNjYWxlciBJbmMuMRgw +FgYDVQQDEw9ac2NhbGVyIFJvb3QgQ0ExIjAgBgkqhkiG9w0BCQEWE3N1cHBvcnRA +enNjYWxlci5j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dJh8w3NsJu4KHuVZUrmZgIohnTm0j+ +RTmYQ9IKA/pvxAcA6K1i/LO+Bt+tCX+C0yxqB8qzuo+4vAzoY5JEBhyhBhf1uK+P +/WVWFZN/+hTgpSbZgzUEnWQG2gOVd24msex+0Sr7hyr9vn6OueH+jj+vCMiAm5+u +kd7lLvJsBu3AO3jGWVLyPkS3i6Gf+rwAp1OsRrv3WnbkYcFf9xjuaf4z0hRCrLN2 +xFNjavxrHmsH8jPHVvgc1VD0Opja0l/BRVauTrUaoW6tE+wFG5rEcPGS80jjHK4S +pB5iDj2mUZH1T8lzYtuZy0ZPirxmtsk3135+CKNa2OCAhhFjE0xd +-----END CERTIFICATE----- diff --git a/.gitignore b/.gitignore index c4982877..d93892fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,9 @@ -# Created by https://www.toptal.com/developers/gitignore/api/go,node,macos,intellij,webstorm,yarn,nextjs -# Edit at https://www.toptal.com/developers/gitignore?templates=go,node,macos,intellij,webstorm,yarn,nextjs +# Created by https://www.toptal.com/developers/gitignore/api/go,node,yarn,macos,intellij,webstorm +# Edit at https://www.toptal.com/developers/gitignore?templates=go,node,yarn,macos,intellij,webstorm + +### Custom ### +*.creds +*.jwt ### Go ### # If you prefer the allow list template instead of the deny list, see community template: @@ -15,14 +19,11 @@ # Test binary, built with `go test -c` *.test -# Output of the go coverage ctool, specifically when used with LiteIDE +# Output of the go coverage tool, specifically when used with LiteIDE *.out -*.creds -*.jwt # Dependency directories (remove the comment below to include it) # vendor/ -tmp # Go workspace file go.work @@ -173,46 +174,15 @@ Temporary Items # iCloud generated files *.icloud -### NextJS ### -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts - ### Node ### # Logs logs *.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* lerna-debug.log* +.pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json @@ -253,6 +223,7 @@ jspm_packages/ web_modules/ # TypeScript cache +*.tsbuildinfo # Optional npm cache directory .npm @@ -435,4 +406,4 @@ dist # and uncomment the following lines # .pnp.* -# End of https://www.toptal.com/developers/gitignore/api/go,node,macos,intellij,webstorm,yarn,nextjs +# End of https://www.toptal.com/developers/gitignore/api/go,node,yarn,macos,intellij,webstorm