Added log when trying to access forbidden env var
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
parent
c4b728cc68
commit
d7daa7541f
|
@ -47,6 +47,8 @@ func (s *envSecretStore) GetSecret(ctx context.Context, req secretstores.GetSecr
|
|||
var value string
|
||||
if s.isKeyAllowed(req.Name) {
|
||||
value = os.Getenv(req.Name)
|
||||
} else {
|
||||
s.logger.Warnf("Access to env var %s is forbidden", req.Name)
|
||||
}
|
||||
return secretstores.GetSecretResponse{
|
||||
Data: map[string]string{
|
||||
|
|
Loading…
Reference in New Issue