exordos-notification 1.2.3__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.
Files changed (70) hide show
  1. exordos_notification-1.2.3/.github/dependabot.yml +29 -0
  2. exordos_notification-1.2.3/.github/workflows/build.yml +39 -0
  3. exordos_notification-1.2.3/.github/workflows/publish-to-pypi.yml +97 -0
  4. exordos_notification-1.2.3/.github/workflows/tests.yaml +98 -0
  5. exordos_notification-1.2.3/.gitignore +131 -0
  6. exordos_notification-1.2.3/CODEOWNERS +5 -0
  7. exordos_notification-1.2.3/LICENSE +201 -0
  8. exordos_notification-1.2.3/PKG-INFO +92 -0
  9. exordos_notification-1.2.3/README.md +46 -0
  10. exordos_notification-1.2.3/etc/exordos_notification/core_agent.conf.j2 +21 -0
  11. exordos_notification-1.2.3/etc/exordos_notification/exordos_notification.conf +22 -0
  12. exordos_notification-1.2.3/etc/exordos_notification/exordos_notification.conf.j2 +20 -0
  13. exordos_notification-1.2.3/etc/exordos_notification/exordos_notification.d/.empty +0 -0
  14. exordos_notification-1.2.3/etc/exordos_notification/logging.yaml +38 -0
  15. exordos_notification-1.2.3/etc/systemd/exordos-notification-builder-agent.service +14 -0
  16. exordos_notification-1.2.3/etc/systemd/exordos-notification-core-agent.service +12 -0
  17. exordos_notification-1.2.3/etc/systemd/exordos-notification-mail-agent.service +14 -0
  18. exordos_notification-1.2.3/etc/systemd/exordos-notification-user-api.service +14 -0
  19. exordos_notification-1.2.3/exordos/exordos.yaml +50 -0
  20. exordos_notification-1.2.3/exordos/images/bootstrap.sh +91 -0
  21. exordos_notification-1.2.3/exordos/images/install.sh +78 -0
  22. exordos_notification-1.2.3/exordos/manifests/exordos_notification.yaml.j2 +356 -0
  23. exordos_notification-1.2.3/exordos/manifests/site_config.yaml.j2 +101 -0
  24. exordos_notification-1.2.3/exordos/manifests/site_config.yaml.j2.example +80 -0
  25. exordos_notification-1.2.3/exordos_notification/__init__.py +0 -0
  26. exordos_notification-1.2.3/exordos_notification/clients/__init__.py +0 -0
  27. exordos_notification-1.2.3/exordos_notification/clients/iam.py +91 -0
  28. exordos_notification-1.2.3/exordos_notification/cmd/__init__.py +0 -0
  29. exordos_notification-1.2.3/exordos_notification/cmd/builder_agent.py +89 -0
  30. exordos_notification-1.2.3/exordos_notification/cmd/mail_agent.py +53 -0
  31. exordos_notification-1.2.3/exordos_notification/cmd/user_api.py +103 -0
  32. exordos_notification-1.2.3/exordos_notification/common/__init__.py +0 -0
  33. exordos_notification-1.2.3/exordos_notification/common/api/__init__.py +0 -0
  34. exordos_notification-1.2.3/exordos_notification/common/api/middlewares/__init__.py +0 -0
  35. exordos_notification-1.2.3/exordos_notification/common/api/middlewares/errors.py +20 -0
  36. exordos_notification-1.2.3/exordos_notification/common/config.py +48 -0
  37. exordos_notification-1.2.3/exordos_notification/common/constants.py +31 -0
  38. exordos_notification-1.2.3/exordos_notification/common/log.py +84 -0
  39. exordos_notification-1.2.3/exordos_notification/dm/__init__.py +0 -0
  40. exordos_notification-1.2.3/exordos_notification/dm/models.py +614 -0
  41. exordos_notification-1.2.3/exordos_notification/services/__init__.py +0 -0
  42. exordos_notification-1.2.3/exordos_notification/services/builders/__init__.py +0 -0
  43. exordos_notification-1.2.3/exordos_notification/services/builders/agents.py +88 -0
  44. exordos_notification-1.2.3/exordos_notification/services/providers/agents.py +54 -0
  45. exordos_notification-1.2.3/exordos_notification/tests/__init__.py +0 -0
  46. exordos_notification-1.2.3/exordos_notification/tests/functional/__init__.py +0 -0
  47. exordos_notification-1.2.3/exordos_notification/tests/functional/test_basic.py +22 -0
  48. exordos_notification-1.2.3/exordos_notification/tests/unit/__init__.py +0 -0
  49. exordos_notification-1.2.3/exordos_notification/tests/unit/test_basic.py +22 -0
  50. exordos_notification-1.2.3/exordos_notification/user_api/__init__.py +0 -0
  51. exordos_notification-1.2.3/exordos_notification/user_api/api/__init__.py +0 -0
  52. exordos_notification-1.2.3/exordos_notification/user_api/api/app.py +85 -0
  53. exordos_notification-1.2.3/exordos_notification/user_api/api/controllers.py +56 -0
  54. exordos_notification-1.2.3/exordos_notification/user_api/api/routes.py +47 -0
  55. exordos_notification-1.2.3/exordos_notification/user_api/api/versions.py +17 -0
  56. exordos_notification-1.2.3/exordos_notification/version.py +25 -0
  57. exordos_notification-1.2.3/exordos_notification.egg-info/PKG-INFO +92 -0
  58. exordos_notification-1.2.3/exordos_notification.egg-info/SOURCES.txt +68 -0
  59. exordos_notification-1.2.3/exordos_notification.egg-info/dependency_links.txt +1 -0
  60. exordos_notification-1.2.3/exordos_notification.egg-info/entry_points.txt +4 -0
  61. exordos_notification-1.2.3/exordos_notification.egg-info/requires.txt +29 -0
  62. exordos_notification-1.2.3/exordos_notification.egg-info/scm_file_list.json +64 -0
  63. exordos_notification-1.2.3/exordos_notification.egg-info/scm_version.json +8 -0
  64. exordos_notification-1.2.3/exordos_notification.egg-info/top_level.txt +5 -0
  65. exordos_notification-1.2.3/migrations/0000-init-tables-40a307.py +247 -0
  66. exordos_notification-1.2.3/project_settings.json +17 -0
  67. exordos_notification-1.2.3/pyproject.toml +188 -0
  68. exordos_notification-1.2.3/setup.cfg +4 -0
  69. exordos_notification-1.2.3/tox.ini +62 -0
  70. exordos_notification-1.2.3/uv.lock +1956 -0
@@ -0,0 +1,29 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "uv"
4
+ directory: "/"
5
+ open-pull-requests-limit: 5
6
+ schedule:
7
+ interval: "weekly"
8
+ day: "sunday"
9
+ time: "00:00"
10
+ groups:
11
+ core-packages:
12
+ patterns:
13
+ - "bazooka"
14
+ - "restalchemy"
15
+ - "gcl*"
16
+ other-packages:
17
+ patterns:
18
+ - "*"
19
+ exclude-patterns:
20
+ - "bazooka"
21
+ - "restalchemy"
22
+ - "gcl*"
23
+ - package-ecosystem: "github-actions"
24
+ directory: "/"
25
+ open-pull-requests-limit: 5
26
+ schedule:
27
+ interval: "weekly"
28
+ day: "sunday"
29
+ time: "00:00"
@@ -0,0 +1,39 @@
1
+ name: build
2
+
3
+ on:
4
+ push:
5
+
6
+ env:
7
+ ARTIFACTS_PATH: artifacts
8
+
9
+ jobs:
10
+ Build:
11
+ runs-on: [self-hosted, vm]
12
+ if : ${{ github.actor != 'dependabot[bot]' }}
13
+ strategy:
14
+ fail-fast: true
15
+ steps:
16
+ - uses: actions/checkout@v7
17
+ with:
18
+ fetch-depth: 0
19
+ - name: Build Element
20
+ env:
21
+ PUSH_CFG: ${{ secrets.PUSH_CFG }}
22
+ run: |
23
+ set -eux
24
+
25
+ mkdir -p ${ARTIFACTS_PATH}
26
+
27
+ VERSION="$(exordos get-version .)"
28
+
29
+ exordos build $(pwd)
30
+
31
+ # Decode and write the push configuration
32
+ echo "$PUSH_CFG" | base64 -d > exordos/exordos.push.yaml
33
+ exordos push -c exordos/exordos.push.yaml -t local -f --latest
34
+ - name: Setup upterm session
35
+ uses: owenthereal/action-upterm@v1
36
+ if: ${{ failure() }}
37
+ with:
38
+ limit-access-to-actor: true
39
+ wait-timeout-minutes: 15
@@ -0,0 +1,97 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ jobs:
9
+ build:
10
+ name: Build distribution 📦
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v6
15
+ with:
16
+ persist-credentials: false
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v7
19
+ with:
20
+ python-version: "3.12"
21
+ - name: Install pypa/build
22
+ run: >-
23
+ python3 -m
24
+ pip install
25
+ build
26
+ --user
27
+ - name: Build a binary wheel and a source tarball
28
+ run: python3 -m build
29
+ - name: Store the distribution packages
30
+ uses: actions/upload-artifact@v7
31
+ with:
32
+ name: python-package-distributions
33
+ path: dist/
34
+
35
+ publish-to-pypi:
36
+ name: >-
37
+ Publish Python 🐍 distribution 📦 to PyPI
38
+ needs:
39
+ - build
40
+ runs-on: ubuntu-latest
41
+ environment:
42
+ name: pypi
43
+ url: https://pypi.org/p/exordos_notification
44
+ permissions:
45
+ id-token: write # IMPORTANT: mandatory for trusted publishing
46
+
47
+ steps:
48
+ - name: Download all the dists
49
+ uses: actions/download-artifact@v8
50
+ with:
51
+ name: python-package-distributions
52
+ path: dist/
53
+ - name: Publish distribution 📦 to PyPI
54
+ uses: pypa/gh-action-pypi-publish@release/v1
55
+
56
+ github-release:
57
+ name: >-
58
+ Sign the Python 🐍 distribution 📦 with Sigstore
59
+ and upload them to GitHub Release
60
+ needs:
61
+ - publish-to-pypi
62
+ runs-on: ubuntu-latest
63
+
64
+ permissions:
65
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
66
+ id-token: write # IMPORTANT: mandatory for sigstore
67
+
68
+ steps:
69
+ - name: Download all the dists
70
+ uses: actions/download-artifact@v8
71
+ with:
72
+ name: python-package-distributions
73
+ path: dist/
74
+ - name: Sign the dists with Sigstore
75
+ uses: sigstore/gh-action-sigstore-python@v3.5.0
76
+ with:
77
+ inputs: >-
78
+ ./dist/*.tar.gz
79
+ ./dist/*.whl
80
+ - name: Create GitHub Release
81
+ env:
82
+ GITHUB_TOKEN: ${{ github.token }}
83
+ run: >-
84
+ gh release create
85
+ "$GITHUB_REF_NAME"
86
+ --repo "$GITHUB_REPOSITORY"
87
+ --notes ""
88
+ - name: Upload artifact signatures to GitHub Release
89
+ env:
90
+ GITHUB_TOKEN: ${{ github.token }}
91
+ # Upload to GitHub Release using the `gh` CLI.
92
+ # `dist/` contains the built packages, and the
93
+ # sigstore-produced signatures and certificates.
94
+ run: >-
95
+ gh release upload
96
+ "$GITHUB_REF_NAME" dist/**
97
+ --repo "$GITHUB_REPOSITORY"
@@ -0,0 +1,98 @@
1
+ name: tests
2
+
3
+ on:
4
+ push:
5
+ paths-ignore:
6
+ - 'docs/**'
7
+ - 'mkdocs.yml'
8
+ - '.markdownlint.yaml'
9
+ pull_request:
10
+ types: [opened]
11
+ paths-ignore:
12
+ - 'docs/**'
13
+ - 'mkdocs.yml'
14
+ - '.markdownlint.yaml'
15
+
16
+ jobs:
17
+ Lint:
18
+ runs-on: ubuntu-24.04
19
+ strategy:
20
+ fail-fast: true
21
+ matrix:
22
+ python-version: ["3.12"]
23
+ steps:
24
+ - uses: actions/checkout@v6
25
+ - name: Set up Python ${{ matrix.python-version }}
26
+ uses: actions/setup-python@v7
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+ - name: Install requirements
30
+ run: sudo apt update && sudo apt install --yes tox libev-dev libvirt-dev
31
+ - name: Install uv
32
+ uses: astral-sh/setup-uv@v7
33
+ - name: Install tox-uv
34
+ run: uv tool install tox --with tox-uv
35
+ - name: ruff
36
+ run: |
37
+ tox -e ruff-check
38
+ Tests:
39
+ runs-on: ubuntu-24.04
40
+ strategy:
41
+ fail-fast: true
42
+ matrix:
43
+ python-version: ["3.10", "3.12", "3.14"]
44
+ services:
45
+ postgresql:
46
+ image: postgres:latest
47
+ # Provide the password for postgres
48
+ env:
49
+ POSTGRES_DB: exordos_notification
50
+ POSTGRES_HOST_AUTH_METHOD: trust
51
+ POSTGRES_USER: exordos_notification
52
+ POSTGRES_PASSWORD: exordos_notification
53
+ # Set health checks to wait until postgres has started
54
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
55
+ ports:
56
+ # Maps tcp port 5432 on service container to the host
57
+ - 5432:5432
58
+ steps:
59
+ - uses: actions/checkout@v6
60
+ - name: Set up Python ${{ matrix.python-version }}
61
+ uses: actions/setup-python@v7
62
+ with:
63
+ python-version: ${{ matrix.python-version }}
64
+ - name: Install requirements
65
+ run: sudo apt update && sudo apt install --yes libev-dev libvirt-dev
66
+ - name: Install uv
67
+ uses: astral-sh/setup-uv@v7
68
+ - name: Install tox-uv
69
+ run: uv tool install tox --with tox-uv
70
+ - name: Unit tests
71
+ run: |
72
+ tox -e ${{ matrix.python-version }}
73
+ - name: Functional tests
74
+ env:
75
+ DATABASE_URI: "postgresql://exordos_notification:exordos_notification@localhost:5432/exordos_notification"
76
+ run: |
77
+ tox -e ${{ matrix.python-version }}-functional
78
+ Coverage:
79
+ runs-on: ubuntu-24.04
80
+ strategy:
81
+ fail-fast: true
82
+ matrix:
83
+ python-version: ["3.12"]
84
+ steps:
85
+ - uses: actions/checkout@v6
86
+ - name: Set up Python ${{ matrix.python-version }}
87
+ uses: actions/setup-python@v7
88
+ with:
89
+ python-version: ${{ matrix.python-version }}
90
+ - name: Install requirements
91
+ run: sudo apt update && sudo apt install --yes libev-dev
92
+ - name: Install uv
93
+ uses: astral-sh/setup-uv@v7
94
+ - name: Install tox-uv
95
+ run: uv tool install tox --with tox-uv
96
+ - name: Coverage
97
+ run: |
98
+ tox -e begin,${{ matrix.python-version }},end
@@ -0,0 +1,131 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # editors
10
+ *~
11
+
12
+ # IDE
13
+ .idea/
14
+ .vscode/
15
+
16
+ # Distribution / packaging
17
+ .Python
18
+ build/
19
+ develop-eggs/
20
+ dist/
21
+ docker/common/bin
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+ AUTHORS
36
+ ChangeLog
37
+ cover/
38
+
39
+ # OS
40
+ .DS_Store
41
+
42
+ # PyInstaller
43
+ # Usually these files are written by a python script from a template
44
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
45
+ *.manifest
46
+ *.spec
47
+
48
+ # Installer logs
49
+ pip-log.txt
50
+ pip-delete-this-directory.txt
51
+
52
+ # Unit test / coverage reports
53
+ htmlcov/
54
+ .tox/
55
+ .tox
56
+ .coverage
57
+ .coverage.*
58
+ .cache
59
+ nosetests.xml
60
+ coverage.xml
61
+ *.cover
62
+ .hypothesis/
63
+ .pytest_cache/
64
+ .testrepository/
65
+
66
+ # Translations
67
+ *.mo
68
+ *.pot
69
+
70
+ # Django stuff:
71
+ *.log
72
+ local_settings.py
73
+ db.sqlite3
74
+
75
+ # Flask stuff:
76
+ instance/
77
+ .webassets-cache
78
+
79
+ # Scrapy stuff:
80
+ .scrapy
81
+
82
+ # Sphinx documentation
83
+ docs/_build/
84
+
85
+ # PyBuilder
86
+ target/
87
+
88
+ # Jupyter Notebook
89
+ .ipynb_checkpoints
90
+
91
+ # pyenv
92
+ .python-version
93
+
94
+ # celery beat schedule file
95
+ celerybeat-schedule
96
+
97
+ # SageMath parsed files
98
+ *.sage.py
99
+
100
+ # Environments
101
+ .env
102
+ .venv
103
+ env/
104
+ venv/
105
+ ENV/
106
+ env.bak/
107
+ venv.bak/
108
+ *.conf
109
+
110
+ # Spyder project settings
111
+ .spyderproject
112
+ .spyproject
113
+
114
+ # Rope project settings
115
+ .ropeproject
116
+
117
+ # mkdocs documentation
118
+ /site
119
+
120
+ # mypy
121
+ .mypy_cache/
122
+
123
+ # Documentation
124
+ docs/build
125
+ docs/source/*.png
126
+
127
+ # Vagrant
128
+ .vagrant/
129
+
130
+ # GC build
131
+ output/
@@ -0,0 +1,5 @@
1
+ # CODEOWNERS file for exordos_core repository
2
+ # Each line is a pattern followed by one or more owners
3
+
4
+ # Default owners for the entire repository
5
+ * @exordos/code_owners
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,92 @@
1
+ Metadata-Version: 2.4
2
+ Name: exordos_notification
3
+ Version: 1.2.3
4
+ Summary: The Platform Notification summary
5
+ Author-email: Genesis Corporation <eugene@frolov.net.ru>
6
+ License: Apache-2.0
7
+ Project-URL: homepage, https://github.com/exordos/exordos_notification/
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: Operating System :: POSIX :: Linux
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: oslo.config<10.0.0,>=3.22.2
22
+ Requires-Dist: restalchemy<17.0.0,>=16.0.1
23
+ Requires-Dist: gcl_iam<2.0.0,>=1.4.0
24
+ Requires-Dist: gcl_looper<2.0.0,>=1.2.3
25
+ Requires-Dist: gcl_sdk<4.0.0,>=3.6.0
26
+ Requires-Dist: bjoern>=3.2.2
27
+ Requires-Dist: Jinja2<4.0.0,>=3.1.5
28
+ Requires-Dist: bazooka<2.0.0,>=1.3.0
29
+ Requires-Dist: zulip<1.0.0,>=0.9.0
30
+ Provides-Extra: dev
31
+ Requires-Dist: tox>=4.56.4; extra == "dev"
32
+ Requires-Dist: tox-uv; extra == "dev"
33
+ Requires-Dist: pytest<10.0.0,>=8.0.0; extra == "dev"
34
+ Provides-Extra: test
35
+ Requires-Dist: coverage>=4.0; extra == "test"
36
+ Requires-Dist: mock<6.0.0,>=3.0.5; extra == "test"
37
+ Requires-Dist: pytest<10.0.0,>=8.0.0; extra == "test"
38
+ Requires-Dist: pytest-timer<2.0.0,>=1.0.0; extra == "test"
39
+ Provides-Extra: mypy
40
+ Requires-Dist: mypy; extra == "mypy"
41
+ Provides-Extra: ruff
42
+ Requires-Dist: ruff; extra == "ruff"
43
+ Provides-Extra: shellcheck
44
+ Requires-Dist: shellcheck-py; extra == "shellcheck"
45
+ Dynamic: license-file
46
+
47
+ # exordos_notification
48
+
49
+ Platform notification service for Exordos. Sends email confirmations and other transactional emails via a dedicated mailaas relay.
50
+
51
+ ## Requirements
52
+
53
+ - `core` ≥ 0.0.0
54
+ - `dbaas` ≥ 2.2.4
55
+ - `mailaas` ≥ 0.0.0
56
+
57
+ ## Installation
58
+
59
+ ### 1. Install the element
60
+
61
+ ```bash
62
+ exordos em elements install exordos_notification
63
+ ```
64
+
65
+ This installs the notification service, its database, mail relay instance, IAM users and permissions. Wait for the element to become `ACTIVE`.
66
+
67
+ ### 2. Configure site-specific settings
68
+
69
+ `exordos_notification` creates a VS variable `notification_noreply_address` with no default value — it is installation-specific (depends on your mail domain). Until it is set, the SMTP provider resource stays `NEW` and no emails are sent.
70
+
71
+ Copy the example manifest and fill in your noreply address:
72
+
73
+ ```bash
74
+ cp exordos/manifests/site_config.yaml.j2.example exordos/manifests/site_config.yaml.j2
75
+ # Edit site_config.yaml.j2 and set the noreply address:
76
+ # value: "noreply@your-mail-domain.example.com"
77
+ exordos em elements install exordos/manifests/site_config.yaml.j2
78
+ ```
79
+
80
+ The `notification_site_config` element must be installed **once per deployment** after `exordos_notification` is active. Reinstalling `exordos_notification` will not overwrite it.
81
+
82
+ ## Architecture
83
+
84
+ ```
85
+ IAM (core) ──event──► exordos_notification ──SMTP──► mailaas exim4 DP
86
+ │
87
+ └── PostgreSQL (dbaas)
88
+ ```
89
+
90
+ - **notification-cp** — the notification control plane VM (runs the notification service)
91
+ - **mailaas relay** — a dedicated `mail.instances` provisioned by metapaas; the notification service authenticates as the `smtp` account
92
+ - **VS variables** — `notification_noreply_address` (set via `site_config`) and `notification_endpoint` (auto-set by the manifest)