Skip to content

Commit

Permalink
doc: Update README.md secrets section for secret-agent
Browse files Browse the repository at this point in the history
ref: CLOUD-2639
  • Loading branch information
maxres-fr committed Oct 14, 2020
1 parent 58f2488 commit 2dc5fd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,8 @@ By default, the latest setup-profile version (7.0) is deployed.

## Secrets

CDK and CDM deployments use a default set of secrets. Instead of using the default secrets, you can
randomly generate secrets for the ForgeRock Identity Platform using the forgeops-secrets tool.
For more information about randomly generating secrets, see the
[forgeops-secrets README](docker/forgeops-secrets/forgeops-secrets-image/README.md)
CDK and CDM deployments use secrets generated and managed by the secret-agent operator. For more information
about the secret agent operator, see [secret-agent README](https://github.com/ForgeRock/secret-agent/blob/master/README.md)


## Development SSL Certificates
Expand Down
9 changes: 4 additions & 5 deletions bin/secret-agent.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
#!/usr/bin/env bash
SECRET_AGENT_VERSION=master
SECRET_AGENT_VERSION=${SECRET_AGENT_VERSION:-latest}

USAGE="Usage: $0 install|remove"

install() {
kustomize build \
"github.com/ForgeRock/secret-agent//config/default/?ref=${SECRET_AGENT_VERSION}" | kubectl apply -f -
kubectl apply -f https://github.com/ForgeRock/secret-agent/releases/${SECRET_AGENT_VERSION}/download/secret-agent.yaml
}

remove() {
echo "Warning this is very destructive and will remove all managed secrets"
echo "Waiting 5 seconds before removing."
sleep 5
kustomize build \
"github.com/ForgeRock/secret-agent//config/default" | kubectl delete -f -
kubectl delete -f https://github.com/ForgeRock/secret-agent/releases/${SECRET_AGENT_VERSION}/download/secret-agent.yaml

}

cmd=${1}
Expand Down

0 comments on commit 2dc5fd5

Please sign in to comment.