Skip to content

Commit

Permalink
Added missing credhub root path to credhub connection env
Browse files Browse the repository at this point in the history
[Bug Fixes]

* Added missing credhub root path when the `genesis.bosh_env` is set in the environment YAML file.  This resolves the `uninitialized value in concatenation` error when reading or writing credhub secrets.
  • Loading branch information
dennisjbell committed Aug 8, 2024
1 parent 63d7147 commit 813dc50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Genesis/Env.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,8 @@ sub credhub_connection_env {
"director login credentials"
) unless $bosh_vault && $bosh_vault->connect_and_validate;
}
$env{GENESIS_CREDHUB_EXODUS_SOURCE} = "$bosh_alias/$bosh_dep_type";
$env{GENESIS_CREDHUB_ROOT}=sprintf("/%s-%s/%s-%s", $bosh_alias, $bosh_dep_type, $self->name, $self->type);
$credhub_info = $bosh_vault->get("$bosh_exodus_mount/$bosh_alias/$bosh_dep_type");
} else {
$env{GENESIS_CREDHUB_EXODUS_SOURCE_OVERRIDE} =
Expand Down

0 comments on commit 813dc50

Please sign in to comment.