Liz Rice
7296805d58
Only create per-namespace objects if we have found namespaces
2019-03-04 13:47:49 +00:00
Liz Rice
93ab052e23
Tidy up a bit more
2019-03-04 13:06:23 +00:00
Liz Rice
e77f5fdcc8
Show in the report whether access was via service token or not
2019-03-04 12:35:57 +00:00
Liz Rice
dd1ed76dc1
Better names, descriptions and tests
...
When you query for resources, you get the ones you’re entitled to see - it’s misleading to suggest you’re getting all of them
2019-03-04 11:43:37 +00:00
Liz Rice
5c22ecdf3c
Remove superfluous tests
...
There is no need to check for pods or roles under a specific namespace (even the default one) because if we’re allowed to see them we’ll have found them through the wider check for viewing all items
2019-03-04 11:27:14 +00:00
Liz Rice
5e69d3b307
Better tests for API discovery
2019-03-04 11:23:00 +00:00
Liz Rice
50078c518e
Slightly better names
2019-02-26 19:56:09 +08:00
Liz Rice
a3bd1b9ef2
Improvements to the API Server hunters
2019-02-26 19:51:50 +08:00
Liz Rice
1581355a93
Read all the service account secrets
2019-02-26 08:38:35 +00:00
Liz Rice
9e0456bb66
Function is no longer getting service account token
2019-02-26 00:50:26 +00:00
Liz Rice
ffc5508819
Use token as previously obtained
2019-02-26 00:50:26 +00:00
Liz Rice
9dcf617c5e
Fix importing
2019-02-26 00:49:41 +00:00
Liz Rice
f8945d8961
Tests in separate directory
2019-02-26 00:42:02 +00:00
Liz Rice
ef7f856cac
Move tests so they don’t get picked up by the regular executable
2019-02-26 00:36:53 +00:00
Liz Rice
f0cd8d38bb
Merge pull request #90 from aquasecurity/detect-api-server
...
Only report API Servers that behave like Kubernetes API Servers
2019-02-25 17:57:18 +00:00
Liz Rice
23fd1830a2
Doesn't hurt to mark this as Master
2019-02-25 17:54:59 +00:00
Liz Rice
fe01598129
Correct secret location
2019-02-22 20:51:04 +00:00
Liz Rice
c1fc84ec5e
Better test that reflects Kubernetes response
2019-02-22 20:43:57 +00:00
Liz Rice
014595e92b
Remove commented out line
2019-02-22 20:43:56 +00:00
Liz Rice
c0b1169918
Only report API Servers that behave like Kubernetes API Servers
...
This should stop my printer and home light server being reported
as Kubernetes API Servers when I scan my home network!
2019-02-22 20:43:53 +00:00
Liz Rice
85cba6f2dc
Merge pull request #94 from aquasecurity/hosts-test
...
Add tests for host discovery
2019-02-22 20:36:42 +00:00
Liz Rice
4323904e7f
Comment typo
2019-02-22 20:31:25 +00:00
Liz Rice
730de60926
Tests not currently working under Python 3
2019-02-22 20:30:39 +00:00
Liz Rice
8c0e2b00a9
Fail build if tests don't succeed
2019-02-22 20:17:31 +00:00
Liz Rice
9bc0f3ec76
Add tests for host discovery
2019-02-22 16:14:02 +00:00
Liz Rice
326d4f45cc
Merge pull request #82 from aquasecurity/pod-remote
...
Should be able to specify remote address inside pod too
2019-02-22 15:51:56 +00:00
Liz Rice
f5440b7733
Merge branch 'master' into pod-remote
2019-02-22 15:43:47 +00:00
Liz Rice
4b1bf1801c
Merge branch 'pod-remote' of github.com:aquasecurity/kube-hunter into pod-remote
2019-02-22 15:40:54 +00:00
Liz Rice
645195e799
Only do pod scan if we didn't specify an address
2019-02-22 15:40:29 +00:00
Liz Rice
8fb028925f
Merge pull request #93 from maniish-jaiin/json-dependency-issue
...
resolved dependency issue of the json.py file, renamed it to json_rep…
2019-02-22 14:49:50 +00:00
Liz Rice
3bd743db4c
Not sure we should add this to .gitignore
2019-02-22 14:48:00 +00:00
manish
607612866f
resolved dependency issue of the json.py file, renamed it to json_reporter
2019-02-22 15:13:58 +01:00
Liz Rice
e6b577ade0
Merge branch 'master' into pod-remote
2019-02-22 11:09:45 +00:00
Liz Rice
66fed51036
Merge pull request #92 from maniish-jaiin/feature-json-reporter
...
created reporter for json format
2019-02-21 16:51:14 +00:00
Liz Rice
dbd1449208
Merge branch 'master' into feature-json-reporter
2019-02-21 11:59:19 +00:00
Liz Rice
5380caca6b
Add json to the format options in help
2019-02-21 11:20:25 +00:00
Liz Rice
f11319766b
Typo
2019-02-21 11:19:19 +00:00
maniish-jaiin
855f67f9a9
Merge branch 'feature-json-reporter' of https://github.com/maniish-jaiin/kube-hunter into feature-json-reporter
2019-02-21 11:18:56 +01:00
maniish-jaiin
9d68679df0
renamed the function name and json_reporter to json
2019-02-21 11:18:30 +01:00
maniish-jaiin
78b7574217
renamed the function name and json_reporter to json
2019-02-21 11:17:06 +01:00
Liz Rice
e2b5f0f5a0
Remove deprecation warning
2019-02-20 17:39:33 +00:00
Liz Rice
1021aca65d
Trigger HostScanEvent to scan remote or CIDR addresses
2019-02-20 17:16:32 +00:00
manish
4f9a362e6a
created reporter for json format
2019-02-20 13:36:24 +01:00
Liz Rice
9ea7ffcbef
Merge pull request #89 from aquasecurity/lizrice-patch-4
...
Requests tests to support code changes
2019-02-20 11:28:32 +00:00
Liz Rice
2f47fc835c
Merge branch 'master' into lizrice-patch-4
2019-02-19 15:33:39 +00:00
Liz Rice
ae45814221
Update README.md
2019-02-19 15:24:47 +00:00
Liz Rice
fb638dcc7e
Merge pull request #88 from aquasecurity/support-tests
...
Support tests
2019-02-19 13:15:15 +00:00
Liz Rice
ba224f150d
Requests tests to support code changes
2019-02-19 13:12:14 +00:00
Liz Rice
3b9fe3b30d
Merge branch 'master' into support-tests
2019-02-19 13:10:40 +00:00
Liz Rice
6dd87e12f8
Add test runner to Travis
2019-02-19 13:01:27 +00:00