ansible-collection-hardening
inspec
Our great sponsors
ansible-collection-hardening | inspec | |
---|---|---|
25 | 13 | |
3,650 | 2,810 | |
1.9% | 0.9% | |
9.2 | 9.4 | |
24 days ago | 3 days ago | |
Jinja | Ruby | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ansible-collection-hardening
-
Ask HN: What open-source projects are you currently contributing to and why?
An ansible collection for hardening Linux systems I mostly wrote: https://github.com/dev-sec/ansible-collection-hardening
Another ansible collection to manage Icinga: https://github.com/T-Systems-MMS/ansible-collection-icinga-d...
And the yunohost app for invoice ninja: https://github.com/YunoHost-Apps/invoiceninja5_ynh
-
Ansible - how widely used is it ?
i have some packer builds where itll install ansible, run playbooks locally, then uninstall ansible. such as the the devsec os hardening role: https://github.com/dev-sec/ansible-collection-hardening
- What hardening before forwarding services?
-
Security Harden Ubuntu 22.04
This collection is also interesting https://github.com/dev-sec/ansible-collection-hardening/
-
What you guys use for website protection? We use sentinel one but doesn't cover web related items
Second you want to ensure the os is secure and up to date. Take a look at os hardening best practices, for example this ansible playbook for linux: https://github.com/dev-sec/ansible-collection-hardening
- Ansible for automation/ hardening.
-
How do you document your (whole) setup ? Looking for ideas.
To ensure SSH and other security related things are configured correctly, you can take a look at DevSec which helps you to apply proven security configuration principles. Also there is guides like "Secure Secure Shell" which can help you to better understand what you can do to increase the security of your servers (this one is from 2015 but many aspects are still relevant).
-
Recommendations for advanced material (reading material, courses, etc) on server security?
I learned a lot by using and reading through the source code of these ansible roles: https://github.com/dev-sec/ansible-collection-hardening
-
Ask HN: How to secure Ubuntu VPS in 2022?
Have a look at https://github.com/dev-sec/ansible-collection-hardening
-
SSH Bastion host best practices: How to Build and Deploy a Security-Hardened SSH Bastion Host
You can do much more https://github.com/dev-sec/ansible-collection-hardening/tree/master/roles/ssh_hardening
inspec
- Testing Terraform infra - terratest alternatives?
-
Ruby: "the best" language for general automation
The course uses Chef Inspec, an open source Ruby DSL. I made a POC with this tool to automatically check repositories on GitHub, checks like if it contains a gitignore consistent with the language used, if node_modules is not present, etc.
- what tool do you use for validating hardening settings have been applied. this is for security and hardening purposes. for example, ensure that admin username is not default username, password is at least 12 characters with upper, lower and special characters, https is enabled etc
-
Why do you guys think testing is not a very prominent topic in the cloud native community ?
We are using Inspec to double check that the changes are indeed what we expect them to be. If anyone knows a better tool, please share
-
Is there any kind of Pester Server for infrastructure tests?
https://github.com/inspec/inspec Chef Inspec is probably a great tool for what you’re trying to do. Great at building human readable test cases for validation of infrastructure deployments. At a different org I used to use PoSh, Terraform and Ansible etc. for deploying on-prem and cloud infrastructure and then Inspec for testing for successful deployments, security misconfigurations (is a port open that shouldn’t be etc).
- InSpec
- Checking compliance of controls? Job help
- Unit tests for hardened images
-
Automated Configuration Analysis?
If you need the monitoring for compliance reason, Chef InSpec was designed for this exact usecase.
- Compliance Scans for Images
What are some alternatives?
debian-cis - PCI-DSS compliant Debian 10/11/12 hardening
terratest - Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
crowdsec - CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
goss - Quick and Easy server testing/validation
awspec - RSpec tests for your AWS resources.
RHEL7-CIS - Ansible role for Red Hat 7 CIS Baseline
checkov - Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.
ansible-collection-nginx - Ansible collection for NGINX
container-structure-test - validate the structure of your container images
netboot.xyz - Your favorite operating systems in one place. A network-based bootable operating system installer based on iPXE.
conftest - Write tests against structured configuration data using the Open Policy Agent Rego query language