Commit Graph

18 Commits

Author SHA1 Message Date
lhinds 2d2170273b Project Migration to PyCQA
This change rehomes the project to PyCQA[1] as reported to the
openstack-dev mailing list [1]

[0] https://github.com/PyCQA/bandit
[1] http://lists.openstack.org/pipermail/openstack-dev/2018-April/129386.html

Change-Id: I6aad329a60799ea24a3d9bc49e35c3c35ed9dc3b
2018-05-04 06:59:50 +02:00
Gage Hugo ce108f0eda Migrate to stestr
This change migrates the testing suite from using ostestr and testr
to using stester. Also cleaned up a missing space from tox.ini.

Change-Id: I886401a1efce6cb617a4db7a90ec9454bbea1d71
2017-11-16 20:53:48 +00:00
lhinds 3ec24ffbb0 Add .idea to .gitignore
Saves .idea/* files from pycharm showing up in git status calls.

Change-Id: I5c21e0ee972af8192b9ff6cd2e3045ee591bd5a6
2017-08-31 13:28:55 +01:00
Eric Brown b630d972ed Add reno for release notes management
An initial patch to add reno and create a base directory for
release notes.

Change-Id: Ia0cbfd77c7043db71cb92e9dc2a4f534c57ccf88
2016-06-30 10:20:55 -07:00
Eric Brown ae8d599f60 Ignore all .coverage files and extensions
When running tox on my Mac, I get many .coverage.* files. Adding
* to the gitignore such as:

.coverage.browne-mbp15.hsd1.ca.comcast.net.46598.238844

Change-Id: Ia3f5dc36f38a3c224a7976874046163be5e78f17
2016-02-21 22:12:50 -08:00
Eric Brown 222c0809b3 Use sphinx autodoc to generate docs from docstring
Rather than having separate rst documentation files, this patch auto
generates the docs from the docstrings in the modules. Should
make it easier to maintain.

Also renamed directory docs to doc to be consistent with all other
OpenStack projects.

Change-Id: Iaed77f8358ccb6edaf2627fbabdcc855272b4ea2
2015-12-15 16:57:57 -08:00
Eric Brown c9fd531382 Update .gitignore to exclude docs output
The running of `tox -e docs` generates some unwanted changes to be
staged.

The AUTHORS file was deleted since its written output from running
docs generation, so it should be ignored and not in the repo.

Change-Id: I58238fcf1834bf2b82481f42ce0540dcd09b1448
2015-09-07 07:30:18 -07:00
Stanisław Pitucha 4d2a12cf88 Ignore vim swap files
Be nice to VIM users - ignore the common swap file extensions.

Change-Id: Icc9e5587df39e84e6fcc74490d3e71db41fd351e
2015-09-07 12:38:03 +10:00
Brant Knudson 49d98a3112 Generate module docs
The module docs will now be generated.

Change-Id: Ifdaf1058ff90a23be509bc0518c6e4142eda64b6
2015-09-03 14:50:58 -05:00
Brant Knudson cf7e42eefb Update .gitignore for docs
ChangeLog is generated when running tox -e docs.

Change-Id: Ib073591ed2ea9198bc2412cf530613f4015ec48c
2015-09-02 19:11:04 -05:00
Brant Knudson 5b974da7f1 Update gitignore for coverage
When running `tox -e cover`, a .coverage file is created. This
file should be ignored so it's not checked in.

Change-Id: I5d4041191ba0882233f91c820c65da1460397087
2015-09-01 17:13:53 +00:00
Tim Kelsey 42f3e2961a Adding documentation framework
This adds documentation framework for Bandit. To build the new
documentation you can use the new tox target:

  tox -e docs

This will spit out various formatted output into the docs/build
folder.

Change-Id: I3497e26052021900ad55ecdd2517198b22e82f0e
Partial-Bug: 1474796
2015-07-24 13:20:16 +01:00
Rob Fletcher 27eea75f3c Add mako templating plugin and XSS profile
Adds plugin to warn on Mako templates. Since mako does not have template wide
autoescaping (that we can verify is turned on), a developer is responsible to
escape each variable individually in the templates. This is higher than info
because the *only* way to escape is via the variables, but not set to ERROR
because we can't know for sure if any of those variables are used and/or
malicious.

Also add an XSS profile.

Change-Id: I65515f9584d67d8b7b58b71b6ddb447c307675d1
2015-03-05 08:44:09 -08:00
Rob Fletcher 0123f82d5c Adds JSON output functionality
Adds --format to support JSON format output

Change-Id: Ib35e9788e9076d3dd6158a8dfbd87a50c981ba56
2015-02-20 10:27:26 -08:00
Tim Kelsey d764198ae1 Enabling PEP8 tests in tox and re-working source to comply
Change-Id: Ia75aea24419fdef92aa81b213bd5178b2718f716
2014-10-23 14:34:05 +01:00
Tim Kelsey 8e6697b063 Making Bandit into an installable package and adding tox tests
This large change makes bandit into an installable packahge, needed
for tox testing. I have added the tox testing scaffolding but no
real tests, they will come in a later change. I have also disabled
all failing PEP8 test (lots) since I have changed enough stuff for
one patch. I'll start re-enabling and fixing PEP8 stuff soon.

Change-Id: I774ed9149f285e4e2bceacda0484a7e2a934a3aa
2014-10-22 10:15:28 +01:00
Tim Kelsey c819a3f32d Adding SSL/TLS protocol version checks
Bandit can now check for insecure SSL/TLS versions, bad versions
are defined in the config file. By default:
 - SSLv2 is bad
 - SSLv23 is bad
 - SSLv3 is bad
 - TLSv1 is bad

This check works with ssl and pyOpenSSL modules.
A second check will also catch default use of ssl.wrap_socket as
this will use SSLv23 if no option is given. This is an INFO level
check.

Change-Id: I5ff8ea7038eed41b09e4d0ebfcb59bfd7fd4c894
2014-09-23 15:47:56 +01:00
Jamie Finnigan 60339cad50 initial commit 2014-07-16 10:27:50 -07:00