Commit Graph
18 Commits
Author SHA1 Message Date
ad4cfe1c11 update gitignore (#371)
Co-authored-by: danielsagi <danielsagi2009@gmail.com>
2020-10-19 13:03:46 +03:00
Yehuda ChikvashviliandGitHub a0127659b7 Decouple config and argument parsing (#342)
* Make config initialized explicitly
* Add mypy linting
* Make tests run individually
Resolve #341
2020-04-26 19:37:16 +03:00
Yehuda ChikvashviliandGitHub 0f1739262f Linting Standards (#330)
Fix linting issues with flake8 and black.
Add pre-commit congifuration, update documnetation for it.
Apply linting check in Travis CI.
2020-04-05 05:22:24 +03:00
Yehuda ChikvashviliandGitHub 11efbb7514 Fix Dockerfile build (#303)
* Fix Dockerfile build

The Docker build used a 2-step installation of requirements
and application.
This was broken by #272.

Fixes #300

* Add dependencies cache for docker build

Caching installation requirements saves time when building
2020-02-27 14:37:25 +02:00
Yehuda ChikvashviliandGitHub e75c0ff37b Add PyInstaller build (#302)
* Add PyInstaller build

Use PyInstaller to generate single binary.
Use staticx to generate a single static binary.

Resolves #301

* Add test Makefile target

Add test to Makefile.
Add requests_mock to dev dependencies.
2020-02-18 17:31:10 +02:00
df12d75d6d Packaging Kube-Hunter for PyPi (#272)
* Inital Commit

Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipulgupta2048@gmail.com>

* Suggestions implemented as suggested

Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipulgupta2048@gmail.com>

* Package with setuptools

Use setuptools to package kube-hunter as redistributable file.
Once packages, it can be pushed to PyPi.
The package version is taken from git tags (using setuptools_scm).

Closes #185

* Ignore __main__.py script in code coverage

The entrypoint script should not be tested but rather be calling
to tested modules.
Ideally, __main__ should only make a call to single function from
another tested module.

* Update requirements files

Use install_requires from setup.cfg file as single source of truth
for dependencies.
Install regular dependencies when installing dev dependencies.

* Symlink kube-hunter.py to entry point

Support the old way to run kube-hunter via the main script by making
a link to the new kube_hunter/__main__.py script.

Co-authored-by: Yehuda Chikvashvili <yehudaac1@gmail.com>
2020-02-10 21:35:31 +02:00
Oleg ButuzovandLiz Rice fd4d79a853 adding codecoverage (#198) 2019-11-30 08:45:33 +00:00
Itay ShakuryandYehuda Chikvashvili 0157ac83ce add .venv to gitignore (#256) 2019-10-28 23:40:16 +02:00
Sidhya TikkuandYehuda Chikvashvili c27bcb48de Update .gitignore (#221) 2019-10-19 15:00:25 +03:00
godajiandItay Shakury 6ff4627f9b Rename camel var to snake style. (#182) 2019-10-15 08:51:35 +03:00
Yehuda Chikvashvilianddanielsagi 8bb8e1f16c Fix plain report with high log level (#175)
This commit fixes issue #108
Report type plain didn't work with log level higher than INFO.
2019-08-29 14:34:44 +03:00
Cosmin Cojocar 8fa842ae18 Add a dockerfile 2018-08-17 09:58:07 +02:00
daniel_sagi 174d93804c added minimal dashboard hunting 2018-07-19 14:42:50 +03:00
daniel_sagi 725161cab9 Changed readme 2018-06-17 19:16:59 +03:00
daniel_sagi fac667552e added cidr option, also added a while true when running on a pod, to halt for seeing results before restart 2018-06-17 19:01:23 +03:00
daniel_sagi beb50d40bc Added .gitignore file, ignoring .pyc files,
Also changed modules structure
2018-05-13 17:16:51 +03:00
Shir eb6cbc2636 Initial Commit 2018-05-06 19:51:36 +03:00
Yehuda Chikvashvili 1a91ac63da initial commit 2018-03-26 17:25:30 +03:00