125 Commits (f45c0cd9568f5be58e6dd833898891d45607ff3a)

Author SHA1 Message Date
Digimer 1539ef72a8 * Fixed how passwords are supressed in logs. 6 years ago
Digimer 3fce021498 * Making good progress on the internal login/account methods. The user can now log in, though the first reload logs them right back out. Lots still broken. 6 years ago
Digimer 97441831e6 * Started reworking the jquery to read through the network.json file and parse the form, instead of looping through the form and reading the json file repeatedly. 6 years ago
Digimer 39c06f364f * Got tools/anvil-configure-striker updating the system passwords now. 7 years ago
Digimer a6e50f15a9 * Updated System->get_ips() to determine which interface is the default gateway and set the gateway IP and active DNS servers. 7 years ago
Digimer 4e6f492c4f * Updated Log->variables to add dots when printing a variable/value pair per line so that variables line up vertically. 7 years ago
Digimer 2163739b93 * Created Storage->update_config that will update a variable in anvil.conf (locally or remotely). 7 years ago
Digimer 9a37f66468 * Decided to abandon using apache security and to integrate it into Striker itself. This will allow for layers of access, easier account sync'ing, etc. Further, there is no proper way to handle logging out on apache, and they use md5 * 1000 iterations (with a salt, to be fair) for security... Not exactly the strongest. 7 years ago
Digimer de333704b5 * Created System->change_apache_password() to update (and enable) Striker's apache user. For now, it simply enables it in httpd.conf, it doesn't actually set/update the password. 7 years ago
Digimer a89fb24adf * Changed the Storage->copy() 'target' parameter to 'target_file' to avoid confusion with the often-used 'target' parameter for connecting to remote machines. 7 years ago
Digimer eafd4fd3f7 * Fixed a couple bugs to get System->change_shell_user_password() working. 7 years ago
Digimer ea43896fca * Created the new Remote module, and in it, moved System->remote_call to Remote->call() and created the new add_target_to_known_hosts() method (and two private helper methods). These are adapted from the m2 code. 7 years ago
Digimer a294c6c4fa * Updated the database components to use the name 'anvil' and the user 'admin'. The 'database::user' and 'database::name' variables are still supported, but now hidden. 7 years ago
Digimer e4f7bcf661 * Created Storage->backup() that makes a backup of the given file under the Anvil! backup directory with a time-stamped suffix and preserving the original directory path. 7 years ago
Digimer d86750ba01 * Created System->hostname() to get and optionally set the hostname (static and pretty). 7 years ago
Digimer 217dfaedc7 * Created System->pids() to read in all process data and, optionally, return an array reference of PIDs matching a string (program name). 7 years ago
Digimer c21b326f1a * Changed all methods to take a 'debug' argument for setting log level on calls. 7 years ago
Digimer 6f4df4ed22 * Changed 'database::X::ping_before_connect' to 'database::X::ping' and made the value be the actual timeout to wait for pings when trying to connect to a database. 7 years ago
Digimer fe4a1d5a1c * Working on timing for DB connections. 7 years ago
Digimer 2170c00add * Added the 'debug' parameter to System->check_alert_sent. Also updated it to use 'alert_sent_uuid'. 7 years ago
Digimer f1bd4b99ca * Fixed more issues with anvil-prep-database. 7 years ago
Digimer d03213b860 * Fixed some string and path issues from the 'anvil' merger. 7 years ago
Digimer bb48c090a7 * Created Get->md5sum() to return the md5sum of the specified file. 7 years ago
Digimer 1c3b3c2c9e * Fixed a bug in calling ethtool in tools/anvil-update-states and added conditionals to reading the data files. 7 years ago
Digimer 2b9c6c26dc * Fixed a couple remaining issues from the recent merger. Specifically, '$$anvil' was fixed from a bad regex and the path/names of our tools were fixed. 7 years ago
Digimer 1cb42080c3 ** Major Changes ** 7 years ago
Digimer 886331c756 * Created the new System->get_ips method which records IP addresses, subnet masks and MAC addresses of interfaces as reported by 'ip addr'. 7 years ago
Digimer 3ce3a80c98 * Started working on the updated Databse->_find_behind_databases logic. 7 years ago
Digimer b5e7054a33 * Added Scalar::Util->weaken to help avoid memory leaks. 7 years ago
Digimer 215d96b983 * Added a check to see if firewalld is running and, if not, start it in System->manage_firewall 7 years ago
Digimer eaf900d5c3 * Added a check in System->manage_firewall to check iptables-save for the requested port and return immediately if the requested port is open and the task wasn't 'close'. This speeds up firewall checks substantially. 7 years ago
Digimer c1b21f96be * Finished updating System->manage_firewall to be much faster than before. 7 years ago
Digimer 189ca3bfce * Created System->_load_firewalld_zones and -> _load_specific_firewalld_zone to more efficiently load information about firewall zones. 7 years ago
Digimer d7fd0c564f * Making good progress of speeding up firewalld stuff. Still room for improvement. 7 years ago
Digimer 31dddf95b0 * Created System->_match_port_to_service that matches a TCP or UDP port to a firewalld service name, if possible. 7 years ago
Digimer 9b8922b530 * Created System->is_local that takes a hostname or IP address and returns '1' if that matches the local host or one of the local IPs. 7 years ago
Digimer cd5a78091f * Started work on managing the firewall in System. 7 years ago
Digimer c6ad16a7a1 * Added a timeout to System->ping to reduce the delay caused by the host being unable to resolve a hostname. 7 years ago
Digimer 9936554cdb * Created Tools->nice_exit 7 years ago
Digimer 6080ae0bb3 * Connecting to a database now adds/updates the host in the database via the new Database->insert_or_update_hosts and Database->get_hosts(). 7 years ago
Digimer 4aff8a1722 * Fixed bad calls to $an->_hostname and $an->_short_hostname. 7 years ago
Digimer a932b44d28 * Fixed a few more problems with the SQL schema and setting up the database when needed. 7 years ago
Digimer 13352bad6d * Moved most of 'scancore-database' into the new Database->configure_pgsql() method. I had renamed that script, but now it will be removed soon. 7 years ago
Digimer ae58dd6f12 * This commit gets m3 back to being able to compile. It very likely doesn't actually work yet though. 7 years ago
Digimer 3ea562a79c Note: Broken Commit 7 years ago
Digimer 6b5185fe61 * Added a lot more testing. 7 years ago
Digimer 648af130cd * Finished scancore-database. It now setups/repairs postgresql database config, user and scancore database. 7 years ago
Digimer 632f677f04 * Added two new modules; Convert.pm for converting data types and Database.pm for managing all things related to databases. 7 years ago
Digimer bea6bc5e69 * Updated Tools->new() to check if it is being invoked in a browser and set the environment appropriately. It also sets the PWD environmental variable to the DOCUMENT_ROOT variable. 7 years ago
Digimer 753d7a3ba6 * Created the new System.pm module with the initial read_file() method that reads files. 8 years ago