|
1 |
| -tests-postgres-hardening |
2 |
| -===================== |
| 1 | +DevSec PostgreSQL Baseline |
| 2 | +========================== |
3 | 3 |
|
4 |
| -This are the integration tests for the projects |
| 4 | +This Compliance Profile ensures, that all hardening projects keep the same quality. |
5 | 5 |
|
6 |
| -- https://github.com/hardening-io/puppet-postgres-hardening |
7 |
| -- https://github.com/hardening-io/chef-postgres-hardening |
8 |
| - |
9 |
| -they start at `integration` level |
10 |
| - |
11 |
| -you can use the gem `kitchen-sharedtests` |
12 |
| - |
13 |
| -- https://github.com/ehaselwanter/kitchen-sharedtests/ |
14 |
| - |
15 |
| -to make them available to your project. Use `thor kitchen:fetch-remote-tests` to put the repo into `test/integration` |
| 6 | +- https://github.com/dev-sec/chef-postgres-hardening |
| 7 | +- https://github.com/dev-sec/puppet-postgres-hardening |
16 | 8 |
|
17 | 9 | ## Standalone Usage
|
18 | 10 |
|
19 |
| -you can target the integration tests to any host were you have ssh access |
20 |
| - |
21 |
| -rake -T gives you a list of suites you can run (well ignore directories which are obviously not suites for now) |
| 11 | +This Compliance Profile requires [InSpec](https://github.com/chef/inspec) for execution: |
22 | 12 |
|
23 | 13 | ```
|
24 |
| -± rake -T |
25 |
| -rake serverspec:default # Run serverspec suite default |
| 14 | +$ git clone https://github.com/dev-sec/postgres-baseline |
| 15 | +$ inspec exec postgres-baseline |
26 | 16 | ```
|
27 | 17 |
|
28 |
| -run it with: |
| 18 | +You can also execute the profile directly from Github: |
29 | 19 |
|
30 | 20 | ```
|
31 |
| -bundle install |
| 21 | +$ inspec exec https://github.com/dev-sec/postgres-baseline |
| 22 | +``` |
32 | 23 |
|
33 |
| -# default user and ssh-key |
| 24 | +## License and Author |
34 | 25 |
|
35 |
| -bundle exec rake serverspec:default target_host=<name-or-ip-of-target-server> |
| 26 | +* Author:: Patrick Muench <patrick.muench1111@gmail.com > |
| 27 | +* Author:: Dominik Richter <dominik.richter@googlemail.com> |
| 28 | +* Author:: Christoph Hartmann <chris@lollyrock.com> |
| 29 | +* Author:: Edmund Haselwanter <me@ehaselwanter.com> |
36 | 30 |
|
37 |
| -# or with user, host, password |
| 31 | +* Copyright 2014-2017, The Hardening Framework Team |
38 | 32 |
|
39 |
| -ASK_LOGIN_PASSWORD=true bundle exec rake serverspec:default target_host=192.168.1.222 user=stack |
40 |
| -``` |
| 33 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 34 | +you may not use this file except in compliance with the License. |
| 35 | +You may obtain a copy of the License at |
41 | 36 |
|
42 |
| -add `format=html|json` to get a report.html or report.json document |
| 37 | + http://www.apache.org/licenses/LICENSE-2.0 |
43 | 38 |
|
| 39 | +Unless required by applicable law or agreed to in writing, software |
| 40 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 41 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 42 | +See the License for the specific language governing permissions and |
| 43 | +limitations under the License. |
0 commit comments