Commit graph

493 commits

Author SHA1 Message Date
dev-sec CI
17570fda66 update changelog 2020-08-18 22:08:28 +00:00
schurzi
989f7b0e1e
Merge pull request #300 from danielkubat/master
define file permissions explicitly
2020-08-19 00:05:51 +02:00
danielkubat
fd10d8e8d2 single quotes added to follow role formatting
Signed-off-by: danielkubat <dan.kubat@gmail.com>
2020-08-18 23:50:46 +02:00
danielkubat
34abe1ab03 mode defined in octal form
Signed-off-by: danielkubat <dan.kubat@gmail.com>
2020-08-18 22:50:10 +02:00
danielkubat
2a75fc11d3 permissions explicitly defined
Signed-off-by: danielkubat <dan.kubat@gmail.com>
2020-08-18 22:38:08 +02:00
dev-sec CI
6f0181b2fc update changelog 2020-08-17 10:17:48 +00:00
Daniel Kubat
7077187a67
replace module parameter fixed (#297)
Signed-off-by: danielkubat <dan.kubat@gmail.com>
2020-08-17 12:15:04 +02:00
dev-sec CI
37ab009093 update changelog 2020-08-16 18:19:43 +00:00
schurzi
56f6cd0337
Merge pull request #296 from dev-sec/fedora
fix fedora build
2020-08-16 20:17:15 +02:00
dev-sec CI
337c7dbbed update changelog 2020-08-16 08:06:54 +00:00
Daniel Kubat
2c4505addd
use find module instead of shell (#294)
* use find module to find yum repos, regexp fixes

Signed-off-by: danielkubat <dan.kubat@gmail.com>

* use loop instead of with_*

Signed-off-by: danielkubat <dan.kubat@gmail.com>

* Update tasks/yum.yml

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2020-08-16 10:04:26 +02:00
Sebastian Gumprich
88fecc4f2e try to fix fedora build
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
2020-08-16 09:53:11 +02:00
dev-sec CI
c777133050 update changelog 2020-08-13 09:48:20 +00:00
Alex Domoradov
29158e4285
Optimize and unify when clause (#295)
Signed-off-by: Alex Domoradov <alex.hha@gmail.com>
2020-08-13 11:45:44 +02:00
dev-sec CI
eb777fbe2f update changelog 2020-08-07 07:02:27 +00:00
schurzi
eaeca04d96
do not blacklist used filesystems (#289)
* add additional check for efi

some systems seem to require vfat because of efi, despite not exposing a
/sys/firmware/efi directory.

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* make linter happy

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* rework check to check for all used filesystems

so we don't break existing mounts with our configuration

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* do not check this on el6

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* add comment to clarify

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
2020-08-07 08:59:46 +02:00
dev-sec CI
fe7e37e6e9 update changelog 2020-08-03 13:58:20 +00:00
schurzi
387fc472bd
improve testing (#287)
* fix problem with package_facts on SuSE

SuSE Linux does not work with ansibel module packet_facts, so we need to
exclude this task there.

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* fix local docker tests for all distributions

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* fix local vagrant tests for all distributions

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* simplify travis tests

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* fix opensuse in travis

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* add fixes for suse

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>

* add special case for suse docker

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
2020-08-03 15:55:27 +02:00
dev-sec CI
740feae180 update changelog 2020-07-22 19:29:59 +00:00
Sebastian Gumprich
65a8fa0c6c
move hidepid vars into defaults so theyre overwritable (#285)
fixes #284

Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
2020-07-22 21:27:25 +02:00
dev-sec CI
994ea81e64 update changelog 2020-07-21 20:38:28 +00:00
alegrey91
a8e349913d
Mount proc filesystem using hidepid option (#283)
* Added task to mount proc fs using hidepid option

Signed-off-by: alessio <ale_grey_91@hotmail.it>
Signed-off-by: alegrey91 <ale_grey_91@hotmail.it>
Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Removed mount shell command due to ci problem

Signed-off-by: alegrey91 <ale_grey_91@hotmail.it>
Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Added task to create mount point before to add fstab entry

Signed-off-by: alegrey91 <ale_grey_91@hotmail.it>
Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Added check to ensure fstab exist

Signed-off-by: alegrey91 <ale_grey_91@hotmail.it>
Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Modified task title

Signed-off-by: alegrey91 <ale_grey_91@hotmail.it>
Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Fixed typo

Signed-off-by: alegrey91 <ale_grey_91@hotmail.it>
Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Fixed typo

Signed-off-by: alegrey91 <ale_grey_91@hotmail.it>
Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Fixed wrong indented lines

Signed-off-by: alegrey91 <ale_grey_91@hotmail.it>
Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Removed useless tasks and improved variables use

Signed-off-by: alessio <ale_grey_91@hotmail.it>

* removed ansible test tag

Signed-off-by: alessio <ale_grey_91@hotmail.it>

* removed trailing whitespace

Signed-off-by: alessio <ale_grey_91@hotmail.it>

* updated documentation

Signed-off-by: alessio <ale_grey_91@hotmail.it>

* fixed typo

Signed-off-by: alessio <ale_grey_91@hotmail.it>

* Update README.md

* Update vars/main.yml

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2020-07-21 22:35:50 +02:00
dev-sec CI
476f2ec8e2 update changelog 2020-07-12 07:18:50 +00:00
Sebastian Gumprich
990f95807f
remove mention of gitter 2020-07-12 09:16:22 +02:00
dev-sec CI
8d8277b3bd update changelog 2020-07-05 17:03:53 +00:00
Sebastian Gumprich
4d34d24c32
install procps in debian so sysctl.conf exists (#282)
Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
2020-07-05 19:01:21 +02:00
dev-sec CI
fe9fad8845 update changelog 2020-06-06 08:20:52 +00:00
Sebastian Gumprich
c31ad460ff
unify changelog and release actions (#279)
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
2020-06-06 10:18:18 +02:00
dev-sec CI
86cd494998 update changelog 2020-06-02 07:02:21 +00:00
dev-sec CI
9f566ae60d update changelog 2020-06-02 06:40:03 +00:00
Christoph Hartmann
0aba114a72
purge insecure packages (#275)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2020-06-02 08:38:52 +02:00
dev-sec CI
4e923c9756 update changelog 2020-05-21 00:43:54 +00:00
dev-sec CI
a0a247887c update changelog 2020-05-14 23:06:15 +00:00
Sebastian Gumprich
ac9fbb312a fix release action
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
2020-05-09 20:47:06 +02:00
Sebastian Gumprich
e060504f48
Update release.yml 2020-05-09 20:26:09 +02:00
dev-sec CI
741e5a43ce update changelog 2020-05-09 18:25:02 +00:00
Sebastian Gumprich
4c5fa242bd
Update release.yml 2020-05-09 20:21:22 +02:00
dev-sec CI
8402500b75 update changelog 2020-05-09 18:08:51 +00:00
Sebastian Gumprich
1e6787204a
add changelog and release workflow (#271)
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
2020-05-09 20:07:36 +02:00
Sebastian Gumprich
cc1df7af7b
Update main.yml 2020-05-09 14:02:26 +02:00
Sebastian Gumprich
1aa132f9ea
github action for changelog generation 2020-05-05 22:30:49 +02:00
Sebastian Gumprich
caffaf5ed5 update changelog 2020-05-05 21:43:56 +02:00
Sebastian Gumprich
365d7389c7 add selinux options to the readme 2020-05-05 21:28:26 +02:00
Andre Lehmann
33ef27d635
Make useradd defaults in login.defs dependent on OS (#266)
* Add proper ansible_managed header in each template

Signed-off-by: Andre Lehmann <aisberg@posteo.de>

* Use consistent indentation

All tabs were converted into spaces and all values were properly aligned, making
the file easier to read.

Signed-off-by: Andre Lehmann <aisberg@posteo.de>

* Make useradd defaults inside login.defs dependent on OS family

Signed-off-by: Andre Lehmann <aisberg@posteo.de>

* Remove duplicate key

Signed-off-by: Andre Lehmann <aisberg@posteo.de>

* Replace tab with space

Signed-off-by: Andre Lehmann <aisberg@posteo.de>
2020-04-13 16:09:20 +02:00
Paweł Krawczyk
af73bece97
Add kernel hardening parameters from Tails and CIS Benchmark (#263)
* Remove trailing space

ansible-lint marks my build red due to this `¯\_(ツ)_/¯`

Signed-off-by: Pawel Krawczyk <pawel.krawczyk@hush.com>

* add ansible-lint (#262)

* Update .travis.yml

Signed-off-by: Pawel Krawczyk <pawel.krawczyk@hush.com>

* Add kernel hardening parameters from Tails and CIS Benchmark

Signed-off-by: Pawel Krawczyk <pawel.krawczyk@hush.com>

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2020-03-06 10:32:43 +01:00
Sebastian Gumprich
f430284b8a
add ansible-lint (#262)
* Update .travis.yml
2020-02-18 17:51:34 +01:00
Paweł Krawczyk
65c93ae6cb
Remove trailing space (#261)
ansible-lint marks my build red due to this
2020-02-18 16:01:25 +01:00
ljkimmel
060b15a7ee
Addressing issue #255 (#258)
- Added logic to pull uid_min from login.defs when it returns an
  integer value greater than 0.
- Add logic so that Debian systems use inherit uid_max=999 when
  a uid_max was not found in login.defs.
- Add logic so that all other systems inherit uid_max=499 only
  when the value was not already found in login.defs or set for
  Debian systems.

Signed-off-by: Lesley Kimmel <lesley.j.kimmel@gmail.com>
2020-02-13 06:53:40 +01:00
Jared Ledvina
908d1faab7 Add kernel parameter information to README (#259)
* Add kernel parameter information to README

Add initial documentation around configuring audit=1 to reduce the inaccuracies in the auditd logs. 
Closes https://github.com/dev-sec/ansible-os-hardening/issues/253

Signed-off-by: Jared Ledvina <jared@techsmix.net>

* Cleanup spellinng

Signed-off-by: Jared Ledvina <jared@techsmix.net>
2020-01-25 17:08:00 +01:00
Sebastian Gumprich
aa3ceed887
Merge pull request #254 from kravietz/master
Remove trailing whitespaces (ansible-lint 201)
2020-01-15 11:06:19 +01:00