snakemake / snakemake-executor-plugin-googlebatch

Snakemake executor plugin for Google Batch (under development)
MIT License
3 stars 5 forks source link

Future to look into: secret manager #15

Open vsoch opened 7 months ago

vsoch commented 7 months ago

I attempted setting envars into the secret section of the runnable:

runnable.environment.secret_variables = envars

But it didn't work, I suspect I need to set up some other API (or it's a bug):

{
insertId: "1hu9z7gfgazfta"
labels: {3}
logName: "projects/llnl-flux/logs/batch_agent_logs"
receiveTimestamp: "2023-12-06T18:57:44.830224840Z"
resource: {2}
severity: "ERROR"
textPayload: "Task task/multilingual-hello-656e337a-99df-42250-group0-0/0/0 runnable 2 error preparing environment: rpc error: code = PermissionDenied desc = Permission denied on resource project 5.
error details: name = ErrorInfo reason = CONSUMER_INVALID domain = googleapis.com metadata = map[consumer:projects/5 service:secretmanager.googleapis.com]
error details: name = Help desc = Google developers console url = https://console.developers.google.com
"
timestamp: "2023-12-06T18:57:44.811014623Z"
}