flat-waiter-82487
10/23/2026, 1:37 PMflyte run --copy-style all --service-account my-sa workflow.py main --n 48
- SDK: flyte.with_runcontext(service_account="my-sa").run(main)
In both cases:
- the run spec stores it: security_context.run_as.k8s_service_account: "my-sa"
- but the pod (and children) run as default, so no IRSA and S3 access fails
From the source it looks like the executor only reads the SA from the task template (extractSecurityContextFromTaskTemplate in executor/pkg/plugin/task_exec_metadata.go), and nothing copies the run-level security context into actions.
Same story with the security.service_account project setting: flyte get settings shows it, but runs/service/settings_apply.go only applies queue, max concurrency and pod template (RFC has it as Phase 3.2).
TaskEnvironment(service_account="my-sa") works fine, so we're unblocked. Just want to know if the run-level/settings path is meant to work yet, or if I should open an issue. Thanks!freezing-airport-6809
glamorous-carpet-83516
10/23/2026, 2:10 PM