straight-london-89862
11/22/2023, 12:39 AMflyte-binary
?
I've added this to my values.yaml:
configuration:
inline:
webhook:
secretManagerType: "AWS"
and it seemed to override the proppeler configurtion correctly but no sidecar is being created for any of the tasks.
And I get this error on task execution:
Please make sure to add secret_requests=[Secret(group=arn:aws:secretsmanager:***:***:secret:, key=flyte/***)] in @task. Unable to find secret for key flyte/*** in group arn:aws:secretsmanager:***:***:secret: in Env Var:_FSEC_ARN:AWS:SECRETSMANAGER:***:***:SECRET:_FLYTE/*** and FilePath: /etc/secrets/arn:aws:secretsmanager:***:***:secret:/flyte/***
glamorous-carpet-83516
11/22/2023, 12:40 AMstraight-london-89862
11/22/2023, 12:43 AMglamorous-carpet-83516
11/22/2023, 12:51 AMglamorous-carpet-83516
11/22/2023, 12:51 AMstraight-london-89862
11/22/2023, 1:06 AMconfiguration:
inline:
webhook:
secretManagerType: "K8s"
and run the example from the link.
It worked for k8s secret - I was able to retrieve the secret inside the task.glamorous-carpet-83516
11/22/2023, 1:09 AMicy-agent-73298
11/22/2023, 1:26 AMstraight-london-89862
11/22/2023, 1:29 AMglamorous-carpet-83516
11/22/2023, 3:19 AMstraight-london-89862
11/22/2023, 7:46 PM{"json":{"src":"secrets.go:51"},"level":"info","msg":"Failed to inject a secret using injector [Global]. Error: secrets not found - Env [FLYTE_SECRET_FLYTE-FLYTE-BINARY-5BC97CC4CF-R7QPBARN:AWS:SECRETSMANAGER:E***:***:SECRET:_FLYTE/NEPTUNE-ZVYJTX], file [/etc/secrets/flyte-flyte-binary-5bc97cc4cf-r7qpbarn:aws:secretsmanager:***:***:secret:/flyte/neptune-zvyjTX]","ts":"2023-11-22T19:38:23Z"}
{"json":{"src":"secrets.go:45"},"level":"info","msg":"Skipping SecretManager [K8s] since it's not enabled.","ts":"2023-11-22T19:38:23Z"}
{"json":{"src":"aws_secret_manager.go:116"},"level":"error","msg":"unrecognized mount requirement [ENV_VAR] for secret [flyte/neptune-zvyjTX]","ts":"2023-11-22T19:38:23Z"}
{"json":{"src":"secrets.go:51"},"level":"info","msg":"Failed to inject a secret using injector [AWS]. Error: unrecognized mount requirement [ENV_VAR] for secret [flyte/neptune-zvyjTX]","ts":"2023-11-22T19:38:23Z"}
{"json":{"src":"secrets.go:45"},"level":"info","msg":"Skipping SecretManager [GCP] since it's not enabled.","ts":"2023-11-22T19:38:23Z"}
{"json":{"src":"secrets.go:45"},"level":"info","msg":"Skipping SecretManager [Vault] since it's not enabled.","ts":"2023-11-22T19:38:23Z"}
{"json":{"src":"pod.go:122"},"level":"info","msg":"Failed to mutate using [secrets]. Since it's not a required mutator, skipping. Error: unrecognized mount requirement [ENV_VAR] for secret [flyte/neptune-zvyjTX]","ts":"2023-11-22T19:38:23Z"}
straight-london-89862
11/22/2023, 7:54 PMSecret(
group=SECRET_GROUP,
key=SECRET_NAME,
# mount_requirement=Secret.MountType.ENV_VAR,
),
straight-london-89862
11/22/2023, 7:54 PMstraight-london-89862
11/22/2023, 7:58 PMSecret.MountType.FILE
but not with Secret.MountType.ENV_VAR
thankful-minister-83577
thankful-minister-83577
fierce-match-73373
12/01/2023, 3:51 AM"AWS_ACCESS_KEY_ID": "some-value"
"AWS_SECRET_ACCESS_KEY": "some-value",
"AWS_DEFAULT_REGION": "some-value"
and may I specify different credentials on different project/environment combinations?thankful-minister-83577