Coder Social home page Coder Social logo

equalitie / caislean Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 11.0 778 KB

Ansible recipes for deployment of secure communications systems

Home Page: http://equalit.ie/activists-can-run-independent-and-secure-online-services-with-caislean/

License: GNU General Public License v2.0

Shell 76.37% Python 4.39% DIGITAL Command Language 19.24%

caislean's People

Contributors

graphiclunarkid avatar kheops2713 avatar nosmo avatar tristramg avatar tseropian avatar uffhitech avatar willdoran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

caislean's Issues

ERROR: change handler (update mail aliases) is not defined

Hello Equalit.ie team,

I'm testing Caislean on Debian 7 / Linode 4G VPS
I am having this error. Disappears the 2nd time I am pushing the playbook
TASK: [common | Install /etc/aliases] *****************************************
changed: [server.mydomain.com]
ERROR: change handler (update mail aliases) is not defined

PGP encryption of logs when rotated

We could encrypt the logs upon rotation with a predefined PGP key, to reduce the potential consequences in case the box is compromised. This is particularly true for the full packet collection.

Make some package upgrades fully automatic

Although the admin is warned by email when new packages can be upgraded, some of the upgrades could maybe be made fully automatic, if the risk of breaking anything is low.

sysctl.yml tasks fail on first run against a clean Jessie installation

Reproduction steps:

  1. Install a fresh version of Debian 8 (Jessie) on the target machine
  2. Run the common role against this machine

Expected results

The tasks in the sysctl.yml playbook complete successfully.

Actual results

The sysctl.yml tasks fail the first time they are run against a new installation, but succeed the second and subsequent times. Possible race condition or timing issue with the previous task?

Improve documentation and possibly implementation on system's TLS certificates

Depending on the application used, the way to properly serve the right TLS certificate may vary.

For instance, some applications require the certificate file to only contain the server certificate while for others it is better to have the certificate chain up to the root CA.

In addition, for the XMPP server, the common name (or one SubjectAltName entry) must be the served domain rather than the hostname the server is running on.

So we should probably:

  • create a file that has a concatenation of server + root CA cert
  • document the use of SubjectAltName to make the cert valid for both host name, domain name and possibly IP address

MySQL issues when root password contains special characters

Hi
Not a blocking issue but worth mentionning :)

I tried to deploy Wordpress recipe with the following MySQL root password L7c%UU(T+n\t({*~][24,/y

It was probably cut at some point of the string, hence authenfication could not work for creating WordPress user.
Solution is to use a only alphanumeric password.

Combine rules sources with oinkmaster

While Emerging Threats rules are quite complete, it would be interesting to be able to combine them with other sources, such as Snort community rules.

This however implies to find a way to solve conflicting files between rules archives, notably the file sid-msg.map.

Check files in /boot

Using their hashes, at boot time as well as periodically.

Possibly using rkhunter, which has a this kind of feature.

Missing file in LDAP role for Jessie

Reproduction steps

  1. Complete all prerequisites for the openldap role.
  2. Run the openldap role against a Debian 8 target machine.

Expected result

The openldap role completes successfully.

Actual result

The openldap role fails at the following task: Add organizationalUnit mail LDAP entry (1/2). This seems to be because the mail_ou.ldif.j2 template does not exist.

WP LDAP authentication requires php5-ldap package, but it is not installed

Reproduction steps

  1. Run all wordpress role prerequisites, including openldap
  2. Follow the manual steps in doc/role-doc/wordpress.md to install the wpDirAuth plugin for Wordpress
  3. Go to the "Directory Auth." submenu in the Settings menu

Expected results

Directory Authentication Options are displayed

Actual results

screenshot from 2016-01-02 18 03 48

Possible solution

Install the php5-ldap package iff the user indicates they wish to use LDAP authentication for Wordpress (maybe via a host_vars variable?)

Make incremental backups without storing the PGP private key

At this moment, incremental remote backups with duplicity require the presence of the private key on the system, in order to decrypt the last remote backup and make the increment.

A way could be to:

  • make a local backup, unencrypted
  • use this local backup as a basis for the increments
  • encrypt and send the backup to the remote system, which thus would not need the private key

HSTS doesn't allow self-signed certificates

Reproduction steps

  1. Install the common, tls and nginx roles
  2. Visit the default website over a TLS secured connection

Expected result

Browser warning about the self-signed certificate, but I can add an exception

Actual result

In Iceweasel (Firefox), I get a message that includes the paragraph, "This site uses HTTP Strict Transport Security (HSTS) to specify that Iceweasel only connect to it securely. As a result, it is not possible to add an exception for this certificate." The webpage cannot be displayed.

Workaround

Use the letsencrypt role to replace the tls role's self-signed certificates with ones trusted by most browsers.

Possible solution

Modify the nginx role to disable HSTS when using self-signed certificates.

Scrub wiki?

Now that we have the documentation in-repo in Markdown, should the old documentation and specifications on the wiki be deleted or migrated? It seems like documentation could bifurcate a bit with two systems in place.

Make DH params management automatic

Rather than requiring manual generation by the admin, Diffie Hellmann (file /etc/ssl/dhparam.pem) parameters could be:

  • autogenerated directly on the server if they don't exist yet;
  • renewed every month or so through a Cron job

Off-site storage of logs

To reduce the risks in case of compromission of the box, notaby if full packet logging is enabled.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.