https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Aleksei Potov

03/03/2023, 12:03 AM
and a quick follow-up: when passing
secret_requests
to
ContainerTask
- how this is made available within container? I don't see
/etc/flyte/secrets
mounted
k

Ketan (kumare3)

03/03/2023, 1:04 AM
ohh, it should be using the webhook
secrets webhook
actually coming soon is pod-templates
you can basically add pod features to container tasks
a

Aleksei Potov

03/03/2023, 2:26 AM
is there a doc link for secrets webhook?
a

Aleksei Potov

03/03/2023, 2:39 AM
Sorry, I'm still a little lost. I've used
secret_requests
with
ShellTask
for example, and the secrets are mounted within container. But doing the same with `ContainerTask`does not work for me. Should I be doing this differently?
k

Ketan (kumare3)

03/03/2023, 5:19 AM
Hmm are secrets not working for raw containers, let me check
it seems to be there, i will test it in a bit and ensure
f

Felix Ruess

03/03/2023, 8:53 AM
Or just use a pod_template and inject secrets there as you like (so you are not bound to the flyte dir or env prefix)
k

Ketan (kumare3)

03/03/2023, 2:43 PM
Tbh I prefer the Flyte for. It keeps the mealiness of pods from not being exposed unnecessarily and consistent way of specifying secrets
I think this should work - @Felix Ruess did this work for you
f

Felix Ruess

03/03/2023, 2:46 PM
Yeah, secrets work with container tasks now. But you can't e.g. completely control the injected env name or file name (if you need that)
k

Ketan (kumare3)

03/03/2023, 2:50 PM
Aah ya
a

Aleksei Potov

03/03/2023, 4:49 PM
how old is my version? 🙂
Copy code
Flyte Console
UI Version
1.3.4
Admin Version
1.1.46
do I need an upgrade?
f

Felix Ruess

03/03/2023, 4:55 PM
which flytekit version are you using? IIRC this just needed changes in flytekit
a

Aleksei Potov

03/03/2023, 4:57 PM
flytekit==1.2.1
f

Felix Ruess

03/03/2023, 4:59 PM
yeah, you need at least v1.3.0b1
a

Aleksei Potov

03/03/2023, 4:59 PM
will try upgrading today and report back
f

Felix Ruess

03/03/2023, 5:00 PM
should also be in 1.2.4
a

Aleksei Potov

03/03/2023, 5:02 PM
excellent, thank you so much!
f

Felix Ruess

03/03/2023, 5:13 PM
my pleasure
a

Aleksei Potov

03/03/2023, 8:57 PM
confirm that upgrading fixed it 🙇