-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08661e7
commit 948d168
Showing
10 changed files
with
273 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Usage Examples | ||
|
||
Here you can find various examples on how you can use **Secret Sync**. Examples include: | ||
|
||
- [single-source-advanced](single-source-advanced) - Use a central source of truth to synchronize secrets into different secret stores. Uses templating for fine-grained synchronization. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Requirement: https://github.com/terrastruct/d2 | ||
|
||
ASSET_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
for d2_file in "$ASSET_DIR"/*.d2 | ||
do | ||
# Get files | ||
png_file=${d2_file%".d2"}.png | ||
|
||
# Generate PNG from diagram | ||
d2 $d2_file $png_file | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
direction: down | ||
|
||
Vault: { | ||
label: Vault | ||
shape: image | ||
icon: https://www.svgrepo.com/download/448679/vault.svg | ||
} | ||
|
||
AWSSM: { | ||
label: AWS Secrets Manager | ||
shape: image | ||
icon: https://icons.terrastruct.com/aws%2FSecurity%2C%20Identity%2C%20&%20Compliance%2FAWS-Secrets-Manager.svg | ||
} | ||
|
||
GCPSM: { | ||
label: GCP Secret Manager | ||
shape: image | ||
icon: https://www.svgrepo.com/download/375492/secret-manager.svg | ||
} | ||
|
||
AzureKeyVault: { | ||
label: Azure Key Vault | ||
shape: image | ||
icon: https://icons.terrastruct.com/azure%2FSecurity%20Service%20Color%2FKey%20Vaults.svg | ||
} | ||
|
||
Cluster: { | ||
label: Cluster | ||
icon: https://icons.terrastruct.com/azure%2F_Companies%2FKubernetes.svg | ||
|
||
Local: { | ||
Label: Secret | ||
style: { | ||
stroke: blue | ||
stroke-dash: 3 | ||
} | ||
} | ||
Workload: Workload | ||
|
||
Local -> Workload | ||
} | ||
|
||
Cluster.Local <- Vault | ||
Cluster.Local <- AWSSM | ||
Cluster.Local <- GCPSM | ||
Cluster.Local <- AzureKeyVault |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
direction: down | ||
|
||
Vault: { | ||
label: Vault | ||
shape: image | ||
icon: https://www.svgrepo.com/download/448679/vault.svg | ||
} | ||
|
||
AWSSM: { | ||
label: AWS Secrets Manager | ||
shape: image | ||
icon: https://icons.terrastruct.com/aws%2FSecurity%2C%20Identity%2C%20&%20Compliance%2FAWS-Secrets-Manager.svg | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
|
||
GCPSM: { | ||
label: GCP Secret Manager | ||
shape: image | ||
icon: https://www.svgrepo.com/download/375492/secret-manager.svg | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
|
||
AzureKeyVault: { | ||
label: Azure Key Vault | ||
shape: image | ||
icon: https://icons.terrastruct.com/azure%2FSecurity%20Service%20Color%2FKey%20Vaults.svg | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
|
||
BVSecretSync: { | ||
label: Bank-Vaults Secret Sync | ||
shape: image | ||
icon: https://raw.githubusercontent.com/bank-vaults/bank-vaults.dev/main/assets/icons/logo.svg | ||
} | ||
|
||
Vault -> BVSecretSync | ||
AWSSM -> BVSecretSync { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
GCPSM -> BVSecretSync { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
AzureKeyVault -> BVSecretSync { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
|
||
ClusterA: { | ||
label: Cluster A | ||
icon: https://icons.terrastruct.com/azure%2F_Companies%2FKubernetes.svg | ||
|
||
style: { | ||
opacity: 0.4 | ||
} | ||
|
||
LocalA: Secret { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
WorkloadA: Workload { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
|
||
LocalA -> WorkloadA { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
} | ||
|
||
ClusterB: { | ||
label: Cluster B | ||
icon: https://icons.terrastruct.com/azure%2F_Companies%2FKubernetes.svg | ||
|
||
LocalB: { | ||
label: Local Vault | ||
shape: image | ||
width: 80 | ||
icon: https://www.svgrepo.com/download/448679/vault.svg | ||
} | ||
WorkloadB: Workload | ||
|
||
LocalB -> WorkloadB | ||
} | ||
|
||
LocalC: { | ||
label: Tenant Environment | ||
shape: image | ||
width: 80 | ||
icon: https://www.svgrepo.com/download/375492/secret-manager.svg | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
|
||
ClusterC: { | ||
label: Cluster C | ||
icon: https://icons.terrastruct.com/azure%2F_Companies%2FKubernetes.svg | ||
|
||
style: { | ||
opacity: 0.4 | ||
} | ||
|
||
WorkloadC: Workload { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
} | ||
|
||
LocalC -> ClusterC.WorkloadC | ||
|
||
BVSecretSync -> ClusterB.LocalB: Sync | ||
BVSecretSync -> ClusterA.LocalA: Sync { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} | ||
BVSecretSync -> LocalC: Sync { | ||
style: { | ||
opacity: 0.4 | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
direction: right | ||
|
||
Vault: { | ||
label: Central Vault | ||
shape: image | ||
icon: https://www.svgrepo.com/download/448679/vault.svg | ||
} | ||
|
||
SecretSync: { | ||
label: Bank-Vaults Secret Sync | ||
label.near: outside-top-right | ||
icon: https://raw.githubusercontent.com/bank-vaults/bank-vaults.dev/main/assets/icons/logo.svg | ||
icon.near: outside-top-left | ||
|
||
dest: Target Auth | ||
plan: Sync Plan | ||
sync: Sync | ||
src: Source Auth | ||
|
||
src -> sync: input in{ | ||
style { | ||
stroke-dash: 3 | ||
} | ||
} | ||
dest -> sync: input in{ | ||
style { | ||
stroke-dash: 3 | ||
} | ||
} | ||
plan -> sync: input in{ | ||
style { | ||
stroke-dash: 3 | ||
} | ||
} | ||
} | ||
|
||
Cluster: { | ||
label: Cluster | ||
icon: https://icons.terrastruct.com/azure%2F_Companies%2FKubernetes.svg | ||
|
||
Workload: Workload | ||
Vault: { | ||
label: Local Vault | ||
shape: image | ||
width: 80 | ||
icon: https://www.svgrepo.com/download/448679/vault.svg | ||
} | ||
|
||
Vault -> Workload | ||
} | ||
|
||
SecretSync.src <- Vault: referenced in { | ||
style { | ||
stroke-dash: 3 | ||
} | ||
} | ||
|
||
|
||
SecretSync.dest <- Cluster.Vault: referenced in { | ||
style { | ||
stroke-dash: 3 | ||
} | ||
} | ||
|
||
Vault -> SecretSync.sync: get | ||
SecretSync.sync -> Cluster.Vault: set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters