airflow-file-auth-manager 0.1.0__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/PKG-INFO +10 -6
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/README.md +4 -2
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/pyproject.toml +6 -6
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/file_auth_manager.py +3 -3
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/policy.py +3 -3
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/.gitignore +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/LICENSE +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/examples/users.yaml +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/__init__.py +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/cli.py +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/endpoints.py +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/password.py +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/static/styles.css +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/templates/login.html +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/user.py +0 -0
- {airflow_file_auth_manager-0.1.0 → airflow_file_auth_manager-0.1.2}/src/airflow_file_auth_manager/user_store.py +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airflow-file-auth-manager
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: YAML file-based lightweight Auth Manager for Apache Airflow 3.x
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
6
|
-
Project-URL: Repository, https://github.com/
|
|
5
|
+
Project-URL: Homepage, https://github.com/choo121600/airflow-file-auth-manager
|
|
6
|
+
Project-URL: Repository, https://github.com/choo121600/airflow-file-auth-manager
|
|
7
|
+
Project-URL: Documentation, https://github.com/choo121600/airflow-file-auth-manager#readme
|
|
8
|
+
Project-URL: Issues, https://github.com/choo121600/airflow-file-auth-manager/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/choo121600/airflow-file-auth-manager/releases
|
|
7
10
|
Author-email: Yeonguk <yeonguk@example.com>
|
|
8
11
|
License-Expression: Apache-2.0
|
|
9
12
|
License-File: LICENSE
|
|
@@ -20,7 +23,6 @@ Requires-Python: >=3.11
|
|
|
20
23
|
Requires-Dist: bcrypt>=4.0.0
|
|
21
24
|
Requires-Dist: pyyaml>=6.0
|
|
22
25
|
Provides-Extra: dev
|
|
23
|
-
Requires-Dist: apache-airflow>=3.0.0; extra == 'dev'
|
|
24
26
|
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
|
|
25
27
|
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
26
28
|
Description-Content-Type: text/markdown
|
|
@@ -29,9 +31,11 @@ Description-Content-Type: text/markdown
|
|
|
29
31
|
|
|
30
32
|
A lightweight YAML file-based Auth Manager for Apache Airflow 3.x
|
|
31
33
|
|
|
34
|
+
[](https://pypi.org/project/airflow-file-auth-manager/)
|
|
32
35
|
[](https://www.python.org/downloads/)
|
|
33
36
|
[](https://airflow.apache.org/)
|
|
34
37
|
[](LICENSE)
|
|
38
|
+
[](https://github.com/choo121600/airflow-file-auth-manager/actions/workflows/ci.yml)
|
|
35
39
|
|
|
36
40
|
## Overview
|
|
37
41
|
|
|
@@ -48,7 +52,7 @@ A lightweight YAML file-based Auth Manager for Apache Airflow 3.x
|
|
|
48
52
|
|
|
49
53
|
## Installation
|
|
50
54
|
|
|
51
|
-
### From PyPI
|
|
55
|
+
### From PyPI
|
|
52
56
|
|
|
53
57
|
```bash
|
|
54
58
|
pip install airflow-file-auth-manager
|
|
@@ -57,7 +61,7 @@ pip install airflow-file-auth-manager
|
|
|
57
61
|
### From Source
|
|
58
62
|
|
|
59
63
|
```bash
|
|
60
|
-
git clone https://github.com/
|
|
64
|
+
git clone https://github.com/choo121600/airflow-file-auth-manager.git
|
|
61
65
|
cd airflow-file-auth-manager
|
|
62
66
|
pip install -e .
|
|
63
67
|
```
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
A lightweight YAML file-based Auth Manager for Apache Airflow 3.x
|
|
4
4
|
|
|
5
|
+
[](https://pypi.org/project/airflow-file-auth-manager/)
|
|
5
6
|
[](https://www.python.org/downloads/)
|
|
6
7
|
[](https://airflow.apache.org/)
|
|
7
8
|
[](LICENSE)
|
|
9
|
+
[](https://github.com/choo121600/airflow-file-auth-manager/actions/workflows/ci.yml)
|
|
8
10
|
|
|
9
11
|
## Overview
|
|
10
12
|
|
|
@@ -21,7 +23,7 @@ A lightweight YAML file-based Auth Manager for Apache Airflow 3.x
|
|
|
21
23
|
|
|
22
24
|
## Installation
|
|
23
25
|
|
|
24
|
-
### From PyPI
|
|
26
|
+
### From PyPI
|
|
25
27
|
|
|
26
28
|
```bash
|
|
27
29
|
pip install airflow-file-auth-manager
|
|
@@ -30,7 +32,7 @@ pip install airflow-file-auth-manager
|
|
|
30
32
|
### From Source
|
|
31
33
|
|
|
32
34
|
```bash
|
|
33
|
-
git clone https://github.com/
|
|
35
|
+
git clone https://github.com/choo121600/airflow-file-auth-manager.git
|
|
34
36
|
cd airflow-file-auth-manager
|
|
35
37
|
pip install -e .
|
|
36
38
|
```
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "airflow-file-auth-manager"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "YAML file-based lightweight Auth Manager for Apache Airflow 3.x"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -31,14 +31,16 @@ dependencies = [
|
|
|
31
31
|
|
|
32
32
|
[project.optional-dependencies]
|
|
33
33
|
dev = [
|
|
34
|
-
"apache-airflow>=3.0.0",
|
|
35
34
|
"pytest>=8.0.0",
|
|
36
35
|
"pytest-cov>=4.0.0",
|
|
37
36
|
]
|
|
38
37
|
|
|
39
38
|
[project.urls]
|
|
40
|
-
Homepage = "https://github.com/
|
|
41
|
-
Repository = "https://github.com/
|
|
39
|
+
Homepage = "https://github.com/choo121600/airflow-file-auth-manager"
|
|
40
|
+
Repository = "https://github.com/choo121600/airflow-file-auth-manager"
|
|
41
|
+
Documentation = "https://github.com/choo121600/airflow-file-auth-manager#readme"
|
|
42
|
+
Issues = "https://github.com/choo121600/airflow-file-auth-manager/issues"
|
|
43
|
+
Changelog = "https://github.com/choo121600/airflow-file-auth-manager/releases"
|
|
42
44
|
|
|
43
45
|
[project.entry-points."airflow.auth.manager"]
|
|
44
46
|
file_auth_manager = "airflow_file_auth_manager:FileAuthManager"
|
|
@@ -75,9 +77,7 @@ known-first-party = ["airflow_file_auth_manager"]
|
|
|
75
77
|
|
|
76
78
|
[dependency-groups]
|
|
77
79
|
dev = [
|
|
78
|
-
"apache-airflow>=3.0.0",
|
|
79
80
|
"pytest>=8.0.0",
|
|
80
81
|
"pytest-cov>=4.0.0",
|
|
81
82
|
"ruff>=0.8.0",
|
|
82
|
-
"starlette>=0.49.1", # Security fix for CVE in FileResponse
|
|
83
83
|
]
|
|
@@ -7,7 +7,7 @@ from functools import cached_property
|
|
|
7
7
|
from typing import TYPE_CHECKING, Any, Sequence
|
|
8
8
|
from urllib.parse import urlencode
|
|
9
9
|
|
|
10
|
-
from airflow.auth.managers.base_auth_manager import BaseAuthManager, ResourceMethod
|
|
10
|
+
from airflow.api_fastapi.auth.managers.base_auth_manager import BaseAuthManager, ResourceMethod
|
|
11
11
|
from airflow.configuration import conf
|
|
12
12
|
|
|
13
13
|
from airflow_file_auth_manager.policy import FileAuthPolicy, Role
|
|
@@ -17,8 +17,8 @@ from airflow_file_auth_manager.user_store import UserStore
|
|
|
17
17
|
if TYPE_CHECKING:
|
|
18
18
|
from fastapi import FastAPI
|
|
19
19
|
|
|
20
|
-
from airflow.auth.managers.models.base_user import BaseUser
|
|
21
|
-
from airflow.auth.managers.models.resource_details import (
|
|
20
|
+
from airflow.api_fastapi.auth.managers.models.base_user import BaseUser
|
|
21
|
+
from airflow.api_fastapi.auth.managers.models.resource_details import (
|
|
22
22
|
AccessView,
|
|
23
23
|
AssetAliasDetails,
|
|
24
24
|
AssetDetails,
|
|
@@ -6,13 +6,13 @@ from enum import Enum
|
|
|
6
6
|
from typing import TYPE_CHECKING
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
-
from airflow.auth.managers.models.resource_details import (
|
|
9
|
+
from airflow.api_fastapi.auth.managers.models.resource_details import (
|
|
10
10
|
AccessView,
|
|
11
|
+
AssetDetails,
|
|
11
12
|
ConfigurationDetails,
|
|
12
13
|
ConnectionDetails,
|
|
13
14
|
DagAccessEntity,
|
|
14
15
|
DagDetails,
|
|
15
|
-
DatasetDetails,
|
|
16
16
|
PoolDetails,
|
|
17
17
|
VariableDetails,
|
|
18
18
|
)
|
|
@@ -127,7 +127,7 @@ class FileAuthPolicy:
|
|
|
127
127
|
*,
|
|
128
128
|
method: str,
|
|
129
129
|
user_role: str,
|
|
130
|
-
details:
|
|
130
|
+
details: AssetDetails | None = None,
|
|
131
131
|
) -> bool:
|
|
132
132
|
"""Check if user can access datasets."""
|
|
133
133
|
if method in cls.READ_ONLY_METHODS:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|