awsfindingsmanagerlib 0.0.0__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 (56) hide show
  1. awsfindingsmanagerlib-0.0.0/.VERSION +1 -0
  2. awsfindingsmanagerlib-0.0.0/AUTHORS.rst +14 -0
  3. awsfindingsmanagerlib-0.0.0/CONTRIBUTING.rst +45 -0
  4. awsfindingsmanagerlib-0.0.0/HISTORY.rst +4 -0
  5. awsfindingsmanagerlib-0.0.0/LICENSE +200 -0
  6. awsfindingsmanagerlib-0.0.0/MANIFEST.in +18 -0
  7. awsfindingsmanagerlib-0.0.0/PKG-INFO +104 -0
  8. awsfindingsmanagerlib-0.0.0/Pipfile +30 -0
  9. awsfindingsmanagerlib-0.0.0/Pipfile.lock +1389 -0
  10. awsfindingsmanagerlib-0.0.0/README.rst +75 -0
  11. awsfindingsmanagerlib-0.0.0/USAGE.rst +42 -0
  12. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/.VERSION +1 -0
  13. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/AUTHORS.rst +14 -0
  14. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/CONTRIBUTING.rst +45 -0
  15. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/HISTORY.rst +4 -0
  16. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/LICENSE +200 -0
  17. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/Pipfile +30 -0
  18. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/Pipfile.lock +1389 -0
  19. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/README.rst +75 -0
  20. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/USAGE.rst +42 -0
  21. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/__init__.py +48 -0
  22. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/__pycache__/__init__.cpython-38.pyc +0 -0
  23. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/__pycache__/_version.cpython-38.pyc +0 -0
  24. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/__pycache__/awsfindingsmanagerlib.cpython-38.pyc +0 -0
  25. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/__pycache__/awsfindingsmanagerlibexceptions.cpython-38.pyc +0 -0
  26. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/__pycache__/backends.cpython-38.pyc +0 -0
  27. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/__pycache__/configuration.cpython-38.pyc +0 -0
  28. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/__pycache__/validations.cpython-38.pyc +0 -0
  29. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/_version.py +63 -0
  30. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/awsfindingsmanagerlib.py +1025 -0
  31. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/awsfindingsmanagerlibexceptions.py +91 -0
  32. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/backends.py +133 -0
  33. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/configuration.py +83 -0
  34. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/dev-requirements.txt +25 -0
  35. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/requirements.txt +15 -0
  36. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib/validations.py +243 -0
  37. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib.egg-info/PKG-INFO +104 -0
  38. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib.egg-info/SOURCES.txt +55 -0
  39. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib.egg-info/dependency_links.txt +1 -0
  40. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib.egg-info/not-zip-safe +1 -0
  41. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib.egg-info/requires.txt +14 -0
  42. awsfindingsmanagerlib-0.0.0/awsfindingsmanagerlib.egg-info/top_level.txt +1 -0
  43. awsfindingsmanagerlib-0.0.0/dev-requirements.txt +25 -0
  44. awsfindingsmanagerlib-0.0.0/docs/Makefile +177 -0
  45. awsfindingsmanagerlib-0.0.0/docs/authors.rst +1 -0
  46. awsfindingsmanagerlib-0.0.0/docs/conf.py +290 -0
  47. awsfindingsmanagerlib-0.0.0/docs/contributing.rst +1 -0
  48. awsfindingsmanagerlib-0.0.0/docs/history.rst +1 -0
  49. awsfindingsmanagerlib-0.0.0/docs/index.rst +28 -0
  50. awsfindingsmanagerlib-0.0.0/docs/installation.rst +1 -0
  51. awsfindingsmanagerlib-0.0.0/docs/readme.rst +1 -0
  52. awsfindingsmanagerlib-0.0.0/docs/usage.rst +1 -0
  53. awsfindingsmanagerlib-0.0.0/requirements.txt +15 -0
  54. awsfindingsmanagerlib-0.0.0/setup.cfg +13 -0
  55. awsfindingsmanagerlib-0.0.0/setup.py +53 -0
  56. awsfindingsmanagerlib-0.0.0/tests/test_awsfindingsmanagerlib.py +59 -0
@@ -0,0 +1 @@
1
+ 0.0.0
@@ -0,0 +1,14 @@
1
+ =======
2
+ Credits
3
+ =======
4
+
5
+ Development Lead
6
+ ----------------
7
+
8
+ * Tyfoxylos Costas <ctyfoxylos@schubergphilis.com>
9
+
10
+
11
+ Contributors
12
+ ------------
13
+
14
+ * Marwin Baumann <mbaumann@schubergphilis.com>
@@ -0,0 +1,45 @@
1
+ ============
2
+ Contributing
3
+ ============
4
+
5
+ Contributions are welcome, and they are greatly appreciated! Every
6
+ little bit helps, and credit will always be given.
7
+
8
+ Submit Feedback
9
+ ~~~~~~~~~~~~~~~
10
+
11
+ If you are proposing a feature:
12
+
13
+ * Explain in detail how it would work.
14
+ * Keep the scope as narrow as possible, to make it easier to implement.
15
+
16
+ Get Started!
17
+ ------------
18
+
19
+ Ready to contribute? Here's how to set up `awsfindingsmanagerlib` for local development.
20
+ Using of pipenv is highly recommended.
21
+
22
+ 1. Clone your fork locally::
23
+
24
+ $ git clone git@github.com:schubergphilis/awsfindingsmanagerlib.git
25
+
26
+ 2. Install your local copy into a virtualenv. Assuming you have pipenv installed, this is how you set up your clone for local development::
27
+
28
+ $ cd awsfindingsmanagerlib/
29
+ $ pipenv install --ignore-pipfile
30
+
31
+ 3. Create a branch for local development::
32
+
33
+ $ git checkout -b name-of-your-bugfix-or-feature
34
+
35
+ Now you can make your changes locally.
36
+ Do your development while using the CI capabilities and making sure the code passes lint, test, build and document stages.
37
+
38
+
39
+ 4. Commit your changes and push your branch to the server::
40
+
41
+ $ git add .
42
+ $ git commit -m "Your detailed description of your changes."
43
+ $ git push origin name-of-your-bugfix-or-feature
44
+
45
+ 5. Submit a merge request
@@ -0,0 +1,4 @@
1
+ .. :changelog:
2
+
3
+ History
4
+ -------
@@ -0,0 +1,200 @@
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, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions
23
+ granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form,
34
+ made available under the License, as indicated by a copyright notice that is
35
+ included in or attached to the work (an example is provided in the Appendix
36
+ below).
37
+
38
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
39
+ is based on (or derived from) the Work and for which the editorial revisions,
40
+ annotations, elaborations, or other modifications represent, as a whole, an
41
+ original work of authorship. For the purposes of this License, Derivative Works
42
+ shall not include works that remain separable from, or merely link (or bind by
43
+ name) to the interfaces of, the Work and Derivative Works thereof.
44
+
45
+ "Contribution" shall mean any work of authorship, including the original version
46
+ of the Work and any modifications or additions to that Work or Derivative Works
47
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work
48
+ by the copyright owner or by an individual or Legal Entity authorized to submit
49
+ on behalf of the copyright owner. For the purposes of this definition,
50
+ "submitted" means any form of electronic, verbal, or written communication
51
+ sent to the Licensor or its representatives, including but not limited to
52
+ communication on electronic mailing lists, source code control systems, and
53
+ issue tracking systems that are managed by, or on behalf of, the Licensor for
54
+ the purpose of discussing and improving the Work, but excluding communication
55
+ that is conspicuously marked or otherwise designated in writing by the
56
+ copyright owner as "Not a Contribution."
57
+
58
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
59
+ of whom a Contribution has been received by Licensor and subsequently
60
+ incorporated within the Work.
61
+
62
+ 2. Grant of Copyright License.
63
+
64
+ Subject to the terms and conditions of this License, each Contributor hereby
65
+ grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
66
+ irrevocable copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the Work and
68
+ such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License.
71
+
72
+ Subject to the terms and conditions of this License, each Contributor hereby
73
+ grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
74
+ irrevocable (except as stated in this section) patent license to make, have
75
+ made, use, offer to sell, sell, import, and otherwise transfer the Work, where
76
+ such license applies only to those patent claims licensable by such Contributor
77
+ that are necessarily infringed by their Contribution(s) alone or by combination
78
+ of their Contribution(s) with the Work to which such Contribution(s) was
79
+ submitted. If You institute patent litigation against any entity (including a
80
+ cross-claim or counterclaim in a lawsuit) alleging that the Work or a
81
+ Contribution incorporated within the Work constitutes direct or contributory
82
+ patent infringement, then any patent licenses granted to You under this License
83
+ for that Work shall terminate as of the date such litigation is filed.
84
+
85
+ 4. Redistribution.
86
+
87
+ You may reproduce and distribute copies of the Work or Derivative Works thereof
88
+ in any medium, with or without modifications, and in Source or Object form,
89
+ provided that You meet the following conditions:
90
+
91
+ You must give any other recipients of the Work or Derivative Works a copy of
92
+ this License; and
93
+
94
+ You must cause any modified files to carry prominent notices stating that
95
+ You changed the files; and
96
+
97
+ You must retain, in the Source form of any Derivative Works that You
98
+ distribute, all copyright, patent, trademark, and attribution notices from
99
+ the Source form of the Work, excluding those notices that do not pertain
100
+ to any part of the Derivative Works; and
101
+
102
+ If the Work includes a "NOTICE" text file as part of its distribution, then
103
+ any Derivative Works that You distribute must include a readable copy of
104
+ the attribution notices contained within such NOTICE file, excluding those
105
+ notices that do not pertain to any part of the Derivative Works, in at
106
+ least one of the following places: within a NOTICE text file distributed
107
+ as part of the Derivative Works; within the Source form or documentation,
108
+ if provided along with the Derivative Works; or, within a display generated
109
+ by the Derivative Works, if and wherever such third-party notices normally
110
+ appear. The contents of the NOTICE file are for informational purposes
111
+ only and do not modify the License. You may add Your own attribution
112
+ notices within Derivative Works that You distribute, alongside or as an
113
+ addendum to the NOTICE text from the Work, provided that such additional
114
+ attribution notices cannot be construed as modifying the License.
115
+
116
+ You may add Your own copyright statement to Your modifications and may provide
117
+ additional or different license terms and conditions for use, reproduction, or
118
+ distribution of Your modifications, or for any such Derivative Works as a whole,
119
+ provided Your use, reproduction, and distribution of the Work otherwise complies
120
+ with the conditions stated in this License.
121
+
122
+ 5. Submission of Contributions.
123
+
124
+ Unless You explicitly state otherwise, any Contribution intentionally submitted
125
+ for inclusion in the Work by You to the Licensor shall be under the terms and
126
+ conditions of this License, without any additional terms or conditions.
127
+ Notwithstanding the above, nothing herein shall supersede or modify the terms
128
+ of any separate license agreement you may have executed with Licensor regarding
129
+ such Contributions.
130
+
131
+ 6. Trademarks.
132
+
133
+ This License does not grant permission to use the trade names, trademarks,
134
+ service marks, or product names of the Licensor, except as required for
135
+ reasonable and customary use in describing the origin of the Work and
136
+ reproducing the content of the NOTICE file.
137
+
138
+ 7. Disclaimer of Warranty.
139
+
140
+ Unless required by applicable law or agreed to in writing, Licensor provides
141
+ the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
142
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
143
+ including, without limitation, any warranties or conditions of TITLE,
144
+ NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
145
+ You are solely responsible for determining the appropriateness of using or
146
+ redistributing the Work and assume any risks associated with Your exercise of
147
+ permissions under this License.
148
+
149
+ 8. Limitation of Liability.
150
+
151
+ In no event and under no legal theory, whether in tort (including negligence),
152
+ contract, or otherwise, unless required by applicable law (such as deliberate
153
+ and grossly negligent acts) or agreed to in writing, shall any Contributor be
154
+ liable to You for damages, including any direct, indirect, special, incidental,
155
+ or consequential damages of any character arising as a result of this License
156
+ or out of the use or inability to use the Work (including but not limited to
157
+ damages for loss of goodwill, work stoppage, computer failure or malfunction,
158
+ or any and all other commercial damages or losses), even if such Contributor
159
+ has been advised of the possibility of such damages.
160
+
161
+ 9. Accepting Warranty or Additional Liability.
162
+
163
+ While redistributing the Work or Derivative Works thereof, You may choose to
164
+ offer, and charge a fee for, acceptance of support, warranty, indemnity, or
165
+ other liability obligations and/or rights consistent with this License.
166
+ However, in accepting such obligations, You may act only on Your own behalf
167
+ and on Your sole responsibility, not on behalf of any other Contributor, and
168
+ only if You agree to indemnify, defend, and hold each Contributor harmless for
169
+ any liability incurred by, or claims asserted against, such Contributor by
170
+ reason of your accepting any such warranty or additional liability.
171
+
172
+ END OF TERMS AND CONDITIONS
173
+
174
+ APPENDIX: How to apply the Apache License to your work
175
+
176
+ To apply the Apache License to your work, attach the following boilerplate
177
+ notice, with the fields enclosed by brackets "[]" replaced with your own
178
+ identifying information. (Don't include the brackets!) The text should be
179
+ enclosed in the appropriate comment syntax for the file format. We also
180
+ recommend that a file or class name and description of purpose be included
181
+ on the same "printed page" as the copyright notice for easier identification
182
+ within third-party archives.
183
+
184
+ Copyright [yyyy] [name of copyright owner]
185
+
186
+ Licensed under the Apache License, Version 2.0 (the "License");
187
+ you may not use this file except in compliance with the License.
188
+ You may obtain a copy of the License at
189
+
190
+ http://www.apache.org/licenses/LICENSE-2.0
191
+
192
+ Unless required by applicable law or agreed to in writing, software
193
+ distributed under the License is distributed on an "AS IS" BASIS,
194
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
195
+ See the License for the specific language governing permissions and
196
+ limitations under the License.
197
+
198
+
199
+
200
+
@@ -0,0 +1,18 @@
1
+ include .VERSION
2
+ include AUTHORS.rst
3
+ include CONTRIBUTING.rst
4
+ include HISTORY.rst
5
+ include LICENSE
6
+ include README.rst
7
+ include USAGE.rst
8
+ include Pipfile
9
+ include Pipfile.lock
10
+ include requirements.txt
11
+ include dev-requirements.txt
12
+ include awsfindingsmanagerlib/.VERSION
13
+
14
+ recursive-exclude * __pycache__
15
+ recursive-exclude * *.py[co]
16
+
17
+ recursive-include docs *.rst conf.py Makefile
18
+ recursive-include awsfindingsmanagerlib *
@@ -0,0 +1,104 @@
1
+ Metadata-Version: 2.1
2
+ Name: awsfindingsmanagerlib
3
+ Version: 0.0.0
4
+ Summary: A library to manage findings in AWS.
5
+ Home-page: https://github.com/schubergphilis/awsfindingsmanagerlib.git
6
+ Author: Marwin Baumann
7
+ Author-email: mbaumann@schubergphilis.com
8
+ License: Apache Software License 2.0
9
+ Keywords: awsfindingsmanagerlib securityhub findings aws
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Natural Language :: English
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ License-File: LICENSE
16
+ License-File: AUTHORS.rst
17
+ Requires-Dist: boto3>=1.34.92; python_version >= "3.8"
18
+ Requires-Dist: opnieuw>=1.2.1; python_version >= "3.7"
19
+ Requires-Dist: python-dateutil>=2.9.0.post0; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3"
20
+ Requires-Dist: schema~=0.7.5
21
+ Requires-Dist: requests~=2.31.0; python_version >= "3.7"
22
+ Requires-Dist: pyyaml~=6.0.1; python_version >= "3.6"
23
+
24
+ =====================
25
+ awsfindingsmanagerlib
26
+ =====================
27
+
28
+ A library to manage findings in AWS.
29
+
30
+
31
+ * Documentation: https://awsfindingsmanagerlib.readthedocs.org/en/latest
32
+
33
+
34
+ Development Workflow
35
+ ====================
36
+
37
+ The workflow supports the following steps
38
+
39
+ * lint
40
+ * test
41
+ * build
42
+ * document
43
+ * upload
44
+ * graph
45
+
46
+ These actions are supported out of the box by the corresponding scripts under _CI/scripts directory with sane defaults based on best practices.
47
+ Sourcing setup_aliases.ps1 for windows powershell or setup_aliases.sh in bash on Mac or Linux will provide with handy aliases for the shell of all those commands prepended with an underscore.
48
+
49
+ The bootstrap script creates a .venv directory inside the project directory hosting the virtual environment. It uses pipenv for that.
50
+ It is called by all other scripts before they do anything. So one could simple start by calling _lint and that would set up everything before it tried to actually lint the project
51
+
52
+ Once the code is ready to be delivered the _tag script should be called accepting one of three arguments, patch, minor, major following the semantic versioning scheme.
53
+ So for the initial delivery one would call
54
+
55
+ $ _tag --minor
56
+
57
+ which would bump the version of the project to 0.1.0 tag it in git and do a push and also ask for the change and automagically update HISTORY.rst with the version and the change provided.
58
+
59
+
60
+ So the full workflow after git is initialized is:
61
+
62
+ * repeat as necessary (of course it could be test - code - lint :) )
63
+
64
+ * code
65
+ * lint
66
+ * test
67
+ * commit and push
68
+ * develop more through the code-lint-test cycle
69
+ * tag (with the appropriate argument)
70
+ * build
71
+ * upload (if you want to host your package in pypi)
72
+ * document (of course this could be run at any point)
73
+
74
+
75
+ Important Information
76
+ =====================
77
+
78
+ This template is based on pipenv. In order to be compatible with requirements.txt so the actual created package can be used by any part of the existing python ecosystem some hacks were needed.
79
+ So when building a package out of this **do not** simple call
80
+
81
+ $ python setup.py sdist
82
+
83
+ **as this will produce an unusable artifact with files missing.**
84
+ Instead use the provided build and upload scripts that create all the necessary files in the artifact.
85
+
86
+
87
+
88
+ Project Features
89
+ ================
90
+
91
+ * TODO
92
+
93
+
94
+
95
+ License info
96
+ ============
97
+
98
+ While the project is released under the Apache 2 license, scripts under _CI/scripts are released under an MIT license as stated on their header.
99
+
100
+
101
+
102
+
103
+ History
104
+ -------
@@ -0,0 +1,30 @@
1
+ [[source]]
2
+ url = "https://pypi.python.org/simple"
3
+ verify_ssl = true
4
+ name = "pypi"
5
+
6
+ [dev-packages]
7
+ sphinx = ">=7.0,<8.0"
8
+ sphinx-rtd-theme = ">=1.0,<2.0"
9
+ prospector = ">=1.8,<2.0"
10
+ coverage = ">=7,<8.0"
11
+ nose = ">=1.3,<2.0"
12
+ nose-htmloutput = ">=0.1,<1.0"
13
+ tox = ">=4.0<5.0"
14
+ betamax = ">=0.8,<1.0"
15
+ betamax-serializers = "~=0.2,<1.0"
16
+ semver = ">=3.0,<4.0"
17
+ gitwrapperlib = ">=1.0,<2.0"
18
+ twine = ">=4.0,<5.0"
19
+ coloredlogs = ">=15.0,<16.0"
20
+ emoji = ">=2.0,<3.0"
21
+ toml = ">=0.1,<1.0"
22
+ typing-extensions = ">=4.0,<5.0"
23
+
24
+ [packages]
25
+ boto3 = ">=1.19.8,<2.0"
26
+ opnieuw = ">=1.1.0,<2.0"
27
+ python-dateutil = ">=2.8.2,<3.0"
28
+ schema = "*"
29
+ requests = "*"
30
+ pyyaml = "*"