Hello!
I use Agent Sidecar Injector in Kubernetes and it reads secrets with a delay.
If my pod starts with this entrypoint script,
SECRETS=$(ls /vault/secrets)
for secretFile in $SECRETS; do
cat /vault/secrets/$secretFile >> /vaultEnvs
done
file /vaultEnvs is empty.
But if I add a few seconds pause before it, everything is OK
sleep 15
SECRETS=$(ls /vault/secrets)
for secretFile in $SECRETS; do
cat /vault/secrets/$secretFile >> /vaultEnvs
done
Is it possible for Agent Sidecar Injector read secret immediately without a delay?