diff --git a/.gitignore b/.gitignore index d3ce8cf8..bcec7b37 100644 --- a/.gitignore +++ b/.gitignore @@ -47,7 +47,7 @@ vendor /vsecm-sidecar /example-using-init-container /example-using-sidecar -/example-using-sdk +/example-using-sdk-go /example-multiple-secrets /vsecm-ist-init-container /vsecm-ist-safe diff --git a/README.md b/README.md index 83b1e4ca..cd5d1e28 100644 --- a/README.md +++ b/README.md @@ -181,18 +181,26 @@ of **VMware Secrets Manager** system design and how each component fits together Here are the important folders and files in this repository: * `./app`: Contains core **VSecM** components' source code. - * `./app/init-container`: Contains the source code for the **VSecM Init Container**. + * `./app/init_container`: Contains the source code for the **VSecM Init Container**. + * `./app/inspector`: Contains the source code for the **VSecM Inspector**. + * `./app/keygen`: Contains the source code for the **VSecM Keygen**. * `./app/safe`: Contains the **VSecM Safe** source code. * `./app/sentinel`: Contains the source code for the **VSecM Sentinel**. * `./app/sidecar`: Contains the source code for the **VSecM Sidecar**. +* `./ci`: Automation and CI/CD scripts. * `./helm-charts`: Contains **VSecM** helm charts. * `./core`: Contains core modules shared across **VSecM** components. +* `./dockerfiles`: Contains Dockerfiles for building **VSecM** container images. * `./examples`: Contains the source code of example use cases. * `./hack`: Contains scripts for building, publishing, development , and testing. * `./k8s`: Contains Kubernetes manifests that are used to deploy **VSecM** and its use cases. -* `./sdk`: Contains the source code of the **VSecM Developer SDK**. +* `./sdk`: Contains the source code of the **VSecM Developer Go SDK**. +* `./sdk-cpp`: Contains the source code of the **VSecM Developer C++ SDK**. +* `./sdk-java`: Contains the source code of the **VSecM Developer Java SDK**. +* `./sdk-python`: Contains the source code of the **VSecM Developer Python SDK**. +* `./sdk-rust`: Contains the source code of the **VSecM Developer Rust SDK**. * `./docs`: Contains the source code of the **VSecM Documentation** website (). * `./CODE_OF_CONDUCT.md`: Contains **VSecM** Code of Conduct. * `./CONTRIBUTING_DCO.md`: Contains **VSecM** Contributing Guidelines. diff --git a/app/init-container/README.md b/app/init_container/README.md similarity index 100% rename from app/init-container/README.md rename to app/init_container/README.md diff --git a/app/init-container/cmd/main.go b/app/init_container/cmd/main.go similarity index 100% rename from app/init-container/cmd/main.go rename to app/init_container/cmd/main.go diff --git a/app/sentinel/rest/core/adapter_test.go b/app/sentinel/rest/core/adapter_test.go new file mode 100644 index 00000000..54f3459a --- /dev/null +++ b/app/sentinel/rest/core/adapter_test.go @@ -0,0 +1,11 @@ +/* +| Protect your secrets, protect your sensitive data. +: Explore VMware Secrets Manager docs at https://vsecm.com/ +/ keep your secrets… secret +>/ +<>/' Copyright 2023–present VMware Secrets Manager contributors. +>/' SPDX-License-Identifier: BSD-2-Clause +*/ + +package core diff --git a/app/sentinel/rest/core/auth_test.go b/app/sentinel/rest/core/auth_test.go new file mode 100644 index 00000000..54f3459a --- /dev/null +++ b/app/sentinel/rest/core/auth_test.go @@ -0,0 +1,11 @@ +/* +| Protect your secrets, protect your sensitive data. +: Explore VMware Secrets Manager docs at https://vsecm.com/ +/ keep your secrets… secret +>/ +<>/' Copyright 2023–present VMware Secrets Manager contributors. +>/' SPDX-License-Identifier: BSD-2-Clause +*/ + +package core diff --git a/app/sentinel/rest/core/handle_test.go b/app/sentinel/rest/core/handle_test.go new file mode 100644 index 00000000..54f3459a --- /dev/null +++ b/app/sentinel/rest/core/handle_test.go @@ -0,0 +1,11 @@ +/* +| Protect your secrets, protect your sensitive data. +: Explore VMware Secrets Manager docs at https://vsecm.com/ +/ keep your secrets… secret +>/ +<>/' Copyright 2023–present VMware Secrets Manager contributors. +>/' SPDX-License-Identifier: BSD-2-Clause +*/ + +package core diff --git a/app/sentinel/rest/core/validation_test.go b/app/sentinel/rest/core/validation_test.go new file mode 100644 index 00000000..54f3459a --- /dev/null +++ b/app/sentinel/rest/core/validation_test.go @@ -0,0 +1,11 @@ +/* +| Protect your secrets, protect your sensitive data. +: Explore VMware Secrets Manager docs at https://vsecm.com/ +/ keep your secrets… secret +>/ +<>/' Copyright 2023–present VMware Secrets Manager contributors. +>/' SPDX-License-Identifier: BSD-2-Clause +*/ + +package core diff --git a/app/sentinel/rest/server_test.go b/app/sentinel/rest/server_test.go new file mode 100644 index 00000000..ecdca1bc --- /dev/null +++ b/app/sentinel/rest/server_test.go @@ -0,0 +1,11 @@ +/* +| Protect your secrets, protect your sensitive data. +: Explore VMware Secrets Manager docs at https://vsecm.com/ +/ keep your secrets… secret +>/ +<>/' Copyright 2023–present VMware Secrets Manager contributors. +>/' SPDX-License-Identifier: BSD-2-Clause +*/ + +package rest diff --git a/assets/markdown-header.txt b/assets/markdown_header.txt similarity index 100% rename from assets/markdown-header.txt rename to assets/markdown_header.txt diff --git a/assets/sourcecode-header.txt b/assets/sourcecode_header.txt similarity index 100% rename from assets/sourcecode-header.txt rename to assets/sourcecode_header.txt diff --git a/dockerfiles/example/init-container.Dockerfile b/dockerfiles/example/init-container.Dockerfile index 3b517487..62f30ad8 100644 --- a/dockerfiles/example/init-container.Dockerfile +++ b/dockerfiles/example/init-container.Dockerfile @@ -17,7 +17,7 @@ COPY vendor /build/vendor COPY go.mod /build/go.mod WORKDIR /build RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o example \ - ./examples/using-init-container/main.go + ./examples/using_init_container/main.go # generate clean, final image for end users FROM gcr.io/distroless/static-debian11 diff --git a/dockerfiles/example/multiple-secrets.Dockerfile b/dockerfiles/example/multiple-secrets.Dockerfile index 7910c1e7..3796a45b 100644 --- a/dockerfiles/example/multiple-secrets.Dockerfile +++ b/dockerfiles/example/multiple-secrets.Dockerfile @@ -18,9 +18,9 @@ COPY vendor /build/vendor COPY go.mod /build/go.mod WORKDIR /build RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o env \ - ./examples/multiple-secrets/main.go + ./examples/multiple_secrets/main.go RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o sloth \ - ./examples/multiple-secrets/busywait/main.go + ./examples/multiple_secrets/busywait/main.go # generate clean, final image for end users FROM gcr.io/distroless/static-debian11 diff --git a/dockerfiles/example/sdk-cpp.Dockerfile b/dockerfiles/example/sdk-cpp.Dockerfile new file mode 100644 index 00000000..e69de29b diff --git a/dockerfiles/example/sdk.Dockerfile b/dockerfiles/example/sdk-go.Dockerfile similarity index 93% rename from dockerfiles/example/sdk.Dockerfile rename to dockerfiles/example/sdk-go.Dockerfile index 23957ba1..89565478 100644 --- a/dockerfiles/example/sdk.Dockerfile +++ b/dockerfiles/example/sdk-go.Dockerfile @@ -18,9 +18,9 @@ COPY vendor /build/vendor COPY go.mod /build/go.mod WORKDIR /build RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o example \ - ./examples/using-sdk/main.go + ./examples/using_sdk_go/main.go RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o env \ - ./examples/using-sdk/helper/env/main.go + ./examples/using_sdk_go/helper/env/main.go # generate clean, final image for end users FROM gcr.io/distroless/static-debian11 diff --git a/dockerfiles/example/sdk-java.Dockerfile b/dockerfiles/example/sdk-java.Dockerfile new file mode 100644 index 00000000..e69de29b diff --git a/dockerfiles/example/sdk-python.Dockerfile b/dockerfiles/example/sdk-python.Dockerfile new file mode 100644 index 00000000..e69de29b diff --git a/dockerfiles/example/sdk-rust.Dockerfile b/dockerfiles/example/sdk-rust.Dockerfile new file mode 100644 index 00000000..e69de29b diff --git a/dockerfiles/example/sidecar.Dockerfile b/dockerfiles/example/sidecar.Dockerfile index d3f079b6..39763d02 100644 --- a/dockerfiles/example/sidecar.Dockerfile +++ b/dockerfiles/example/sidecar.Dockerfile @@ -17,9 +17,9 @@ COPY vendor /build/vendor COPY go.mod /build/go.mod WORKDIR /build RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o example \ - ./examples/using-sidecar/main.go + ./examples/using_sidecar/main.go RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o env \ - ./examples/using-sidecar/helper/env/main.go + ./examples/using_sidecar/helper/env/main.go # generate clean, final image for end users FROM gcr.io/distroless/static-debian11 diff --git a/dockerfiles/vsecm-ist-fips/init-container.Dockerfile b/dockerfiles/vsecm-ist-fips/init-container.Dockerfile index 86ab24fd..aa0a69f4 100644 --- a/dockerfiles/vsecm-ist-fips/init-container.Dockerfile +++ b/dockerfiles/vsecm-ist-fips/init-container.Dockerfile @@ -21,7 +21,7 @@ WORKDIR /build # GOEXPERIMENT=boringcrypto is required for FIPS compliance. RUN CGO_ENABLED=0 GOEXPERIMENT=boringcrypto GOOS=linux go build -mod vendor -a -o vsecm-init-container \ - ./app/init-container/cmd/main.go + ./app/init_container/cmd/main.go # generate clean, final image for end users FROM gcr.io/distroless/static-debian11 diff --git a/dockerfiles/vsecm-ist/init-container.Dockerfile b/dockerfiles/vsecm-ist/init-container.Dockerfile index 8649a65f..aeb47ba7 100644 --- a/dockerfiles/vsecm-ist/init-container.Dockerfile +++ b/dockerfiles/vsecm-ist/init-container.Dockerfile @@ -19,7 +19,7 @@ COPY vendor /build/vendor COPY go.mod /build/go.mod WORKDIR /build RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o vsecm-init-container \ - ./app/init-container/cmd/main.go + ./app/init_container/cmd/main.go # generate clean, final image for end users FROM gcr.io/distroless/static-debian11 diff --git a/dockerfiles/vsecm-photon-fips/init-container.Dockerfile b/dockerfiles/vsecm-photon-fips/init-container.Dockerfile index d5b46fdc..5ad75a7b 100644 --- a/dockerfiles/vsecm-photon-fips/init-container.Dockerfile +++ b/dockerfiles/vsecm-photon-fips/init-container.Dockerfile @@ -21,7 +21,7 @@ WORKDIR /build # GOEXPERIMENT=boringcrypto is required for FIPS compliance. RUN CGO_ENABLED=0 GOEXPERIMENT=boringcrypto GOOS=linux go build -mod vendor -a -o vsecm-init-container \ - ./app/init-container/cmd/main.go + ./app/init_container/cmd/main.go # generate clean, final image for end users FROM photon:5.0 diff --git a/dockerfiles/vsecm-photon/init-container.Dockerfile b/dockerfiles/vsecm-photon/init-container.Dockerfile index e4c8e514..ca0c3b41 100644 --- a/dockerfiles/vsecm-photon/init-container.Dockerfile +++ b/dockerfiles/vsecm-photon/init-container.Dockerfile @@ -19,7 +19,7 @@ COPY vendor /build/vendor COPY go.mod /build/go.mod WORKDIR /build RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -o vsecm-init-container \ - ./app/init-container/cmd/main.go + ./app/init_container/cmd/main.go # generate clean, final image for end users FROM photon:5.0 diff --git a/docs/_pages/0100-sdk.md b/docs/_pages/0100-sdk.md index 8ee55d2c..fae36880 100644 --- a/docs/_pages/0100-sdk.md +++ b/docs/_pages/0100-sdk.md @@ -85,7 +85,7 @@ Here follows a possible Deployment descriptor for such a workload. Check out [VMware Secrets Manager demo workload manifests][demos] for additional examples. -[demos]: https://github.com/vmware-tanzu/secrets-manager/tree/main/examples/using-sdk/k8s "Demo Workloads" +[demos]: https://github.com/vmware-tanzu/secrets-manager/tree/main/examples/using_sdk_go/k8s "Demo Workloads" ```yaml apiVersion: v1 @@ -125,7 +125,7 @@ spec: serviceAccountName: example containers: - name: main - image: vsecm/example-using-sdk:latest + image: vsecm/example-using-sdk-go:latest volumeMounts: - name: spire-agent-socket mountPath: /spire-agent-socket diff --git a/docs/_pages/0200-sidecar.md b/docs/_pages/0200-sidecar.md index ae226f2b..68300272 100644 --- a/docs/_pages/0200-sidecar.md +++ b/docs/_pages/0200-sidecar.md @@ -24,7 +24,7 @@ You can find the deployment manifests inside the [`./examples/workload-using-sidecar/k8s`][workload-yaml] folder of your cloned **VMware Secrets Manager** folder. -[workload-yaml]: https://github.com/vmware-tanzu/secrets-manager/tree/main/examples/using-sidecar/k8s +[workload-yaml]: https://github.com/vmware-tanzu/secrets-manager/tree/main/examples/using_sidecar/k8s To deploy our workload using that manifest, execute the following: @@ -56,7 +56,7 @@ that folder: [Here is the source code of the demo container's app][workload-src] for the sake of completeness. -[workload-src]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using-sidecar/main.go +[workload-src]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using_sidecar/main.go When you check the source code, you'll see that our demo app tries to read a secret file every 5 seconds forever: @@ -84,7 +84,7 @@ For this, there is an identity file that defines a `ClusterSPIFFEID` for the workload: ```yaml -# ./examples/workload-using-sidecar/k8s/Identity.yaml +# ./examples/using_sidecar/k8s/Identity.yaml {% raw %}kind: ClusterSPIFFEID metadata: @@ -259,7 +259,7 @@ Assuming you've had a chance to review the deployment manifests as recommended at the start of this tutorial, you might have noticed something similar to what's presented below in the [`Identity.yaml`][identity-yaml]." -[identity-yaml]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using-sidecar/k8s/Identity.yaml +[identity-yaml]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using_sidecar/k8s/Identity.yaml [clusterspiffeid]: https://github.com/spiffe/spire-controller-manager/blob/main/docs/clusterspiffeid-crd.md ```text diff --git a/docs/_pages/0210-sdk.md b/docs/_pages/0210-sdk.md index dd8dbbd9..dca4d5dc 100644 --- a/docs/_pages/0210-sdk.md +++ b/docs/_pages/0210-sdk.md @@ -71,7 +71,7 @@ All right, our cluster is as clean as a baby's butt; let's move on. Make sure [you examine the manifests][workload-yaml] to gain an understanding of what kinds of entities you've deployed to your cluster. -[workload-yaml]: https://github.com/vmware-tanzu/secrets-manager/tree/main/examples/using-sdk/k8s +[workload-yaml]: https://github.com/vmware-tanzu/secrets-manager/tree/main/examples/using_sdk/k8s ## The Benefit of Using **VSecM SDK** @@ -113,7 +113,7 @@ And that's it. You have your demo workload up and running. [Here is the source code of the demo container's app][workload-src] for the sake of completeness. -[workload-src]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using-sdk/main.go +[workload-src]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using_sdk_go/main.go When you check the source code, you'll see that our demo app tries to get the secret by querying the SDK via `sentry.Fetch()`, displays the secret if it finds diff --git a/docs/_pages/0220-init-container.md b/docs/_pages/0220-init-container.md index 735714cb..b9b38bd7 100644 --- a/docs/_pages/0220-init-container.md +++ b/docs/_pages/0220-init-container.md @@ -56,7 +56,7 @@ kubectl exec vsecm-sentinel-778b7fdc78-86v6d -n \ Make sure [you examine the manifests][workload-yaml] to gain an understanding of what kinds of entities you've deployed to your cluster. -[workload-yaml]: https://github.com/vmware-tanzu/secrets-manager/tree/main/examples/using-init-container/k8s +[workload-yaml]: https://github.com/vmware-tanzu/secrets-manager/tree/main/examples/using_init_container/k8s ## Demo Workload @@ -66,7 +66,7 @@ going to deploy soon. The following is the main application that the workload runs: ```go -// ./examples/workload-using-init-container/main.go +// ./examples/using_init_container/main.go func main() { // ... Truncated ... @@ -114,8 +114,8 @@ spec: # ... Truncated ... ``` -[deployment-yaml]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using-init-container/k8s/Deployment.yaml -[secret-yaml]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using-init-container/k8s/Secret.yaml +[deployment-yaml]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using_init_container/k8s/Deployment.yaml +[secret-yaml]: https://github.com/vmware-tanzu/secrets-manager/blob/main/examples/using_init_container/k8s/Secret.yaml ## Deploy the Demo Workload @@ -163,7 +163,7 @@ To make the init container exit successfully and initialize the main container of the Pod, execute the following script: ```bash -{% raw %}# ./examples/workload-using-init-container/register.sh +{% raw %}# ./examples/using_init_container/register.sh # Find a Sentinel node. SENTINEL=$(kubectl get po -n vsecm-system \ diff --git a/examples/multiple-secrets/README.md b/examples/multiple_secrets/README.md similarity index 94% rename from examples/multiple-secrets/README.md rename to examples/multiple_secrets/README.md index 58e99ffe..e7da3ef7 100644 --- a/examples/multiple-secrets/README.md +++ b/examples/multiple_secrets/README.md @@ -11,7 +11,7 @@ This example demonstrates how to use **VMware Secrets Manager** to register more than one secret to your workload. This demo is a slight variation of the -[Registering Secrets Using Init Container](../using-init-container) +[Registering Secrets Using Init Container](../using_init_container) example. ## A Video Is Worth a Lot of Words @@ -65,7 +65,7 @@ cd $WORKSPACE/vmware-secrets-manager # Deploy the use case from the pre-built image. make example-multiple-secrets-deploy # Switch to this use case's folder: -cd $WORKSPACE/vmware-secrets-manager/examples/multiple-secrets +cd $WORKSPACE/vmware-secrets-manager/examples/multiple_secrets # Register a secret: ./register.sh # List the secrets. diff --git a/examples/multiple-secrets/busywait/main.go b/examples/multiple_secrets/busywait/main.go similarity index 100% rename from examples/multiple-secrets/busywait/main.go rename to examples/multiple_secrets/busywait/main.go diff --git a/examples/multiple-secrets/k8s-eks/Deployment.yaml b/examples/multiple_secrets/k8s-eks/Deployment.yaml similarity index 100% rename from examples/multiple-secrets/k8s-eks/Deployment.yaml rename to examples/multiple_secrets/k8s-eks/Deployment.yaml diff --git a/examples/multiple-secrets/k8s-eks/Identity.yaml b/examples/multiple_secrets/k8s-eks/Identity.yaml similarity index 100% rename from examples/multiple-secrets/k8s-eks/Identity.yaml rename to examples/multiple_secrets/k8s-eks/Identity.yaml diff --git a/examples/multiple-secrets/k8s-eks/ServiceAccount.yaml b/examples/multiple_secrets/k8s-eks/ServiceAccount.yaml similarity index 100% rename from examples/multiple-secrets/k8s-eks/ServiceAccount.yaml rename to examples/multiple_secrets/k8s-eks/ServiceAccount.yaml diff --git a/examples/multiple-secrets/k8s-eks/image-override.yaml b/examples/multiple_secrets/k8s-eks/image-override.yaml similarity index 100% rename from examples/multiple-secrets/k8s-eks/image-override.yaml rename to examples/multiple_secrets/k8s-eks/image-override.yaml diff --git a/examples/multiple-secrets/k8s-eks/kustomization.yaml b/examples/multiple_secrets/k8s-eks/kustomization.yaml similarity index 100% rename from examples/multiple-secrets/k8s-eks/kustomization.yaml rename to examples/multiple_secrets/k8s-eks/kustomization.yaml diff --git a/examples/multiple-secrets/k8s/Deployment.yaml b/examples/multiple_secrets/k8s/Deployment.yaml similarity index 100% rename from examples/multiple-secrets/k8s/Deployment.yaml rename to examples/multiple_secrets/k8s/Deployment.yaml diff --git a/examples/multiple-secrets/k8s/Identity.yaml b/examples/multiple_secrets/k8s/Identity.yaml similarity index 100% rename from examples/multiple-secrets/k8s/Identity.yaml rename to examples/multiple_secrets/k8s/Identity.yaml diff --git a/examples/multiple-secrets/k8s/ServiceAccount.yaml b/examples/multiple_secrets/k8s/ServiceAccount.yaml similarity index 100% rename from examples/multiple-secrets/k8s/ServiceAccount.yaml rename to examples/multiple_secrets/k8s/ServiceAccount.yaml diff --git a/examples/multiple-secrets/k8s/image-override.yaml b/examples/multiple_secrets/k8s/image-override.yaml similarity index 100% rename from examples/multiple-secrets/k8s/image-override.yaml rename to examples/multiple_secrets/k8s/image-override.yaml diff --git a/examples/multiple-secrets/k8s/kustomization.yaml b/examples/multiple_secrets/k8s/kustomization.yaml similarity index 100% rename from examples/multiple-secrets/k8s/kustomization.yaml rename to examples/multiple_secrets/k8s/kustomization.yaml diff --git a/examples/multiple-secrets/main.go b/examples/multiple_secrets/main.go similarity index 100% rename from examples/multiple-secrets/main.go rename to examples/multiple_secrets/main.go diff --git a/examples/multiple-secrets/register.sh b/examples/multiple_secrets/register.sh similarity index 100% rename from examples/multiple-secrets/register.sh rename to examples/multiple_secrets/register.sh diff --git a/examples/multiple-secrets/secrets.sh b/examples/multiple_secrets/secrets.sh similarity index 100% rename from examples/multiple-secrets/secrets.sh rename to examples/multiple_secrets/secrets.sh diff --git a/examples/operator-decrpyt-secrets/key.txt b/examples/operator_decrpyt_secrets/key.txt similarity index 100% rename from examples/operator-decrpyt-secrets/key.txt rename to examples/operator_decrpyt_secrets/key.txt diff --git a/examples/operator-decrpyt-secrets/reveal.sh b/examples/operator_decrpyt_secrets/reveal.sh similarity index 100% rename from examples/operator-decrpyt-secrets/reveal.sh rename to examples/operator_decrpyt_secrets/reveal.sh diff --git a/examples/operator-decrpyt-secrets/secrets.json b/examples/operator_decrpyt_secrets/secrets.json similarity index 100% rename from examples/operator-decrpyt-secrets/secrets.json rename to examples/operator_decrpyt_secrets/secrets.json diff --git a/examples/provide-encrypted-secrets/README.md b/examples/provide_encrypted_secrets/README.md similarity index 100% rename from examples/provide-encrypted-secrets/README.md rename to examples/provide_encrypted_secrets/README.md diff --git a/examples/provide-encrypted-secrets/register.sh.gpg b/examples/provide_encrypted_secrets/register.sh.gpg similarity index 100% rename from examples/provide-encrypted-secrets/register.sh.gpg rename to examples/provide_encrypted_secrets/register.sh.gpg diff --git a/examples/provide-encrypted-secrets/run.sh b/examples/provide_encrypted_secrets/run.sh similarity index 100% rename from examples/provide-encrypted-secrets/run.sh rename to examples/provide_encrypted_secrets/run.sh diff --git a/examples/using-init-container/README.md b/examples/using_init_container/README.md similarity index 95% rename from examples/using-init-container/README.md rename to examples/using_init_container/README.md index c86a17dc..fe4f329c 100644 --- a/examples/using-init-container/README.md +++ b/examples/using_init_container/README.md @@ -42,7 +42,7 @@ make build-local # Deploy the use case: make example-init-container-deploy-local # Switch to this use case's folder: -cd $WORKSPACE/vmware-secrets-manager/examples/using-init-container +cd $WORKSPACE/vmware-secrets-manager/examples/using_init_container # Check and make sure that the workload pod is still initializing: kubectl get po -n default # Register a secret: @@ -64,7 +64,7 @@ cd $WORKSPACE/vmware-secrets-manager # Deploy the use case from the pre-built image. make example-sidecar-deploy # Switch to this use case's folder: -cd $WORKSPACE/vmware-secrets-manager/examples/using-sidecar +cd $WORKSPACE/vmware-secrets-manager/examples/using_sidecar # Check and make sure that the workload pod is still initializing: kubectl get po -n default # Register a secret: diff --git a/examples/using-init-container/encrypt.sh b/examples/using_init_container/encrypt.sh similarity index 100% rename from examples/using-init-container/encrypt.sh rename to examples/using_init_container/encrypt.sh diff --git a/examples/using-init-container/k8s-eks/Deployment.yaml b/examples/using_init_container/k8s-eks/Deployment.yaml similarity index 100% rename from examples/using-init-container/k8s-eks/Deployment.yaml rename to examples/using_init_container/k8s-eks/Deployment.yaml diff --git a/examples/using-init-container/k8s-eks/Identity.yaml b/examples/using_init_container/k8s-eks/Identity.yaml similarity index 100% rename from examples/using-init-container/k8s-eks/Identity.yaml rename to examples/using_init_container/k8s-eks/Identity.yaml diff --git a/examples/using-init-container/k8s-eks/Secret.yaml b/examples/using_init_container/k8s-eks/Secret.yaml similarity index 100% rename from examples/using-init-container/k8s-eks/Secret.yaml rename to examples/using_init_container/k8s-eks/Secret.yaml diff --git a/examples/using-init-container/k8s-eks/ServiceAccount.yaml b/examples/using_init_container/k8s-eks/ServiceAccount.yaml similarity index 100% rename from examples/using-init-container/k8s-eks/ServiceAccount.yaml rename to examples/using_init_container/k8s-eks/ServiceAccount.yaml diff --git a/examples/using-init-container/k8s-eks/image-override.yaml b/examples/using_init_container/k8s-eks/image-override.yaml similarity index 100% rename from examples/using-init-container/k8s-eks/image-override.yaml rename to examples/using_init_container/k8s-eks/image-override.yaml diff --git a/examples/using-init-container/k8s-eks/kustomization.yaml b/examples/using_init_container/k8s-eks/kustomization.yaml similarity index 100% rename from examples/using-init-container/k8s-eks/kustomization.yaml rename to examples/using_init_container/k8s-eks/kustomization.yaml diff --git a/examples/using-init-container/k8s/Deployment.yaml b/examples/using_init_container/k8s/Deployment.yaml similarity index 100% rename from examples/using-init-container/k8s/Deployment.yaml rename to examples/using_init_container/k8s/Deployment.yaml diff --git a/examples/using-init-container/k8s/Identity.yaml b/examples/using_init_container/k8s/Identity.yaml similarity index 100% rename from examples/using-init-container/k8s/Identity.yaml rename to examples/using_init_container/k8s/Identity.yaml diff --git a/examples/using-init-container/k8s/Secret.yaml b/examples/using_init_container/k8s/Secret.yaml similarity index 100% rename from examples/using-init-container/k8s/Secret.yaml rename to examples/using_init_container/k8s/Secret.yaml diff --git a/examples/using-init-container/k8s/ServiceAccount.yaml b/examples/using_init_container/k8s/ServiceAccount.yaml similarity index 100% rename from examples/using-init-container/k8s/ServiceAccount.yaml rename to examples/using_init_container/k8s/ServiceAccount.yaml diff --git a/examples/using-init-container/k8s/image-override.yaml b/examples/using_init_container/k8s/image-override.yaml similarity index 100% rename from examples/using-init-container/k8s/image-override.yaml rename to examples/using_init_container/k8s/image-override.yaml diff --git a/examples/using-init-container/k8s/kustomization.yaml b/examples/using_init_container/k8s/kustomization.yaml similarity index 100% rename from examples/using-init-container/k8s/kustomization.yaml rename to examples/using_init_container/k8s/kustomization.yaml diff --git a/examples/using-init-container/main.go b/examples/using_init_container/main.go similarity index 100% rename from examples/using-init-container/main.go rename to examples/using_init_container/main.go diff --git a/examples/using-init-container/register.sh b/examples/using_init_container/register.sh similarity index 100% rename from examples/using-init-container/register.sh rename to examples/using_init_container/register.sh diff --git a/examples/using-init-container/register.sh.gpg b/examples/using_init_container/register.sh.gpg similarity index 100% rename from examples/using-init-container/register.sh.gpg rename to examples/using_init_container/register.sh.gpg diff --git a/examples/using-init-container/tail.sh b/examples/using_init_container/tail.sh similarity index 100% rename from examples/using-init-container/tail.sh rename to examples/using_init_container/tail.sh diff --git a/examples/using_sdk_cpp/.keep b/examples/using_sdk_cpp/.keep new file mode 100644 index 00000000..e69de29b diff --git a/examples/using-sdk/README.md b/examples/using_sdk_go/README.md similarity index 95% rename from examples/using-sdk/README.md rename to examples/using_sdk_go/README.md index 3083910a..0de0c1b7 100644 --- a/examples/using-sdk/README.md +++ b/examples/using_sdk_go/README.md @@ -50,7 +50,7 @@ make build-local # Deploy the use case: make example-sdk-deploy-local # Switch to this use case's folder: -cd $WORKSPACE/vmware-secrets-manager/examples/using-sdk +cd $WORKSPACE/vmware-secrets-manager/examples/using_sdk_go # Register a secret: ./register.sh # Tail the workload's logs and verify that the secret is there: @@ -68,7 +68,7 @@ cd $WORKSPACE/vmware-secrets-manager # Deploy the use case from the pre-built image. make example-sdk-deploy # Switch to this use case's folder: -cd $WORKSPACE/vmware-secrets-manager/examples/using-sdk +cd $WORKSPACE/vmware-secrets-manager/examples/using_sdk_go # Register a secret: ./register.sh # Tail the workload's logs and verify that the secret is there: diff --git a/examples/using-sdk/helper/env/main.go b/examples/using_sdk_go/helper/env/main.go similarity index 100% rename from examples/using-sdk/helper/env/main.go rename to examples/using_sdk_go/helper/env/main.go diff --git a/examples/workshop-aegis/sdk/Deployment.yaml b/examples/using_sdk_go/k8s-eks/Deployment.yaml similarity index 97% rename from examples/workshop-aegis/sdk/Deployment.yaml rename to examples/using_sdk_go/k8s-eks/Deployment.yaml index bc988f45..98fecfbd 100644 --- a/examples/workshop-aegis/sdk/Deployment.yaml +++ b/examples/using_sdk_go/k8s-eks/Deployment.yaml @@ -28,7 +28,7 @@ spec: serviceAccountName: example containers: - name: main - image: vsecm/example-using-sdk:0.24.0 + image: vsecm/example-using-sdk-go:0.24.0 volumeMounts: # Volume mount for SPIRE unix domain socket. - name: spire-agent-socket diff --git a/examples/using-sdk/k8s-eks/Identity.yaml b/examples/using_sdk_go/k8s-eks/Identity.yaml similarity index 100% rename from examples/using-sdk/k8s-eks/Identity.yaml rename to examples/using_sdk_go/k8s-eks/Identity.yaml diff --git a/examples/using-sdk/k8s-eks/Secret.yaml b/examples/using_sdk_go/k8s-eks/Secret.yaml similarity index 100% rename from examples/using-sdk/k8s-eks/Secret.yaml rename to examples/using_sdk_go/k8s-eks/Secret.yaml diff --git a/examples/using-sdk/k8s-eks/ServiceAccount.yaml b/examples/using_sdk_go/k8s-eks/ServiceAccount.yaml similarity index 100% rename from examples/using-sdk/k8s-eks/ServiceAccount.yaml rename to examples/using_sdk_go/k8s-eks/ServiceAccount.yaml diff --git a/examples/using-sdk/k8s-eks/image-override.yaml b/examples/using_sdk_go/k8s-eks/image-override.yaml similarity index 86% rename from examples/using-sdk/k8s-eks/image-override.yaml rename to examples/using_sdk_go/k8s-eks/image-override.yaml index f57c7c7c..f0b78e51 100644 --- a/examples/using-sdk/k8s-eks/image-override.yaml +++ b/examples/using_sdk_go/k8s-eks/image-override.yaml @@ -18,4 +18,4 @@ spec: spec: containers: - name: main - image: public.ecr.aws/h8y1n7y7/example-using-sdk:0.24.0 + image: public.ecr.aws/h8y1n7y7/example-using-sdk-go:0.24.0 diff --git a/examples/using-sdk/k8s-eks/kustomization.yaml b/examples/using_sdk_go/k8s-eks/kustomization.yaml similarity index 100% rename from examples/using-sdk/k8s-eks/kustomization.yaml rename to examples/using_sdk_go/k8s-eks/kustomization.yaml diff --git a/examples/using-sdk/k8s-eks/Deployment.yaml b/examples/using_sdk_go/k8s/Deployment.yaml similarity index 97% rename from examples/using-sdk/k8s-eks/Deployment.yaml rename to examples/using_sdk_go/k8s/Deployment.yaml index bc988f45..98fecfbd 100644 --- a/examples/using-sdk/k8s-eks/Deployment.yaml +++ b/examples/using_sdk_go/k8s/Deployment.yaml @@ -28,7 +28,7 @@ spec: serviceAccountName: example containers: - name: main - image: vsecm/example-using-sdk:0.24.0 + image: vsecm/example-using-sdk-go:0.24.0 volumeMounts: # Volume mount for SPIRE unix domain socket. - name: spire-agent-socket diff --git a/examples/using-sdk/k8s/Identity.yaml b/examples/using_sdk_go/k8s/Identity.yaml similarity index 100% rename from examples/using-sdk/k8s/Identity.yaml rename to examples/using_sdk_go/k8s/Identity.yaml diff --git a/examples/using-sdk/k8s/Secret.yaml b/examples/using_sdk_go/k8s/Secret.yaml similarity index 100% rename from examples/using-sdk/k8s/Secret.yaml rename to examples/using_sdk_go/k8s/Secret.yaml diff --git a/examples/using-sdk/k8s/ServiceAccount.yaml b/examples/using_sdk_go/k8s/ServiceAccount.yaml similarity index 100% rename from examples/using-sdk/k8s/ServiceAccount.yaml rename to examples/using_sdk_go/k8s/ServiceAccount.yaml diff --git a/examples/using-sdk/k8s/image-override.yaml b/examples/using_sdk_go/k8s/image-override.yaml similarity index 88% rename from examples/using-sdk/k8s/image-override.yaml rename to examples/using_sdk_go/k8s/image-override.yaml index 9d8e6554..43aa4ecc 100644 --- a/examples/using-sdk/k8s/image-override.yaml +++ b/examples/using_sdk_go/k8s/image-override.yaml @@ -18,4 +18,4 @@ spec: spec: containers: - name: main - image: localhost:5000/example-using-sdk:0.23.4 + image: localhost:5000/example-using-sdk-go:0.24.0 diff --git a/examples/using-sdk/k8s/kustomization.yaml b/examples/using_sdk_go/k8s/kustomization.yaml similarity index 100% rename from examples/using-sdk/k8s/kustomization.yaml rename to examples/using_sdk_go/k8s/kustomization.yaml diff --git a/examples/using-sdk/main.go b/examples/using_sdk_go/main.go similarity index 100% rename from examples/using-sdk/main.go rename to examples/using_sdk_go/main.go diff --git a/examples/using-sdk/register.sh b/examples/using_sdk_go/register.sh similarity index 100% rename from examples/using-sdk/register.sh rename to examples/using_sdk_go/register.sh diff --git a/examples/using-sdk/tail.sh b/examples/using_sdk_go/tail.sh similarity index 100% rename from examples/using-sdk/tail.sh rename to examples/using_sdk_go/tail.sh diff --git a/examples/using_sdk_java/.keep b/examples/using_sdk_java/.keep new file mode 100644 index 00000000..e69de29b diff --git a/examples/using_sdk_python/.keep b/examples/using_sdk_python/.keep new file mode 100644 index 00000000..e69de29b diff --git a/examples/using_sdk_rust/.keep b/examples/using_sdk_rust/.keep new file mode 100644 index 00000000..e69de29b diff --git a/examples/using-sidecar/README.md b/examples/using_sidecar/README.md similarity index 94% rename from examples/using-sidecar/README.md rename to examples/using_sidecar/README.md index d5a16f8e..7f22270f 100644 --- a/examples/using-sidecar/README.md +++ b/examples/using_sidecar/README.md @@ -42,7 +42,7 @@ make build-local # Deploy the use case: make example-sidecar-deploy-local # Switch to this use case's folder: -cd $WORKSPACE/vmware-secrets-manager/examples/using-sidecar +cd $WORKSPACE/vmware-secrets-manager/examples/using_sidecar # Register a secret: ./register.sh # Tail the workload's logs and verify that the secret is there: @@ -60,7 +60,7 @@ cd $WORKSPACE/vmware-secrets-manager # Deploy the use case from the pre-built image. make example-sidecar-deploy # Switch to this use case's folder: -cd $WORKSPACE/vmware-secrets-manager/examples/using-sidecar +cd $WORKSPACE/vmware-secrets-manager/examples/using_sidecar # Register a secret: ./register.sh # Tail the workload's logs and verify that the secret is there: diff --git a/examples/using-sidecar/helper/env/main.go b/examples/using_sidecar/helper/env/main.go similarity index 100% rename from examples/using-sidecar/helper/env/main.go rename to examples/using_sidecar/helper/env/main.go diff --git a/examples/using-sidecar/k8s-eks/Deployment.yaml b/examples/using_sidecar/k8s-eks/Deployment.yaml similarity index 100% rename from examples/using-sidecar/k8s-eks/Deployment.yaml rename to examples/using_sidecar/k8s-eks/Deployment.yaml diff --git a/examples/using-sidecar/k8s-eks/Identity.yaml b/examples/using_sidecar/k8s-eks/Identity.yaml similarity index 100% rename from examples/using-sidecar/k8s-eks/Identity.yaml rename to examples/using_sidecar/k8s-eks/Identity.yaml diff --git a/examples/using-sidecar/k8s-eks/Secret.yaml b/examples/using_sidecar/k8s-eks/Secret.yaml similarity index 100% rename from examples/using-sidecar/k8s-eks/Secret.yaml rename to examples/using_sidecar/k8s-eks/Secret.yaml diff --git a/examples/using-sidecar/k8s-eks/ServiceAccount.yaml b/examples/using_sidecar/k8s-eks/ServiceAccount.yaml similarity index 100% rename from examples/using-sidecar/k8s-eks/ServiceAccount.yaml rename to examples/using_sidecar/k8s-eks/ServiceAccount.yaml diff --git a/examples/using-sidecar/k8s-eks/image-override.yaml b/examples/using_sidecar/k8s-eks/image-override.yaml similarity index 100% rename from examples/using-sidecar/k8s-eks/image-override.yaml rename to examples/using_sidecar/k8s-eks/image-override.yaml diff --git a/examples/using-sidecar/k8s-eks/kustomization.yaml b/examples/using_sidecar/k8s-eks/kustomization.yaml similarity index 100% rename from examples/using-sidecar/k8s-eks/kustomization.yaml rename to examples/using_sidecar/k8s-eks/kustomization.yaml diff --git a/examples/using-sidecar/k8s/Deployment.yaml b/examples/using_sidecar/k8s/Deployment.yaml similarity index 100% rename from examples/using-sidecar/k8s/Deployment.yaml rename to examples/using_sidecar/k8s/Deployment.yaml diff --git a/examples/using-sidecar/k8s/Identity.yaml b/examples/using_sidecar/k8s/Identity.yaml similarity index 100% rename from examples/using-sidecar/k8s/Identity.yaml rename to examples/using_sidecar/k8s/Identity.yaml diff --git a/examples/using-sidecar/k8s/Secret.yaml b/examples/using_sidecar/k8s/Secret.yaml similarity index 100% rename from examples/using-sidecar/k8s/Secret.yaml rename to examples/using_sidecar/k8s/Secret.yaml diff --git a/examples/using-sidecar/k8s/ServiceAccount.yaml b/examples/using_sidecar/k8s/ServiceAccount.yaml similarity index 100% rename from examples/using-sidecar/k8s/ServiceAccount.yaml rename to examples/using_sidecar/k8s/ServiceAccount.yaml diff --git a/examples/using-sidecar/k8s/image-override.yaml b/examples/using_sidecar/k8s/image-override.yaml similarity index 100% rename from examples/using-sidecar/k8s/image-override.yaml rename to examples/using_sidecar/k8s/image-override.yaml diff --git a/examples/using-sidecar/k8s/kustomization.yaml b/examples/using_sidecar/k8s/kustomization.yaml similarity index 100% rename from examples/using-sidecar/k8s/kustomization.yaml rename to examples/using_sidecar/k8s/kustomization.yaml diff --git a/examples/using-sidecar/main.go b/examples/using_sidecar/main.go similarity index 100% rename from examples/using-sidecar/main.go rename to examples/using_sidecar/main.go diff --git a/examples/using-sidecar/register.sh b/examples/using_sidecar/register.sh similarity index 100% rename from examples/using-sidecar/register.sh rename to examples/using_sidecar/register.sh diff --git a/examples/using-sidecar/tail.sh b/examples/using_sidecar/tail.sh similarity index 100% rename from examples/using-sidecar/tail.sh rename to examples/using_sidecar/tail.sh diff --git a/examples/vsecm-inspector/Deployment.yaml b/examples/using_vsecm_inspector/Deployment.yaml similarity index 100% rename from examples/vsecm-inspector/Deployment.yaml rename to examples/using_vsecm_inspector/Deployment.yaml diff --git a/examples/vsecm-inspector/Identity.yaml b/examples/using_vsecm_inspector/Identity.yaml similarity index 100% rename from examples/vsecm-inspector/Identity.yaml rename to examples/using_vsecm_inspector/Identity.yaml diff --git a/examples/vsecm-inspector/ServiceAccount.yaml b/examples/using_vsecm_inspector/ServiceAccount.yaml similarity index 100% rename from examples/vsecm-inspector/ServiceAccount.yaml rename to examples/using_vsecm_inspector/ServiceAccount.yaml diff --git a/examples/workshop-aegis/README.md b/examples/workshop_aegis/README.md similarity index 100% rename from examples/workshop-aegis/README.md rename to examples/workshop_aegis/README.md diff --git a/examples/workshop-aegis/delete-secret.sh b/examples/workshop_aegis/delete-secret.sh similarity index 100% rename from examples/workshop-aegis/delete-secret.sh rename to examples/workshop_aegis/delete-secret.sh diff --git a/examples/workshop-aegis/delete-workload.sh b/examples/workshop_aegis/delete-workload.sh similarity index 100% rename from examples/workshop-aegis/delete-workload.sh rename to examples/workshop_aegis/delete-workload.sh diff --git a/examples/workshop-aegis/encrypt-secret.sh b/examples/workshop_aegis/encrypt-secret.sh similarity index 100% rename from examples/workshop-aegis/encrypt-secret.sh rename to examples/workshop_aegis/encrypt-secret.sh diff --git a/examples/workshop-aegis/env.sh b/examples/workshop_aegis/env.sh similarity index 100% rename from examples/workshop-aegis/env.sh rename to examples/workshop_aegis/env.sh diff --git a/examples/workshop-aegis/ids/Inspector.yaml b/examples/workshop_aegis/ids/Inspector.yaml similarity index 100% rename from examples/workshop-aegis/ids/Inspector.yaml rename to examples/workshop_aegis/ids/Inspector.yaml diff --git a/examples/workshop-aegis/ids/Workload.yaml b/examples/workshop_aegis/ids/Workload.yaml similarity index 100% rename from examples/workshop-aegis/ids/Workload.yaml rename to examples/workshop_aegis/ids/Workload.yaml diff --git a/examples/workshop-aegis/init-container/Deployment.yaml b/examples/workshop_aegis/init-container/Deployment.yaml similarity index 100% rename from examples/workshop-aegis/init-container/Deployment.yaml rename to examples/workshop_aegis/init-container/Deployment.yaml diff --git a/examples/workshop-aegis/init-container/Secret.yaml b/examples/workshop_aegis/init-container/Secret.yaml similarity index 100% rename from examples/workshop-aegis/init-container/Secret.yaml rename to examples/workshop_aegis/init-container/Secret.yaml diff --git a/examples/workshop-aegis/init-container/ServiceAccount.yaml b/examples/workshop_aegis/init-container/ServiceAccount.yaml similarity index 100% rename from examples/workshop-aegis/init-container/ServiceAccount.yaml rename to examples/workshop_aegis/init-container/ServiceAccount.yaml diff --git a/examples/workshop-aegis/init-container/image-override.yaml b/examples/workshop_aegis/init-container/image-override.yaml similarity index 100% rename from examples/workshop-aegis/init-container/image-override.yaml rename to examples/workshop_aegis/init-container/image-override.yaml diff --git a/examples/workshop-aegis/init-container/kustomization.yaml b/examples/workshop_aegis/init-container/kustomization.yaml similarity index 100% rename from examples/workshop-aegis/init-container/kustomization.yaml rename to examples/workshop_aegis/init-container/kustomization.yaml diff --git a/examples/workshop-aegis/inspector/Deployment.yaml b/examples/workshop_aegis/inspector/Deployment.yaml similarity index 100% rename from examples/workshop-aegis/inspector/Deployment.yaml rename to examples/workshop_aegis/inspector/Deployment.yaml diff --git a/examples/workshop-aegis/inspector/ServiceAccount.yaml b/examples/workshop_aegis/inspector/ServiceAccount.yaml similarity index 100% rename from examples/workshop-aegis/inspector/ServiceAccount.yaml rename to examples/workshop_aegis/inspector/ServiceAccount.yaml diff --git a/examples/workshop-aegis/inspector/image-override.yaml b/examples/workshop_aegis/inspector/image-override.yaml similarity index 100% rename from examples/workshop-aegis/inspector/image-override.yaml rename to examples/workshop_aegis/inspector/image-override.yaml diff --git a/examples/workshop-aegis/inspector/kustomization.yaml b/examples/workshop_aegis/inspector/kustomization.yaml similarity index 100% rename from examples/workshop-aegis/inspector/kustomization.yaml rename to examples/workshop_aegis/inspector/kustomization.yaml diff --git a/examples/workshop-aegis/install-clusterspiffeids.sh b/examples/workshop_aegis/install-clusterspiffeids.sh similarity index 100% rename from examples/workshop-aegis/install-clusterspiffeids.sh rename to examples/workshop_aegis/install-clusterspiffeids.sh diff --git a/examples/workshop-aegis/install-inspector.sh b/examples/workshop_aegis/install-inspector.sh similarity index 100% rename from examples/workshop-aegis/install-inspector.sh rename to examples/workshop_aegis/install-inspector.sh diff --git a/examples/workshop-aegis/install-workload-using-init-container.sh b/examples/workshop_aegis/install-workload-using-init-container.sh similarity index 100% rename from examples/workshop-aegis/install-workload-using-init-container.sh rename to examples/workshop_aegis/install-workload-using-init-container.sh diff --git a/examples/workshop-aegis/install-workload-using-sdk.sh b/examples/workshop_aegis/install-workload-using-sdk.sh similarity index 100% rename from examples/workshop-aegis/install-workload-using-sdk.sh rename to examples/workshop_aegis/install-workload-using-sdk.sh diff --git a/examples/workshop-aegis/install-workload-using-sidecar.sh b/examples/workshop_aegis/install-workload-using-sidecar.sh similarity index 100% rename from examples/workshop-aegis/install-workload-using-sidecar.sh rename to examples/workshop_aegis/install-workload-using-sidecar.sh diff --git a/examples/workshop-aegis/register-encrypted-secret.sh b/examples/workshop_aegis/register-encrypted-secret.sh similarity index 100% rename from examples/workshop-aegis/register-encrypted-secret.sh rename to examples/workshop_aegis/register-encrypted-secret.sh diff --git a/examples/workshop-aegis/register-k8s-secret.sh b/examples/workshop_aegis/register-k8s-secret.sh similarity index 100% rename from examples/workshop-aegis/register-k8s-secret.sh rename to examples/workshop_aegis/register-k8s-secret.sh diff --git a/examples/workshop-aegis/register-multiple-secrets.sh b/examples/workshop_aegis/register-multiple-secrets.sh similarity index 100% rename from examples/workshop-aegis/register-multiple-secrets.sh rename to examples/workshop_aegis/register-multiple-secrets.sh diff --git a/examples/workshop-aegis/register-plain-secret.sh b/examples/workshop_aegis/register-plain-secret.sh similarity index 100% rename from examples/workshop-aegis/register-plain-secret.sh rename to examples/workshop_aegis/register-plain-secret.sh diff --git a/examples/workshop-aegis/register-secret-json.sh b/examples/workshop_aegis/register-secret-json.sh similarity index 100% rename from examples/workshop-aegis/register-secret-json.sh rename to examples/workshop_aegis/register-secret-json.sh diff --git a/examples/workshop-aegis/register-secret-yaml.sh b/examples/workshop_aegis/register-secret-yaml.sh similarity index 100% rename from examples/workshop-aegis/register-secret-yaml.sh rename to examples/workshop_aegis/register-secret-yaml.sh diff --git a/examples/workshop-aegis/register-transformed-secret.sh b/examples/workshop_aegis/register-transformed-secret.sh similarity index 100% rename from examples/workshop-aegis/register-transformed-secret.sh rename to examples/workshop_aegis/register-transformed-secret.sh diff --git a/examples/workshop-aegis/safe-logs.sh b/examples/workshop_aegis/safe-logs.sh similarity index 100% rename from examples/workshop-aegis/safe-logs.sh rename to examples/workshop_aegis/safe-logs.sh diff --git a/examples/using-sdk/k8s/Deployment.yaml b/examples/workshop_aegis/sdk/Deployment.yaml similarity index 97% rename from examples/using-sdk/k8s/Deployment.yaml rename to examples/workshop_aegis/sdk/Deployment.yaml index 57d08125..98fecfbd 100644 --- a/examples/using-sdk/k8s/Deployment.yaml +++ b/examples/workshop_aegis/sdk/Deployment.yaml @@ -28,7 +28,7 @@ spec: serviceAccountName: example containers: - name: main - image: vsecm/example-using-sdk:0.23.4 + image: vsecm/example-using-sdk-go:0.24.0 volumeMounts: # Volume mount for SPIRE unix domain socket. - name: spire-agent-socket diff --git a/examples/workshop-aegis/sdk/ServiceAccount.yaml b/examples/workshop_aegis/sdk/ServiceAccount.yaml similarity index 100% rename from examples/workshop-aegis/sdk/ServiceAccount.yaml rename to examples/workshop_aegis/sdk/ServiceAccount.yaml diff --git a/examples/workshop-aegis/sdk/image-override.yaml b/examples/workshop_aegis/sdk/image-override.yaml similarity index 100% rename from examples/workshop-aegis/sdk/image-override.yaml rename to examples/workshop_aegis/sdk/image-override.yaml diff --git a/examples/workshop-aegis/sdk/kustomization.yaml b/examples/workshop_aegis/sdk/kustomization.yaml similarity index 100% rename from examples/workshop-aegis/sdk/kustomization.yaml rename to examples/workshop_aegis/sdk/kustomization.yaml diff --git a/examples/workshop-aegis/secrets.sh b/examples/workshop_aegis/secrets.sh similarity index 100% rename from examples/workshop-aegis/secrets.sh rename to examples/workshop_aegis/secrets.sh diff --git a/examples/workshop-aegis/sidecar/Deployment.yaml b/examples/workshop_aegis/sidecar/Deployment.yaml similarity index 100% rename from examples/workshop-aegis/sidecar/Deployment.yaml rename to examples/workshop_aegis/sidecar/Deployment.yaml diff --git a/examples/workshop-aegis/sidecar/ServiceAccount.yaml b/examples/workshop_aegis/sidecar/ServiceAccount.yaml similarity index 100% rename from examples/workshop-aegis/sidecar/ServiceAccount.yaml rename to examples/workshop_aegis/sidecar/ServiceAccount.yaml diff --git a/examples/workshop-aegis/sidecar/image-override.yaml b/examples/workshop_aegis/sidecar/image-override.yaml similarity index 100% rename from examples/workshop-aegis/sidecar/image-override.yaml rename to examples/workshop_aegis/sidecar/image-override.yaml diff --git a/examples/workshop-aegis/sidecar/kustomization.yaml b/examples/workshop_aegis/sidecar/kustomization.yaml similarity index 100% rename from examples/workshop-aegis/sidecar/kustomization.yaml rename to examples/workshop_aegis/sidecar/kustomization.yaml diff --git a/examples/workshop-aegis/toc.md b/examples/workshop_aegis/toc.md similarity index 100% rename from examples/workshop-aegis/toc.md rename to examples/workshop_aegis/toc.md diff --git a/examples/workshop-aegis/workload-logs.sh b/examples/workshop_aegis/workload-logs.sh similarity index 100% rename from examples/workshop-aegis/workload-logs.sh rename to examples/workshop_aegis/workload-logs.sh diff --git a/examples/workshop-federation/cluster-1/bundle/ConfigMap.yaml b/examples/workshop_federation/cluster-1/bundle/ConfigMap.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/bundle/ConfigMap.yaml rename to examples/workshop_federation/cluster-1/bundle/ConfigMap.yaml diff --git a/examples/workshop-federation/cluster-1/bundle/Endpoint.yaml b/examples/workshop_federation/cluster-1/bundle/Endpoint.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/bundle/Endpoint.yaml rename to examples/workshop_federation/cluster-1/bundle/Endpoint.yaml diff --git a/examples/workshop-federation/cluster-1/bundle/Federation.yaml b/examples/workshop_federation/cluster-1/bundle/Federation.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/bundle/Federation.yaml rename to examples/workshop_federation/cluster-1/bundle/Federation.yaml diff --git a/examples/workshop-federation/cluster-1/hack/create-bundle-config-map.sh b/examples/workshop_federation/cluster-1/hack/create-bundle-config-map.sh similarity index 100% rename from examples/workshop-federation/cluster-1/hack/create-bundle-config-map.sh rename to examples/workshop_federation/cluster-1/hack/create-bundle-config-map.sh diff --git a/examples/workshop-federation/cluster-1/hack/print-bundle.sh b/examples/workshop_federation/cluster-1/hack/print-bundle.sh similarity index 100% rename from examples/workshop-federation/cluster-1/hack/print-bundle.sh rename to examples/workshop_federation/cluster-1/hack/print-bundle.sh diff --git a/examples/workshop-federation/cluster-1/inspector/Deployment.yaml b/examples/workshop_federation/cluster-1/inspector/Deployment.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/inspector/Deployment.yaml rename to examples/workshop_federation/cluster-1/inspector/Deployment.yaml diff --git a/examples/workshop-federation/cluster-1/inspector/Identity.yaml b/examples/workshop_federation/cluster-1/inspector/Identity.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/inspector/Identity.yaml rename to examples/workshop_federation/cluster-1/inspector/Identity.yaml diff --git a/examples/workshop-federation/cluster-1/inspector/ServiceAccount.yaml b/examples/workshop_federation/cluster-1/inspector/ServiceAccount.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/inspector/ServiceAccount.yaml rename to examples/workshop_federation/cluster-1/inspector/ServiceAccount.yaml diff --git a/examples/workshop-federation/cluster-1/netshoot/Client.yaml b/examples/workshop_federation/cluster-1/netshoot/Client.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/netshoot/Client.yaml rename to examples/workshop_federation/cluster-1/netshoot/Client.yaml diff --git a/examples/workshop-federation/cluster-1/sentinel/Deployment.yaml b/examples/workshop_federation/cluster-1/sentinel/Deployment.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/sentinel/Deployment.yaml rename to examples/workshop_federation/cluster-1/sentinel/Deployment.yaml diff --git a/examples/workshop-federation/cluster-1/sentinel/Identity.yaml b/examples/workshop_federation/cluster-1/sentinel/Identity.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/sentinel/Identity.yaml rename to examples/workshop_federation/cluster-1/sentinel/Identity.yaml diff --git a/examples/workshop-federation/cluster-1/sentinel/Namespace.yaml b/examples/workshop_federation/cluster-1/sentinel/Namespace.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/sentinel/Namespace.yaml rename to examples/workshop_federation/cluster-1/sentinel/Namespace.yaml diff --git a/examples/workshop-federation/cluster-1/sentinel/ServiceAccount.yaml b/examples/workshop_federation/cluster-1/sentinel/ServiceAccount.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/sentinel/ServiceAccount.yaml rename to examples/workshop_federation/cluster-1/sentinel/ServiceAccount.yaml diff --git a/examples/workshop-federation/cluster-1/spire/crd-rbac/leader_election_role.yaml b/examples/workshop_federation/cluster-1/spire/crd-rbac/leader_election_role.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/crd-rbac/leader_election_role.yaml rename to examples/workshop_federation/cluster-1/spire/crd-rbac/leader_election_role.yaml diff --git a/examples/workshop-federation/cluster-1/spire/crd-rbac/leader_election_role_binding.yaml b/examples/workshop_federation/cluster-1/spire/crd-rbac/leader_election_role_binding.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/crd-rbac/leader_election_role_binding.yaml rename to examples/workshop_federation/cluster-1/spire/crd-rbac/leader_election_role_binding.yaml diff --git a/examples/workshop-federation/cluster-1/spire/crd-rbac/role.yaml b/examples/workshop_federation/cluster-1/spire/crd-rbac/role.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/crd-rbac/role.yaml rename to examples/workshop_federation/cluster-1/spire/crd-rbac/role.yaml diff --git a/examples/workshop-federation/cluster-1/spire/crd-rbac/role_binding.yaml b/examples/workshop_federation/cluster-1/spire/crd-rbac/role_binding.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/crd-rbac/role_binding.yaml rename to examples/workshop_federation/cluster-1/spire/crd-rbac/role_binding.yaml diff --git a/examples/workshop-federation/cluster-1/spire/crd/spire.spiffe.io_clusterfederatedtrustdomains.yaml b/examples/workshop_federation/cluster-1/spire/crd/spire.spiffe.io_clusterfederatedtrustdomains.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/crd/spire.spiffe.io_clusterfederatedtrustdomains.yaml rename to examples/workshop_federation/cluster-1/spire/crd/spire.spiffe.io_clusterfederatedtrustdomains.yaml diff --git a/examples/workshop-federation/cluster-1/spire/crd/spire.spiffe.io_clusterspiffeids.yaml b/examples/workshop_federation/cluster-1/spire/crd/spire.spiffe.io_clusterspiffeids.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/crd/spire.spiffe.io_clusterspiffeids.yaml rename to examples/workshop_federation/cluster-1/spire/crd/spire.spiffe.io_clusterspiffeids.yaml diff --git a/examples/workshop-federation/cluster-1/spire/crd/spire.spiffe.io_clusterstaticentries.yaml b/examples/workshop_federation/cluster-1/spire/crd/spire.spiffe.io_clusterstaticentries.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/crd/spire.spiffe.io_clusterstaticentries.yaml rename to examples/workshop_federation/cluster-1/spire/crd/spire.spiffe.io_clusterstaticentries.yaml diff --git a/examples/workshop-federation/cluster-1/spire/kustomization.yaml b/examples/workshop_federation/cluster-1/spire/kustomization.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/kustomization.yaml rename to examples/workshop_federation/cluster-1/spire/kustomization.yaml diff --git a/examples/workshop-federation/cluster-1/spire/spire/spiffe-csi-driver.yaml b/examples/workshop_federation/cluster-1/spire/spire/spiffe-csi-driver.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/spire/spiffe-csi-driver.yaml rename to examples/workshop_federation/cluster-1/spire/spire/spiffe-csi-driver.yaml diff --git a/examples/workshop-federation/cluster-1/spire/spire/spire-agent.yaml b/examples/workshop_federation/cluster-1/spire/spire/spire-agent.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/spire/spire-agent.yaml rename to examples/workshop_federation/cluster-1/spire/spire/spire-agent.yaml diff --git a/examples/workshop-federation/cluster-1/spire/spire/spire-controller-manager-config.yaml b/examples/workshop_federation/cluster-1/spire/spire/spire-controller-manager-config.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/spire/spire-controller-manager-config.yaml rename to examples/workshop_federation/cluster-1/spire/spire/spire-controller-manager-config.yaml diff --git a/examples/workshop-federation/cluster-1/spire/spire/spire-controller-manager-webhook.yaml b/examples/workshop_federation/cluster-1/spire/spire/spire-controller-manager-webhook.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/spire/spire-controller-manager-webhook.yaml rename to examples/workshop_federation/cluster-1/spire/spire/spire-controller-manager-webhook.yaml diff --git a/examples/workshop-federation/cluster-1/spire/spire/spire-namespace.yaml b/examples/workshop_federation/cluster-1/spire/spire/spire-namespace.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/spire/spire-namespace.yaml rename to examples/workshop_federation/cluster-1/spire/spire/spire-namespace.yaml diff --git a/examples/workshop-federation/cluster-1/spire/spire/spire-server.yaml b/examples/workshop_federation/cluster-1/spire/spire/spire-server.yaml similarity index 100% rename from examples/workshop-federation/cluster-1/spire/spire/spire-server.yaml rename to examples/workshop_federation/cluster-1/spire/spire/spire-server.yaml diff --git a/examples/workshop-federation/cluster-2/bundle/ConfigMap.yaml b/examples/workshop_federation/cluster-2/bundle/ConfigMap.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/bundle/ConfigMap.yaml rename to examples/workshop_federation/cluster-2/bundle/ConfigMap.yaml diff --git a/examples/workshop-federation/cluster-2/bundle/Endpoint.yaml b/examples/workshop_federation/cluster-2/bundle/Endpoint.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/bundle/Endpoint.yaml rename to examples/workshop_federation/cluster-2/bundle/Endpoint.yaml diff --git a/examples/workshop-federation/cluster-2/bundle/Federation.yaml b/examples/workshop_federation/cluster-2/bundle/Federation.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/bundle/Federation.yaml rename to examples/workshop_federation/cluster-2/bundle/Federation.yaml diff --git a/examples/workshop-federation/cluster-2/hack/create-bundle-config-map.sh b/examples/workshop_federation/cluster-2/hack/create-bundle-config-map.sh similarity index 100% rename from examples/workshop-federation/cluster-2/hack/create-bundle-config-map.sh rename to examples/workshop_federation/cluster-2/hack/create-bundle-config-map.sh diff --git a/examples/workshop-federation/cluster-2/hack/print-bundle.sh b/examples/workshop_federation/cluster-2/hack/print-bundle.sh similarity index 100% rename from examples/workshop-federation/cluster-2/hack/print-bundle.sh rename to examples/workshop_federation/cluster-2/hack/print-bundle.sh diff --git a/examples/workshop-federation/cluster-2/safe/Deployment.yaml b/examples/workshop_federation/cluster-2/safe/Deployment.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/safe/Deployment.yaml rename to examples/workshop_federation/cluster-2/safe/Deployment.yaml diff --git a/examples/workshop-federation/cluster-2/safe/Identity.yaml b/examples/workshop_federation/cluster-2/safe/Identity.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/safe/Identity.yaml rename to examples/workshop_federation/cluster-2/safe/Identity.yaml diff --git a/examples/workshop-federation/cluster-2/safe/Namespace.yaml b/examples/workshop_federation/cluster-2/safe/Namespace.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/safe/Namespace.yaml rename to examples/workshop_federation/cluster-2/safe/Namespace.yaml diff --git a/examples/workshop-federation/cluster-2/safe/Role.yaml b/examples/workshop_federation/cluster-2/safe/Role.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/safe/Role.yaml rename to examples/workshop_federation/cluster-2/safe/Role.yaml diff --git a/examples/workshop-federation/cluster-2/safe/Secret.yaml b/examples/workshop_federation/cluster-2/safe/Secret.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/safe/Secret.yaml rename to examples/workshop_federation/cluster-2/safe/Secret.yaml diff --git a/examples/workshop-federation/cluster-2/safe/Service.yaml b/examples/workshop_federation/cluster-2/safe/Service.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/safe/Service.yaml rename to examples/workshop_federation/cluster-2/safe/Service.yaml diff --git a/examples/workshop-federation/cluster-2/safe/ServiceAccount.yaml b/examples/workshop_federation/cluster-2/safe/ServiceAccount.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/safe/ServiceAccount.yaml rename to examples/workshop_federation/cluster-2/safe/ServiceAccount.yaml diff --git a/examples/workshop-federation/cluster-2/spire/crd-rbac/leader_election_role.yaml b/examples/workshop_federation/cluster-2/spire/crd-rbac/leader_election_role.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/crd-rbac/leader_election_role.yaml rename to examples/workshop_federation/cluster-2/spire/crd-rbac/leader_election_role.yaml diff --git a/examples/workshop-federation/cluster-2/spire/crd-rbac/leader_election_role_binding.yaml b/examples/workshop_federation/cluster-2/spire/crd-rbac/leader_election_role_binding.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/crd-rbac/leader_election_role_binding.yaml rename to examples/workshop_federation/cluster-2/spire/crd-rbac/leader_election_role_binding.yaml diff --git a/examples/workshop-federation/cluster-2/spire/crd-rbac/role.yaml b/examples/workshop_federation/cluster-2/spire/crd-rbac/role.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/crd-rbac/role.yaml rename to examples/workshop_federation/cluster-2/spire/crd-rbac/role.yaml diff --git a/examples/workshop-federation/cluster-2/spire/crd-rbac/role_binding.yaml b/examples/workshop_federation/cluster-2/spire/crd-rbac/role_binding.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/crd-rbac/role_binding.yaml rename to examples/workshop_federation/cluster-2/spire/crd-rbac/role_binding.yaml diff --git a/examples/workshop-federation/cluster-2/spire/crd/spire.spiffe.io_clusterfederatedtrustdomains.yaml b/examples/workshop_federation/cluster-2/spire/crd/spire.spiffe.io_clusterfederatedtrustdomains.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/crd/spire.spiffe.io_clusterfederatedtrustdomains.yaml rename to examples/workshop_federation/cluster-2/spire/crd/spire.spiffe.io_clusterfederatedtrustdomains.yaml diff --git a/examples/workshop-federation/cluster-2/spire/crd/spire.spiffe.io_clusterspiffeids.yaml b/examples/workshop_federation/cluster-2/spire/crd/spire.spiffe.io_clusterspiffeids.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/crd/spire.spiffe.io_clusterspiffeids.yaml rename to examples/workshop_federation/cluster-2/spire/crd/spire.spiffe.io_clusterspiffeids.yaml diff --git a/examples/workshop-federation/cluster-2/spire/crd/spire.spiffe.io_clusterstaticentries.yaml b/examples/workshop_federation/cluster-2/spire/crd/spire.spiffe.io_clusterstaticentries.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/crd/spire.spiffe.io_clusterstaticentries.yaml rename to examples/workshop_federation/cluster-2/spire/crd/spire.spiffe.io_clusterstaticentries.yaml diff --git a/examples/workshop-federation/cluster-2/spire/kustomization.yaml b/examples/workshop_federation/cluster-2/spire/kustomization.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/kustomization.yaml rename to examples/workshop_federation/cluster-2/spire/kustomization.yaml diff --git a/examples/workshop-federation/cluster-2/spire/spire/spiffe-csi-driver.yaml b/examples/workshop_federation/cluster-2/spire/spire/spiffe-csi-driver.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/spire/spiffe-csi-driver.yaml rename to examples/workshop_federation/cluster-2/spire/spire/spiffe-csi-driver.yaml diff --git a/examples/workshop-federation/cluster-2/spire/spire/spire-agent.yaml b/examples/workshop_federation/cluster-2/spire/spire/spire-agent.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/spire/spire-agent.yaml rename to examples/workshop_federation/cluster-2/spire/spire/spire-agent.yaml diff --git a/examples/workshop-federation/cluster-2/spire/spire/spire-controller-manager-config.yaml b/examples/workshop_federation/cluster-2/spire/spire/spire-controller-manager-config.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/spire/spire-controller-manager-config.yaml rename to examples/workshop_federation/cluster-2/spire/spire/spire-controller-manager-config.yaml diff --git a/examples/workshop-federation/cluster-2/spire/spire/spire-controller-manager-webhook.yaml b/examples/workshop_federation/cluster-2/spire/spire/spire-controller-manager-webhook.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/spire/spire-controller-manager-webhook.yaml rename to examples/workshop_federation/cluster-2/spire/spire/spire-controller-manager-webhook.yaml diff --git a/examples/workshop-federation/cluster-2/spire/spire/spire-namespace.yaml b/examples/workshop_federation/cluster-2/spire/spire/spire-namespace.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/spire/spire-namespace.yaml rename to examples/workshop_federation/cluster-2/spire/spire/spire-namespace.yaml diff --git a/examples/workshop-federation/cluster-2/spire/spire/spire-server.yaml b/examples/workshop_federation/cluster-2/spire/spire/spire-server.yaml similarity index 100% rename from examples/workshop-federation/cluster-2/spire/spire/spire-server.yaml rename to examples/workshop_federation/cluster-2/spire/spire/spire-server.yaml diff --git a/examples/workshop-istanbul-gophers/hack/001-register-secret-to-workload.sh b/examples/workshop_istanbul_gophers/hack/001-register-secret-to-workload.sh similarity index 100% rename from examples/workshop-istanbul-gophers/hack/001-register-secret-to-workload.sh rename to examples/workshop_istanbul_gophers/hack/001-register-secret-to-workload.sh diff --git a/examples/workshop-istanbul-gophers/hack/002-template-transformation.sh b/examples/workshop_istanbul_gophers/hack/002-template-transformation.sh similarity index 100% rename from examples/workshop-istanbul-gophers/hack/002-template-transformation.sh rename to examples/workshop_istanbul_gophers/hack/002-template-transformation.sh diff --git a/examples/workshop-istanbul-gophers/hack/003-random-secret.sh b/examples/workshop_istanbul_gophers/hack/003-random-secret.sh similarity index 100% rename from examples/workshop-istanbul-gophers/hack/003-random-secret.sh rename to examples/workshop_istanbul_gophers/hack/003-random-secret.sh diff --git a/examples/workshop-istanbul-gophers/hack/004-encypting-secrets.sh b/examples/workshop_istanbul_gophers/hack/004-encypting-secrets.sh similarity index 100% rename from examples/workshop-istanbul-gophers/hack/004-encypting-secrets.sh rename to examples/workshop_istanbul_gophers/hack/004-encypting-secrets.sh diff --git a/examples/workshop-istanbul-gophers/hack/005-register-encrypted-secret.sh b/examples/workshop_istanbul_gophers/hack/005-register-encrypted-secret.sh similarity index 100% rename from examples/workshop-istanbul-gophers/hack/005-register-encrypted-secret.sh rename to examples/workshop_istanbul_gophers/hack/005-register-encrypted-secret.sh diff --git a/examples/workshop-istanbul-gophers/hack/delete.sh b/examples/workshop_istanbul_gophers/hack/delete.sh similarity index 100% rename from examples/workshop-istanbul-gophers/hack/delete.sh rename to examples/workshop_istanbul_gophers/hack/delete.sh diff --git a/examples/workshop-istanbul-gophers/hack/secrets.py b/examples/workshop_istanbul_gophers/hack/secrets.py similarity index 100% rename from examples/workshop-istanbul-gophers/hack/secrets.py rename to examples/workshop_istanbul_gophers/hack/secrets.py diff --git a/examples/workshop-istanbul-gophers/hack/view-k8s-secrets.sh b/examples/workshop_istanbul_gophers/hack/view-k8s-secrets.sh similarity index 100% rename from examples/workshop-istanbul-gophers/hack/view-k8s-secrets.sh rename to examples/workshop_istanbul_gophers/hack/view-k8s-secrets.sh diff --git a/examples/workshop-istanbul-gophers/hack/view.sh b/examples/workshop_istanbul_gophers/hack/view.sh similarity index 100% rename from examples/workshop-istanbul-gophers/hack/view.sh rename to examples/workshop_istanbul_gophers/hack/view.sh diff --git a/examples/workshop-istanbul-gophers/k8s/Deployment.yaml b/examples/workshop_istanbul_gophers/k8s/Deployment.yaml similarity index 100% rename from examples/workshop-istanbul-gophers/k8s/Deployment.yaml rename to examples/workshop_istanbul_gophers/k8s/Deployment.yaml diff --git a/examples/workshop-istanbul-gophers/k8s/Identity.yaml b/examples/workshop_istanbul_gophers/k8s/Identity.yaml similarity index 100% rename from examples/workshop-istanbul-gophers/k8s/Identity.yaml rename to examples/workshop_istanbul_gophers/k8s/Identity.yaml diff --git a/examples/workshop-istanbul-gophers/k8s/ServiceAccount.yaml b/examples/workshop_istanbul_gophers/k8s/ServiceAccount.yaml similarity index 100% rename from examples/workshop-istanbul-gophers/k8s/ServiceAccount.yaml rename to examples/workshop_istanbul_gophers/k8s/ServiceAccount.yaml diff --git a/examples/workshop-vsecm/hack/000-register-secret.sh b/examples/workshop_vsecm/hack/000-register-secret.sh similarity index 100% rename from examples/workshop-vsecm/hack/000-register-secret.sh rename to examples/workshop_vsecm/hack/000-register-secret.sh diff --git a/examples/workshop-vsecm/hack/001-append-secret.sh b/examples/workshop_vsecm/hack/001-append-secret.sh similarity index 100% rename from examples/workshop-vsecm/hack/001-append-secret.sh rename to examples/workshop_vsecm/hack/001-append-secret.sh diff --git a/examples/workshop-vsecm/hack/002-delete-secret.sh b/examples/workshop_vsecm/hack/002-delete-secret.sh similarity index 100% rename from examples/workshop-vsecm/hack/002-delete-secret.sh rename to examples/workshop_vsecm/hack/002-delete-secret.sh diff --git a/examples/workshop-vsecm/hack/003-encrypt-secret.sh b/examples/workshop_vsecm/hack/003-encrypt-secret.sh similarity index 100% rename from examples/workshop-vsecm/hack/003-encrypt-secret.sh rename to examples/workshop_vsecm/hack/003-encrypt-secret.sh diff --git a/examples/workshop-vsecm/hack/004-register-encrypted-secret.sh b/examples/workshop_vsecm/hack/004-register-encrypted-secret.sh similarity index 100% rename from examples/workshop-vsecm/hack/004-register-encrypted-secret.sh rename to examples/workshop_vsecm/hack/004-register-encrypted-secret.sh diff --git a/examples/workshop-vsecm/hack/005-register-secret-json-transformation.sh b/examples/workshop_vsecm/hack/005-register-secret-json-transformation.sh similarity index 100% rename from examples/workshop-vsecm/hack/005-register-secret-json-transformation.sh rename to examples/workshop_vsecm/hack/005-register-secret-json-transformation.sh diff --git a/examples/workshop-vsecm/hack/006-register-secret-yaml-transformation.sh b/examples/workshop_vsecm/hack/006-register-secret-yaml-transformation.sh similarity index 100% rename from examples/workshop-vsecm/hack/006-register-secret-yaml-transformation.sh rename to examples/workshop_vsecm/hack/006-register-secret-yaml-transformation.sh diff --git a/examples/workshop-vsecm/hack/007-register-secret-default-transformation.sh b/examples/workshop_vsecm/hack/007-register-secret-default-transformation.sh similarity index 100% rename from examples/workshop-vsecm/hack/007-register-secret-default-transformation.sh rename to examples/workshop_vsecm/hack/007-register-secret-default-transformation.sh diff --git a/examples/workshop-vsecm/hack/008-register-k8s-secret.sh b/examples/workshop_vsecm/hack/008-register-k8s-secret.sh similarity index 100% rename from examples/workshop-vsecm/hack/008-register-k8s-secret.sh rename to examples/workshop_vsecm/hack/008-register-k8s-secret.sh diff --git a/examples/workshop-vsecm/hack/009-register-secret-with-expiration.sh b/examples/workshop_vsecm/hack/009-register-secret-with-expiration.sh similarity index 100% rename from examples/workshop-vsecm/hack/009-register-secret-with-expiration.sh rename to examples/workshop_vsecm/hack/009-register-secret-with-expiration.sh diff --git a/examples/workshop-vsecm/hack/010-create-k8s-secret.sh b/examples/workshop_vsecm/hack/010-create-k8s-secret.sh similarity index 100% rename from examples/workshop-vsecm/hack/010-create-k8s-secret.sh rename to examples/workshop_vsecm/hack/010-create-k8s-secret.sh diff --git a/examples/workshop-vsecm/hack/011-generate-secrets.sh b/examples/workshop_vsecm/hack/011-generate-secrets.sh similarity index 100% rename from examples/workshop-vsecm/hack/011-generate-secrets.sh rename to examples/workshop_vsecm/hack/011-generate-secrets.sh diff --git a/examples/workshop-vsecm/hack/012-reveal-secrets.sh b/examples/workshop_vsecm/hack/012-reveal-secrets.sh similarity index 100% rename from examples/workshop-vsecm/hack/012-reveal-secrets.sh rename to examples/workshop_vsecm/hack/012-reveal-secrets.sh diff --git a/examples/workshop-vsecm/hack/013-export-secrets.sh b/examples/workshop_vsecm/hack/013-export-secrets.sh similarity index 100% rename from examples/workshop-vsecm/hack/013-export-secrets.sh rename to examples/workshop_vsecm/hack/013-export-secrets.sh diff --git a/examples/workshop-vsecm/hack/014-get-root-key.sh b/examples/workshop_vsecm/hack/014-get-root-key.sh similarity index 100% rename from examples/workshop-vsecm/hack/014-get-root-key.sh rename to examples/workshop_vsecm/hack/014-get-root-key.sh diff --git a/examples/workshop-vsecm/hack/015-k-get-secrets.sh b/examples/workshop_vsecm/hack/015-k-get-secrets.sh similarity index 100% rename from examples/workshop-vsecm/hack/015-k-get-secrets.sh rename to examples/workshop_vsecm/hack/015-k-get-secrets.sh diff --git a/examples/workshop-vsecm/hack/015-reveal-secrets.sh b/examples/workshop_vsecm/hack/015-reveal-secrets.sh similarity index 100% rename from examples/workshop-vsecm/hack/015-reveal-secrets.sh rename to examples/workshop_vsecm/hack/015-reveal-secrets.sh diff --git a/examples/workshop-vsecm/hack/env.sh b/examples/workshop_vsecm/hack/env.sh similarity index 100% rename from examples/workshop-vsecm/hack/env.sh rename to examples/workshop_vsecm/hack/env.sh diff --git a/examples/workshop-vsecm/hack/list-secrets.sh b/examples/workshop_vsecm/hack/list-secrets.sh similarity index 100% rename from examples/workshop-vsecm/hack/list-secrets.sh rename to examples/workshop_vsecm/hack/list-secrets.sh diff --git a/examples/workshop-vsecm/hack/trace-safe.sh b/examples/workshop_vsecm/hack/trace-safe.sh similarity index 100% rename from examples/workshop-vsecm/hack/trace-safe.sh rename to examples/workshop_vsecm/hack/trace-safe.sh diff --git a/examples/workshop-vsecm/hack/view-secret.sh b/examples/workshop_vsecm/hack/view-secret.sh similarity index 100% rename from examples/workshop-vsecm/hack/view-secret.sh rename to examples/workshop_vsecm/hack/view-secret.sh diff --git a/examples/workshop-vsecm/ids/Example.yaml b/examples/workshop_vsecm/ids/Example.yaml similarity index 100% rename from examples/workshop-vsecm/ids/Example.yaml rename to examples/workshop_vsecm/ids/Example.yaml diff --git a/examples/workshop-vsecm/ids/Inspector.yaml b/examples/workshop_vsecm/ids/Inspector.yaml similarity index 100% rename from examples/workshop-vsecm/ids/Inspector.yaml rename to examples/workshop_vsecm/ids/Inspector.yaml diff --git a/examples/workshop-vsecm/secrets/VSecMSecretExample.yaml b/examples/workshop_vsecm/secrets/VSecMSecretExample.yaml similarity index 100% rename from examples/workshop-vsecm/secrets/VSecMSecretExample.yaml rename to examples/workshop_vsecm/secrets/VSecMSecretExample.yaml diff --git a/examples/workshop-vsecm/workloads/example-init-container/Deployment.yaml b/examples/workshop_vsecm/workloads/example-init-container/Deployment.yaml similarity index 100% rename from examples/workshop-vsecm/workloads/example-init-container/Deployment.yaml rename to examples/workshop_vsecm/workloads/example-init-container/Deployment.yaml diff --git a/examples/workshop-vsecm/workloads/example-init-container/ServiceAccount.yaml b/examples/workshop_vsecm/workloads/example-init-container/ServiceAccount.yaml similarity index 100% rename from examples/workshop-vsecm/workloads/example-init-container/ServiceAccount.yaml rename to examples/workshop_vsecm/workloads/example-init-container/ServiceAccount.yaml diff --git a/examples/workshop-vsecm/workloads/inspector/Deployment.yaml b/examples/workshop_vsecm/workloads/inspector/Deployment.yaml similarity index 100% rename from examples/workshop-vsecm/workloads/inspector/Deployment.yaml rename to examples/workshop_vsecm/workloads/inspector/Deployment.yaml diff --git a/examples/workshop-vsecm/workloads/inspector/ServiceAccount.yaml b/examples/workshop_vsecm/workloads/inspector/ServiceAccount.yaml similarity index 100% rename from examples/workshop-vsecm/workloads/inspector/ServiceAccount.yaml rename to examples/workshop_vsecm/workloads/inspector/ServiceAccount.yaml diff --git a/examples/workshop-vsecm/workloads/keycloak/Deployment.yaml b/examples/workshop_vsecm/workloads/keycloak/Deployment.yaml similarity index 100% rename from examples/workshop-vsecm/workloads/keycloak/Deployment.yaml rename to examples/workshop_vsecm/workloads/keycloak/Deployment.yaml diff --git a/examples/workshop-vsecm/workloads/keycloak/Secret.yaml b/examples/workshop_vsecm/workloads/keycloak/Secret.yaml similarity index 100% rename from examples/workshop-vsecm/workloads/keycloak/Secret.yaml rename to examples/workshop_vsecm/workloads/keycloak/Secret.yaml diff --git a/examples/workshop-vsecm/workloads/keycloak/Service.yaml b/examples/workshop_vsecm/workloads/keycloak/Service.yaml similarity index 100% rename from examples/workshop-vsecm/workloads/keycloak/Service.yaml rename to examples/workshop_vsecm/workloads/keycloak/Service.yaml diff --git a/examples/workshop-vsecm/workloads/keycloak/id.yaml b/examples/workshop_vsecm/workloads/keycloak/id.yaml similarity index 100% rename from examples/workshop-vsecm/workloads/keycloak/id.yaml rename to examples/workshop_vsecm/workloads/keycloak/id.yaml diff --git a/hack/example-init-container-deploy-eks.sh b/hack/example-init-container-deploy-eks.sh index 8aa565ac..d2d4ceb4 100755 --- a/hack/example-init-container-deploy-eks.sh +++ b/hack/example-init-container-deploy-eks.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-init-container || exit +cd ./examples/using_init_container || exit kubectl apply -f ./k8s-eks/ServiceAccount.yaml kubectl apply -k ./k8s-eks diff --git a/hack/example-init-container-deploy-local.sh b/hack/example-init-container-deploy-local.sh index 3ad965df..a03f217c 100755 --- a/hack/example-init-container-deploy-local.sh +++ b/hack/example-init-container-deploy-local.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-init-container || exit +cd ./examples/using_init_container || exit kubectl apply -f ./k8s/ServiceAccount.yaml kubectl apply -k ./k8s diff --git a/hack/example-init-container-deploy.sh b/hack/example-init-container-deploy.sh index 35ebcd9f..9504057a 100755 --- a/hack/example-init-container-deploy.sh +++ b/hack/example-init-container-deploy.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-init-container || exit +cd ./examples/using_init_container || exit kubectl apply -f ./k8s/ServiceAccount.yaml kubectl apply -f ./k8s/Deployment.yaml diff --git a/hack/example-sdk-deploy-eks.sh b/hack/example-sdk-deploy-eks.sh index 2b774c5b..3fb99fe6 100755 --- a/hack/example-sdk-deploy-eks.sh +++ b/hack/example-sdk-deploy-eks.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-sdk || exit +cd ./examples/using_sdk_go || exit kubectl apply -f ./k8s-eks/ServiceAccount.yaml kubectl apply -k ./k8s-eks diff --git a/hack/example-sdk-deploy-local.sh b/hack/example-sdk-deploy-local.sh index 859350b4..340426a4 100755 --- a/hack/example-sdk-deploy-local.sh +++ b/hack/example-sdk-deploy-local.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-sdk || exit +cd ./examples/using_sdk_go || exit kubectl apply -f ./k8s/ServiceAccount.yaml kubectl apply -k ./k8s diff --git a/hack/example-sdk-deploy.sh b/hack/example-sdk-deploy.sh index 1bcaf0f6..cb0a2d44 100755 --- a/hack/example-sdk-deploy.sh +++ b/hack/example-sdk-deploy.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-sdk || exit +cd ./examples/using_sdk_go || exit kubectl apply -f ./k8s/ServiceAccount.yaml kubectl apply -f ./k8s/Deployment.yaml diff --git a/hack/example-sidecar-deploy-eks.sh b/hack/example-sidecar-deploy-eks.sh index 69d1e19d..6aa4f5ed 100755 --- a/hack/example-sidecar-deploy-eks.sh +++ b/hack/example-sidecar-deploy-eks.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-sidecar || exit +cd ./examples/using_sidecar || exit kubectl apply -f ./k8s-eks/ServiceAccount.yaml kubectl apply -k ./k8s-eks diff --git a/hack/example-sidecar-deploy-local.sh b/hack/example-sidecar-deploy-local.sh index 50ad4c7f..59b4b13d 100755 --- a/hack/example-sidecar-deploy-local.sh +++ b/hack/example-sidecar-deploy-local.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-sidecar || exit +cd ./examples/using_sidecar || exit kubectl apply -f ./k8s/ServiceAccount.yaml kubectl apply -k ./k8s diff --git a/hack/example-sidecar-deploy.sh b/hack/example-sidecar-deploy.sh index ec67a42f..feee4118 100755 --- a/hack/example-sidecar-deploy.sh +++ b/hack/example-sidecar-deploy.sh @@ -10,7 +10,7 @@ # >/' SPDX-License-Identifier: BSD-2-Clause # */ -cd ./examples/using-sidecar || exit +cd ./examples/using_sidecar || exit kubectl apply -f ./k8s/ServiceAccount.yaml kubectl apply -f ./k8s/Deployment.yaml diff --git a/hack/tag-docker.sh b/hack/tag-docker.sh index c9056d8b..6b352455 100755 --- a/hack/tag-docker.sh +++ b/hack/tag-docker.sh @@ -29,8 +29,8 @@ docker pull vsecm/vsecm-ist-init-container:"$VERSION" docker pull vsecm/vsecm-ist-init-container:latest docker pull vsecm/example-using-sidecar:"$VERSION" docker pull vsecm/example-using-sidecar:latest -docker pull vsecm/example-using-sdk:"$VERSION" -docker pull vsecm/example-using-sdk:latest +docker pull vsecm/example-using-sdk-go:"$VERSION" +docker pull vsecm/example-using-sdk-go:latest docker pull vsecm/example-multiple-secrets:"$VERSION" docker pull vsecm/example-multiple-secrets:latest docker pull vsecm/example-using-init-container:"$VERSION" @@ -57,8 +57,8 @@ docker trust sign vsecm/vsecm-ist-init-container:"$VERSION" docker trust sign vsecm/vsecm-ist-init-container:latest docker trust sign vsecm/example-using-sidecar:"$VERSION" docker trust sign vsecm/example-using-sidecar:latest -docker trust sign vsecm/example-using-sdk:"$VERSION" -docker trust sign vsecm/example-using-sdk:latest +docker trust sign vsecm/example-using-sdk-go:"$VERSION" +docker trust sign vsecm/example-using-sdk-go:latest docker trust sign vsecm/example-multiple-secrets:"$VERSION" docker trust sign vsecm/example-multiple-secrets:latest docker trust sign vsecm/example-using-init-container:"$VERSION" diff --git a/hack/tag.sh b/hack/tag.sh index e6625f20..5ceda4c5 100755 --- a/hack/tag.sh +++ b/hack/tag.sh @@ -37,9 +37,9 @@ docker trust sign vsecm/vsecm-ist-init-container:latest echo "example-using-sidecar" docker trust sign vsecm/example-using-sidecar:"$VERSION" docker trust sign vsecm/example-using-sidecar:latest -echo "example-using-sdk" -docker trust sign vsecm/example-using-sdk:"$VERSION" -docker trust sign vsecm/example-using-sdk:latest +echo "example-using-sdk-go" +docker trust sign vsecm/example-using-sdk-go:"$VERSION" +docker trust sign vsecm/example-using-sdk-go:latest echo "example-multiple-secrets" docker trust sign vsecm/example-multiple-secrets:"$VERSION" docker trust sign vsecm/example-multiple-secrets:latest diff --git a/makefiles/VSecMExampleSdk.mk b/makefiles/VSecMExampleSdk.mk index 1181f21c..58d3791b 100644 --- a/makefiles/VSecMExampleSdk.mk +++ b/makefiles/VSecMExampleSdk.mk @@ -10,23 +10,23 @@ # Packages the "SDK" use case binary into a container image. example-sdk-bundle: - ./hack/bundle.sh "example-using-sdk" \ - $(VERSION) "dockerfiles/example/sdk.Dockerfile" + ./hack/bundle.sh "example-using-sdk-go" \ + $(VERSION) "dockerfiles/example/sdk-go.Dockerfile" # Pushes the "SDK" use case container image to the public registry. example-sdk-push: - ./hack/push.sh "example-using-sdk" \ - $(VERSION) "$(VSECM_DOCKERHUB_REGISTRY_URL)/example-using-sdk" + ./hack/push.sh "example-using-sdk-go" \ + $(VERSION) "$(VSECM_DOCKERHUB_REGISTRY_URL)/example-using-sdk-go" # Pushes the "SDK" use case container image to the local registry. example-sdk-push-local: - ./hack/push.sh "example-using-sdk" \ - $(VERSION) "$(VSECM_LOCAL_REGISTRY_URL)/example-using-sdk" + ./hack/push.sh "example-using-sdk-go" \ + $(VERSION) "$(VSECM_LOCAL_REGISTRY_URL)/example-using-sdk-go" # Pushes the "SDK" use case container image to the public EKS registry. example-sdk-push-eks: - ./hack/push.sh "example-using-sdk" \ - $(VERSION) "$(VSECM_EKS_REGISTRY_URL)/example-using-sdk" + ./hack/push.sh "example-using-sdk-go" \ + $(VERSION) "$(VSECM_EKS_REGISTRY_URL)/example-using-sdk-go" # Deploys the "SDK" use case app from the public registry into the cluster. example-sdk-deploy: diff --git a/sdk-cpp/.keep b/sdk-cpp/.keep new file mode 100644 index 00000000..e69de29b diff --git a/sdk-java/.keep b/sdk-java/.keep new file mode 100644 index 00000000..e69de29b diff --git a/sdk-python/.keep b/sdk-python/.keep new file mode 100644 index 00000000..e69de29b diff --git a/sdk-rust/.keep b/sdk-rust/.keep new file mode 100644 index 00000000..e69de29b