GithubHelp home page GithubHelp logo

abuseio-ansible's Introduction

AbuseIO - Abusemanagement tools

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License

AbuseIO is a toolkit to receive, process, correlate and notify end users about abuse reports received by network operators, typically hosting and access providers. The purpose is to consolidate efforts by various companies and individuals to automate and improve the abuse handling process.

Official Documentation

Documentation for AbuseIO can be found in its own repository.

An online version of the documentation can be found on https://docs.abuse.io/

Contributing

Thank you for considering contributing to AbuseIO! The contribution guide can be found in the AbuseIO website.

Security Vulnerabilities

If you discover a security vulnerability within AbuseIO, please send an e-mail to the AbuseIO CERT at [email protected] (GPG available on Key servers). All security vulnerabilities will be promptly addressed.

License

AbuseIO is open-sourced software licensed under the GNUv2 license

abuseio-ansible's People

Contributors

feldsam avatar kruisdraad avatar pettai avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

abuseio-ansible's Issues

ERROR! 'static' is not a valid attribute for a TaskInclude

ERROR! 'static' is not a valid attribute for a TaskInclude

The error appears to be in '/opt/abuseio-ansible/roles/apache/tasks/main.yml': line 16, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

Setup/install tasks.

  • include_tasks: "setup-{{ ansible_os_family }}.yml"
    ^ here
    We could be wrong, but this one looks like it might be an issue with
    missing quotes. Always quote template expression brackets when they
    start a value. For instance:

    with_items:
    - {{ foo }}

Should be written as:

with_items:
  - "{{ foo }}"

"I have changed the IP allowed to just one IP with a prefix : "192.168.1.7/24""

Composer installation issues

Playbook for composer install fails:

TASK [abuseio : Run composer install] ************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'composer_install_result.stderr | search('- \\w+ing ')' failed. The error was: template error while templating string: no filter named 'search'. String: {% if composer_install_result.stderr | search('- \\w+ing ') %} True {% else %} False {% endif %}"}

Running it manually reveals the following:

abuseio@abuseio:~$ /usr/bin/php /usr/local/bin/composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package chumper/zipper is abandoned, you should avoid using it. No replacement was suggested.
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package jeremeamia/superclosure is abandoned, you should avoid using it. Use opis/closure instead.
Package mtdowling/cron-expression is abandoned, you should avoid using it. Use dragonmantank/cron-expression instead.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Package zendframework/zend-escaper is abandoned, you should avoid using it. Use laminas/laminas-escaper instead.
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Package zendframework/zend-http is abandoned, you should avoid using it. Use laminas/laminas-http instead.
Package zendframework/zend-json is abandoned, you should avoid using it. Use laminas/laminas-json instead.
Package zendframework/zend-loader is abandoned, you should avoid using it. Use laminas/laminas-loader instead.
Package zendframework/zend-math is abandoned, you should avoid using it. Use laminas/laminas-math instead.
Package zendframework/zend-server is abandoned, you should avoid using it. Use laminas/laminas-server instead.
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
Package zendframework/zend-uri is abandoned, you should avoid using it. Use laminas/laminas-uri instead.
Package zendframework/zend-validator is abandoned, you should avoid using it. Use laminas/laminas-validator instead.
Package zendframework/zend-xmlrpc is abandoned, you should avoid using it. Use laminas/laminas-xmlrpc instead.
Package zendframework/zendxml is abandoned, you should avoid using it. Use laminas/laminas-xml instead.
Generating autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
9 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> php artisan clear-compiled
> php artisan optimize
Generating optimized class loader
Compiling common classes
> php artisan queue:restart
PHP Fatal error:  Cannot declare class Symfony\Component\Finder\SplFileInfo, because the name is already in use in /opt/abuseio/bootstrap/cache/compiled.php on line 16118
Script php artisan queue:restart handling the post-install-cmd event returned with error code 255

pecl xdebug fails to install (Ubuntu)

This might be Ubuntu specific (I don't know what the other distros php base version is)

failed: [localhost] (item=xdebug) => {"ansible_loop_var": "item", "changed": false, "cmd": "yes '' | pecl install xdebug", "delta": "0:00:00.277975", "end": "2020-06-02 08:05:33.926174", "failed_when_result": true, "item": "xdebug", "msg": "non-zero return code", "rc": 1, "start": "2020-06-02 08:05:33.648199", "stderr": "", "stderr_lines": [], "stdout": "pecl/xdebug requires PHP (version >= 7.1.0), installed version is 7.0.33-0ubuntu0.16.04.15\nNo valid packages found\ninstall failed", "stdout_lines": ["pecl/xdebug requires PHP (version >= 7.1.0), installed version is 7.0.33-0ubuntu0.16.04.15", "No valid packages found", "install failed"]}

The workaround is to explicitly add the (compatible) version - xdebug-2.6.1 into ./vars/php-pecl.yml

modernising ansible playbooks

In relation to updating to more recent ansible (#5) There are more things that needs fixing for a oneshot install on Ubuntu 16.04.

Here's a PR #7 that fixes installation of all packages for Ubuntu 16.04

Preflight tests assume role is being run on localhost

The DNS tests fail if you attempt to deploy on a remote ubuntu host.

Particularly as it will install the python modules on the remote host but they're needed on the local machine, I also suspect it's doing the DNS lookup test on the local machine instead of the remote host.

The machine running the playbook shouldn't need to be the one that the role is being deployed on.

MySQL playbooks needs modernizing

Some of the playbooks for MySQL fails.

TASK [mysql : Disallow root login remotely] ******************************************************************************
failed: [localhost] (item=DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')) => {"ansible_loop_var": "item", "changed": false, "cmd": ["mysql", "-NBe", "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')"], "delta": "0:00:00.008507", "end": "2020-06-02 08:22:28.351255", "item": "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')", "msg": "non-zero return code", "rc": 1, "start": "2020-06-02 08:22:28.342748", "stderr": "ERROR 1142 (42000) at line 1: DELETE command denied to user 'abuseio_usr'@'localhost' for table 'user'", "stderr_lines": ["ERROR 1142 (42000) at line 1: DELETE command denied to user 'abuseio_usr'@'localhost' for table 'user'"], "stdout": "", "stdout_lines": []}

And more errors arise while traversing the recipes in the these files:

roles/mysql/tasks/secure-installation.yml
roles/mysql/tasks/users.yml
roles/mysql/tasks/replication.yml

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.