osdfir-infrastructure icon indicating copy to clipboard operation
osdfir-infrastructure copied to clipboard

init script does not check for correct permissions

Open jkppr opened this issue 1 year ago • 1 comments

Name and Version

latest

What environment are you using?

GKE

What steps will reproduce the bug?

  1. create a turbinia service account
  2. do NOT add the correct permissions
  3. run the init-gke.sh script
  4. When trying to use any gcp dftw recipe it will fail because of the wrong permissions.

Are you using any custom parameters or values?

No response

What is the expected behavior?

I would expect the init script to verify if the correct permissions for the service account are assigned and assign them if not.

What do you see instead?

Turbinia will just fail with a permission error.

Additional information

No response

jkppr avatar Sep 26 '23 15:09 jkppr

Not necessarily a bug but implementation choice as checking for the correct permissions is a bit more involved to do so opted to check for existence instead until we come up with a better way (which brought this edge case). Maybe in meantime can just add automatically even if it exists in case this comes up given default account anyways would be 'turbinia' unless they went into script and changed it which at that point they'd see that we add permissions to a GCP account as part of this before running the script.

wajihyassine avatar Sep 26 '23 21:09 wajihyassine