Skip to content

Commit

Permalink
Add examples in AWS auth manager documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vincbeck committed Apr 15, 2024
1 parent 95a136e commit 6599ba0
Showing 1 changed file with 69 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,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 @@ -149,6 +151,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 @@ -157,7 +161,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 @@ -168,6 +171,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 6599ba0

Please sign in to comment.