Skip to content

Commit

Permalink
Merge pull request #258 from delphix/dlpx/pr/sonamkindy/99fc7416-8448…
Browse files Browse the repository at this point in the history
…-4f31-8dcb-1c66aeda8567

GHM-824 Build masking and containerized masking packages with secrets
  • Loading branch information
sonamkindy authored Oct 26, 2022
2 parents b5d1090 + 234e301 commit 89d357e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/containerized-masking/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,32 @@ function build() {

logmust cd "$WORKDIR/repo"

if [[ "$SECRET_DB_AWS_ENDPOINT" ]]; then
export SECRET_DB_AWS_ENDPOINT="$SECRET_DB_AWS_ENDPOINT"
fi

# Using secrets proxy
if [[ "$SECRET_DB_USE_JUMPBOX" ]]; then
export SECRET_DB_USE_JUMPBOX="$SECRET_DB_USE_JUMPBOX"
fi
if [[ "$SECRET_DB_JUMP_BOX_HOST" ]]; then
export SECRET_DB_JUMP_BOX_HOST="$SECRET_DB_JUMP_BOX_HOST"
fi
if [[ "$SECRET_DB_JUMP_BOX_USER" ]]; then
export SECRET_DB_JUMP_BOX_USER="$SECRET_DB_JUMP_BOX_USER"
fi
if [[ "$SECRET_DB_JUMP_BOX_PRIVATE_KEY" ]]; then
export SECRET_DB_JUMP_BOX_PRIVATE_KEY="$SECRET_DB_JUMP_BOX_PRIVATE_KEY"
fi

# Using master/eng-secret-user
if [[ "$SECRET_DB_AWS_PROFILE" ]]; then
export SECRET_DB_AWS_PROFILE="$SECRET_DB_AWS_PROFILE"
fi
if [[ "$SECRET_DB_AWS_REGION" ]]; then
export SECRET_DB_AWS_REGION="$SECRET_DB_AWS_REGION"
fi

logmust ./gradlew --no-daemon --stacktrace \
-Porg.gradle.configureondemand=false \
-PenvironmentName=linuxappliance \
Expand Down
26 changes: 26 additions & 0 deletions packages/masking/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,32 @@ function build() {
'{ "dms-core-gate" : { "git-hash" : $h, "date": $d }}' \
>"$WORKDIR/artifacts/metadata.json"

if [[ "$SECRET_DB_AWS_ENDPOINT" ]]; then
export SECRET_DB_AWS_ENDPOINT="$SECRET_DB_AWS_ENDPOINT"
fi

# Using secrets proxy
if [[ "$SECRET_DB_USE_JUMPBOX" ]]; then
export SECRET_DB_USE_JUMPBOX="$SECRET_DB_USE_JUMPBOX"
fi
if [[ "$SECRET_DB_JUMP_BOX_HOST" ]]; then
export SECRET_DB_JUMP_BOX_HOST="$SECRET_DB_JUMP_BOX_HOST"
fi
if [[ "$SECRET_DB_JUMP_BOX_USER" ]]; then
export SECRET_DB_JUMP_BOX_USER="$SECRET_DB_JUMP_BOX_USER"
fi
if [[ "$SECRET_DB_JUMP_BOX_PRIVATE_KEY" ]]; then
export SECRET_DB_JUMP_BOX_PRIVATE_KEY="$SECRET_DB_JUMP_BOX_PRIVATE_KEY"
fi

# Using master/eng-secret-user
if [[ "$SECRET_DB_AWS_PROFILE" ]]; then
export SECRET_DB_AWS_PROFILE="$SECRET_DB_AWS_PROFILE"
fi
if [[ "$SECRET_DB_AWS_REGION" ]]; then
export SECRET_DB_AWS_REGION="$SECRET_DB_AWS_REGION"
fi

logmust ./gradlew --no-daemon --stacktrace \
-Porg.gradle.configureondemand=false \
-PenvironmentName=linuxappliance \
Expand Down

0 comments on commit 89d357e

Please sign in to comment.