Skip to content

Commit

Permalink
Add examples in AWS auth manager documentation (apache#39040)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincbeck authored Apr 16, 2024
1 parent cf56402 commit 4a28846
Showing 1 changed file with 69 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ Give all permissions to specific user
Give all permissions to a group of users
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is equivalent to the :doc:`Admin role in Flask AppBuilder <apache-airflow-providers-fab:auth-manager/access-control>`.

::

permit(
Expand All @@ -148,6 +150,8 @@ Give all permissions to a group of users
Give read-only permissions to a group of users
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is equivalent to the :doc:`Viewer role in Flask AppBuilder <apache-airflow-providers-fab:auth-manager/access-control>`.

::

permit(
Expand All @@ -156,7 +160,6 @@ Give read-only permissions to a group of users
Airflow::Action::"Configuration.GET",
Airflow::Action::"Connection.GET",
Airflow::Action::"Custom.GET",
Airflow::Action::"Dag.PUT",
Airflow::Action::"Dag.GET",
Airflow::Action::"Menu.MENU",
Airflow::Action::"Pool.GET",
Expand All @@ -167,6 +170,71 @@ Give read-only permissions to a group of users
resource
);

Give standard Airflow user permissions to a group of users
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is equivalent to the :doc:`User role in Flask AppBuilder <apache-airflow-providers-fab:auth-manager/access-control>`.

::

permit(
principal in Airflow::Group::"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
action in [
Airflow::Action::"Configuration.GET",
Airflow::Action::"Connection.GET",
Airflow::Action::"Custom.GET",
Airflow::Action::"Dag.GET",
Airflow::Action::"Menu.MENU",
Airflow::Action::"Pool.GET",
Airflow::Action::"Variable.GET",
Airflow::Action::"Dataset.GET",
Airflow::Action::"View.GET",
Airflow::Action::"Dag.POST",
Airflow::Action::"Dag.PUT",
Airflow::Action::"Dag.DELETE",
],
resource
);

Give operational permissions to a group of users
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is equivalent to the :doc:`Op role in Flask AppBuilder <apache-airflow-providers-fab:auth-manager/access-control>`.

::

permit(
principal in Airflow::Group::"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
action in [
Airflow::Action::"Configuration.GET",
Airflow::Action::"Connection.GET",
Airflow::Action::"Custom.GET",
Airflow::Action::"Dag.GET",
Airflow::Action::"Menu.MENU",
Airflow::Action::"Pool.GET",
Airflow::Action::"Variable.GET",
Airflow::Action::"Dataset.GET",
Airflow::Action::"View.GET",
Airflow::Action::"Dag.POST",
Airflow::Action::"Dag.PUT",
Airflow::Action::"Dag.DELETE",
Airflow::Action::"Connection.POST",
Airflow::Action::"Connection.PUT",
Airflow::Action::"Connection.DELETE",
Airflow::Action::"Pool.POST",
Airflow::Action::"Pool.PUT",
Airflow::Action::"Pool.DELETE",
Airflow::Action::"Variable.POST",
Airflow::Action::"Variable.PUT",
Airflow::Action::"Variable.DELETE",
Airflow::Action::"Dataset.POST",
Airflow::Action::"Dataset.PUT",
Airflow::Action::"Dataset.DELETE",

],
resource
);

Give DAG specific permissions to a group of users
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 4a28846

Please sign in to comment.