Commit Graph

750 Commits

Author SHA1 Message Date
Ghanshyam Mann 3ee3d309f1 Cleanup the retired repo
This repo is not properly retired. Retired repos can only have two files:
- README.rst
- gitreview

To cleanup the retirement of this repo, keeping these two files only and
removing the other remaining files if there is any.
Detail: https://etherpad.opendev.org/p/tc-retirement-cleanup

Change-Id: I69cb089425ad889f4cd0aad17c10de6bd19eb1b0
2020-08-05 19:59:56 -05:00
OpenDev Sysadmins 902be1b6ea OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:40:05 +00:00
Andy McCrae d7f838df9c Revert "Revert "Retire openstack-ansible-security""
Now that stable/pike has been released we can re-retire the
openstack-ansible-security role.
NB the .gitreview file has remained in place, so that future stable
releases will be successful.

This reverts commit fe39a30c98.

Change-Id: I1137ca951de2fba3b692c2c77b2030d9b0bd10eb
2017-09-14 11:48:21 -06:00
Andy McCrae fe39a30c98 Revert "Retire openstack-ansible-security"
This reverts commit ea9b39d723.
In order to release stable/pike we need this to still be present.
https://review.openstack.org/#/c/502063/ is failing.

Once we release stable/pike we can figure out how to properly remove
this repository.

Change-Id: I50308b1c3001371d4554b6c2640bd5384e870a53
2017-09-13 10:34:55 -06:00
Major Hayden ea9b39d723
Retire openstack-ansible-security
This patch fully retires the openstack-ansible-security role and
repository. Consumers are encouraged to use the ansible-hardening
project:

  https://docs.openstack.org/ansible-hardening/

Depends-On: I033eea2d5ad23156e46ddbc1c10486d2a90d503b
Closes-Bug: 1716504
Change-Id: I219d0d9d7a3463fb63ee3eef28bfb9e753c37b91
2017-09-11 16:20:40 -06:00
Major Hayden 89cdd42840
[Docs] Adjust deprecation warning
Change-Id: Ibcf5d348d51a72a4e9e8fa9997954347bcde3c5b
2017-07-05 08:03:42 -05:00
OpenStack Proposal Bot 7269c4d927 Updated from global requirements
Change-Id: I120c153ba21d4e4cb56feef98487a6be3ee71092
2017-06-27 12:19:10 +00:00
Major Hayden b97de6d748 Add retirement warnings to security role
This patch adds deprecation/retirement warnings to the documentation,
README files, and the role itself.

Change-Id: I419ee0d3bcd3a772f6864acd3d07b062bf6cd7c5
2017-06-19 16:01:43 +00:00
Major Hayden 7d35de0236
Remove 'physical_host' from test inventory
Change-Id: Ida1a7116497cfc4a90fada8580d94a73bf6e53d8
2017-06-19 11:01:08 -05:00
OpenStack Proposal Bot 1894bbd78b Updated from global requirements
Change-Id: Idbcad8e0b528edc5aee2acf2e51384f09ee69a5e
2017-06-12 13:00:29 +00:00
OpenStack Proposal Bot e838001477 Updated from global requirements
Change-Id: Ib0d92ad7a0d18f7dc863f7e3bfd5f928be2da9d6
2017-06-10 21:45:51 +00:00
Jesse Pretorius 5842262d5f Ensure that role tests pin pip/setuptools/wheel
Currently the role tests use whatever versions of pip,
setuptools and wheel are already installed on the host.

When a version of these tools changes it often causes
problems for our testing.

This will ensure that we use a known good set of pins
which is maintained in the general SHA bumping process.

Change-Id: Ibd12a320b90f687e1d5bb90fbb6dba40b7ff78a8
2017-06-04 11:24:42 +01:00
OpenStack Proposal Bot 69a91fd862 Updated from global requirements
Change-Id: I0850471f7879fd00764380255964ab94b0b1b467
2017-06-02 22:04:17 +00:00
Major Hayden 1f89531fb8
Fix AppArmor dmesg grep task
The task that checks for AppArmor being disabled at boot time
fails if the line isn't present in dmesg. This patch ensures that
the output from dmesg is always maintained and the shell always
comes back with success.

Closes-Bug: 1694508
Change-Id: Ied083e02855b2173d766c7cfd33045e737a79a43
2017-05-30 13:24:48 -05:00
Jenkins 7eeddf0d11 Merge "[Docs] Fix incorrect tag for V-71895" 2017-05-26 10:13:10 +00:00
Jenkins 4a344411fa Merge "[Docs] Fix incorrect tag for V-71899" 2017-05-26 10:13:05 +00:00
Jenkins 77507a1771 Merge "[Docs] Fix incorrect tag for V-72267" 2017-05-26 10:11:48 +00:00
Major Hayden 8a9d1c2c1e
[Docs] Fix incorrect tag for V-71895
The tag should be 'graphical', not 'file_perms'.

Change-Id: Ic0d2bd05108f998ce209fab5b013699ea06bdef7
2017-05-24 22:50:12 -05:00
Major Hayden 2ac19fb97e
[Docs] Fix incorrect tag for V-71899
The tag should be 'graphical', not 'file_perms'.

Change-Id: I0e0e30ad55555978deae135b8774c8ff21ae39a5
2017-05-24 22:48:50 -05:00
Major Hayden 3f3afe79c1
[Docs] Fix incorrect tag for V-72267
The tag for V-72267 was set to 'implemented' in an interesting
copy/paste failure. It should be 'sshd'.

Change-Id: I0467e8b2d2cfa4a73ff93690ea30e944b39b419d
2017-05-24 22:47:32 -05:00
Major Hayden 40c744c86d Add more test coverage
This commit cleans up the testing variables and enables more tasks in
the CI jobs.

Change-Id: Ia937928e46b8ffefc54b499b8d8383ad4d81d907
2017-05-24 19:51:20 +00:00
Major Hayden d7600f1a12
Fix bare jinja variable pam_password_file
The pam_password_variable didn't have jinja tags around it and it
wasn't being handled correctly. This patch fixes the bug and makes
the task name easier to read.

Closes-Bug: 1693343
Change-Id: Ie469c32a71c3c0e1b381739290ffb608bb04a21c
2017-05-24 14:50:20 -05:00
Jenkins e416859438 Merge "Initial Debian 8 support" 2017-05-23 15:32:05 +00:00
Major Hayden 4e9a8a1d6a Initial Debian 8 support
This patch sets up the security role so that it applies cleanly
to systems running Debian 8.

Change-Id: I15f003b8f57922b354143a86ccb34df77759e723
2017-05-23 07:31:18 -05:00
Major Hayden 6e761efc9c
Move tasks to 'accounts' file
Several tasks in the auth.yml file were actually more closely related
to accounts rather than authentication. This patch moves tasks from
the auth.yml into accounts.yml and adjusts the docs to match.

This should alleviate confusion and allow deployers to fine-tune
their Ansible playbook runs.

Change-Id: I962014ba9022dd256dc04da6b4ac0860797fbc24
2017-05-20 13:37:16 -05:00
Major Hayden ed8364ec4b
[Docs] Put FAQ after getting started docs
It makes more sense to have the "getting started" docs above the
FAQ. Readers probably want to know about getting started first. ;)

Change-Id: Idc77b2ee667fe9d2de4ab217e25ad57b25ebd533
2017-05-20 12:36:53 -05:00
Major Hayden b83eb43427
[Docs] Fix missing hyphen in status
One of the STIG notes was missing a hyphen in "opt-in" and it
caused a new implementation status category to appear.

Change-Id: I9ec8d4817597f54f2ca8e71af81dfdb87f60afdb
2017-05-20 12:32:54 -05:00
Major Hayden 5eb302c24a
Fix numbering in AIDE config block
The STIG numbering in the AIDE config block wasn't updated with the
big STIG renumbering effort. This patch fixes the numbers.

Change-Id: Id0393ce739f1b956931f239a65d548586a0994e0
2017-05-18 08:29:36 -05:00
Jenkins 99038d298e Merge "Check for grub2 defaults file" 2017-05-18 08:40:00 +00:00
Jenkins 27a3108770 Merge "Configure AIDE before initial run" 2017-05-18 08:04:26 +00:00
Jenkins eb343c06d9 Merge "Use zuul-cloner for tests repo in OpenStack-CI" 2017-05-18 04:17:26 +00:00
Jenkins 43d8ef3a42 Merge "Enable auto-upgrade in the gate" 2017-05-18 03:56:45 +00:00
OpenStack Proposal Bot 6ca676baf6 Updated from global requirements
Change-Id: I8da80926c17aa468a4309edf9705bf7e6baabc33
2017-05-17 03:55:45 +00:00
Major Hayden 1525402856
Enable auto-upgrade in the gate
Change-Id: Ibc153138a7cc04b67f6e77978417d9e8e9b88a64
2017-05-16 15:10:35 -05:00
Major Hayden 45fd0a2a08 Check for grub2 defaults file
This patch adds a check for the grub2 defaults file. On some systems,
especially ARM, grub is not present.

Closes-Bug: 1691210
Change-Id: I310565e6d72a89d0e3be85598ad1e0e114af16fc
2017-05-16 17:53:38 +00:00
Jesse Pretorius 38255a83c2 Use zuul-cloner for tests repo in OpenStack-CI
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.

Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
Depends-On: I5da7802d61d2ab6b03908138e3a3ed2db22e3d29
Change-Id: I4da173e3c41e70ff48b3c88c430a6a65eded295a
2017-05-16 15:37:26 +00:00
Major Hayden 1819c4241a Configure AIDE before initial run
This patch ensures that AIDE is fully configured before the first
database initialization process begins.

Closes-Bug: 1686110
Change-Id: I209b88afb305828fa6e46de255ef11f5a6645427
2017-05-16 15:33:00 +00:00
Major Hayden 6a4f806bf5 Remove test_plugins directory
Now that the `greaterthan` test exists in upstream Jinja, we can
remove this plugin from the role.

Change-Id: I8a0624fee701892e069a741c3c486c795e0f3a7c
2017-05-16 15:26:05 +00:00
Major Hayden 5ef94bf0ca
Fix security role gate
This commit removes the verbose options from the gate job and disables
clamav installation in the CI jobs. The clamav package is only available
in the EPEL repository, but the EPEL repo has been removed from
the CentOS images in the OpenStack gate. This will need to be handled
carefully in a later patch.

It also removes an apostrophe from `tasks/main.yml` that breaks syntax
highlighting in vim.

Change-Id: Ifbfc56ed5fe92887cf5beb6b2703fdc3e1c8bb05
2017-05-16 10:24:25 -05:00
Major Hayden d4daf7edfb
Update docs for Pike
This commit updates the documentation index for Pike. This should
have been done long ago.

Change-Id: I8f9e72b22e048708ae15871891022458e155540d
2017-05-11 07:32:17 -04:00
Major Hayden a54773938a
Cleanup tox.ini
This patch removes the `func_rhel7` environment and brings over the
verbose options from the tests role.

Change-Id: I44c2e089ff6175b3004ef7f6713622ac615bf6db
2017-04-28 13:30:40 -05:00
Jenkins 6d0f8f6e95 Merge "Maintain default ansible parameters" 2017-04-28 08:31:47 +00:00
Major Hayden d8336717aa Fix warnings about jinja2 in when
This patch fixes the warnings from jinja2 templates in when lines.

Change-Id: Ib8c35d250f2d68a0288baa6080c1fa39fbe688d9
2017-04-25 16:06:52 +00:00
Jenkins bb51a705ca Merge "Skip ClamAV db update in gate" 2017-04-25 16:05:42 +00:00
Major Hayden 5a4efe7cde Maintain default ansible parameters
This patch ensures that the default ansible parameters are still used.

Change-Id: I6bef1045d2e150508d86dbc21887c87af3179c61
2017-04-21 14:28:56 -05:00
Major Hayden ab9357dd54
Skip ClamAV db update in gate
This patch disables the ClamAV database update in the gate jobs. The
update often fails due to upstream server issues.

Change-Id: I39cfcc102bc98895823b4de9df930e6f273aaf15
2017-04-21 14:27:16 -05:00
Major Hayden c09763ecca Adjust readme/meta for Ansible 2.3
Change-Id: Ibf9cd5e7a1da3f653779a4a4c4add18f37466417
2017-04-20 10:08:05 -05:00
Jean-Philippe Evrard 9361a146e4 Do not update grub if grub not used
The security check should be skipped if GRUB update tool does not
exist (grub isn't installed).

Change-Id: I99a3b372e12e264cbc40bdc3ae6b6b60bf3c1c79
2017-04-13 12:34:22 +00:00
Jenkins 6f524798fc Merge "Make login banner customizable" 2017-04-06 13:30:32 +00:00
Jenkins 143c0084e4 Merge "Fix path to daemon init params file" 2017-04-05 14:44:38 +00:00