Skip to content

Conversation

@o-nikolas
Copy link
Contributor

@o-nikolas o-nikolas commented Sep 2, 2025

EKS token generation happens as a result of a bash script (which ultimately runs some python code) inserted into the kube config and called by k8s code. This script cannot access connections and variables since it does not communicate with the Task SDK API. Instead resolve the credentials and write to a read-only file that is only readable by the Airflow user. This file is used to generate the EKS token that is ultimately used by k8s.

Relates #54582
Fixes #53578


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
@o-nikolas o-nikolas requested a review from eladkal as a code owner September 2, 2025 21:32
@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Sep 2, 2025
@o-nikolas o-nikolas requested a review from vincbeck September 2, 2025 22:45
@o-nikolas o-nikolas merged commit f1e9e52 into apache:main Sep 3, 2025
77 checks passed
@o-nikolas o-nikolas deleted the onikolas/eks_sessionless_token_generation branch September 3, 2025 17:30
RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Sep 8, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Sep 30, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 1, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 2, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 3, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 4, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 7, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 8, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 9, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 10, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 11, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 12, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 14, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 15, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 19, 2025
EKS token generation happens as a result of a bash script (which
ultimately runs some python code) inserted into the kube config and
called by k8s code. This script cannot access connections and
variables since it does not communicate with the Task SDK API.
Instead resolve the credentials and write to a read-only file that is
only readable by the Airflow user. This file is used to generate the EKS
token that is ultimately used by k8s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EKSPodOperator authentication issue using connections from metadata-database in Airflow 3.0.3

3 participants