-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multiple user accounts and account management (#39)
* bump version for next point release * increase length of self-signed cert * Prompt during installation for whether or not to disable IPv6 * In the Kibana Software dashboard pie chart, don't exclude software for which a version is unknown * Allow Malcolm to be restarted automatically upon docker daemon restart * sync malcolm and iso installer * working on using htadmin as a user management frontend * working more on account management * working on multiple users * tweak nginx according to arkime/arkime#1120 * more work on multi-user auto creation with moloch * more work on multi-user auto creation with moloch * more work on multi-user auto creation with moloch * more work on multi-user auto creation with moloch * bump version, udpate README for account management * Improved comments for zeeklogs wise data source * added user desktop file for malcolm iso * create missing htadmin directory in iso build * relocate icons for malcolm from desktop * BIOS ISO is kind of busted at the moment anyway as far as preseeding goes, so for now just install the EFI bootloader. * fix read permissions for group/world on htpasswd file for nginx processes * A couple fixes for the iso: 1) disable some callback features in chromium via policy, 2) let wicd manage networking * When running auth_setup.sh to reset the administrator password, don't blow away the other passwords in the database * working on using htadmin as a user management frontend * working on multiple users * tweak nginx according to arkime/arkime#1120 * more work on multi-user auto creation with moloch * more work on multi-user auto creation with moloch * added user desktop file for malcolm iso
- Loading branch information
Showing
34 changed files
with
953 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
FROM debian:buster-slim | ||
# Copyright (c) 2019 Battelle Energy Alliance, LLC. All rights reserved. | ||
LABEL maintainer="[email protected]" | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV TERM xterm | ||
|
||
ARG PHP_VERSION=7.3 | ||
ARG MCRYPT_VERSION=1.0.2 | ||
ARG BOOTSTRAP_VERSION=3.3.6 | ||
|
||
ENV PHP_VERSION $PHP_VERSION | ||
ENV MCRYPT_VERSION $MCRYPT_VERSION | ||
ENV BOOTSTRAP_VERSION $BOOTSTRAP_VERSION | ||
|
||
RUN apt-get update && \ | ||
apt-get -y -q --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends install \ | ||
bcrypt \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
libmcrypt-dev \ | ||
libmcrypt4 \ | ||
make \ | ||
mcrypt \ | ||
nginx-light \ | ||
php-dev \ | ||
php-pear \ | ||
php$PHP_VERSION-apcu \ | ||
php$PHP_VERSION-cli \ | ||
php$PHP_VERSION-curl \ | ||
php$PHP_VERSION-fpm \ | ||
php$PHP_VERSION-gd \ | ||
procps \ | ||
supervisor && \ | ||
( yes '' | pecl channel-update pecl.php.net ) && \ | ||
( yes '' | pecl install mcrypt-$MCRYPT_VERSION ) && \ | ||
ln -s -r /usr/lib/php/20??????/*.so /usr/lib/php/$PHP_VERSION/ && \ | ||
mkdir -p /run/php && \ | ||
git clone --depth 1 https://github.com/mmguero/htadmin /tmp/htadmin && \ | ||
mv /tmp/htadmin/sites/html/htadmin /var/www/htadmin && \ | ||
cd /var/www/htadmin && \ | ||
( grep -rhoPi "(src|href)=['\"]https?://.+?['\"]" ./includes/* | sed "s/^[a-zA-Z]*=['\"]*//" | sed "s/['\"]$//" | xargs -r -l curl -s -S -L -J -O ) && \ | ||
sed -i "s@http[^'\"]*/@@gI" ./includes/* && \ | ||
mkdir fonts && cd fonts && \ | ||
curl -s -S -L -J -O "https://maxcdn.bootstrapcdn.com/bootstrap/$BOOTSTRAP_VERSION/fonts/glyphicons-halflings-regular.ttf" && \ | ||
curl -s -S -L -J -O "https://maxcdn.bootstrapcdn.com/bootstrap/$BOOTSTRAP_VERSION/fonts/glyphicons-halflings-regular.woff" && \ | ||
curl -s -S -L -J -O "https://maxcdn.bootstrapcdn.com/bootstrap/$BOOTSTRAP_VERSION/fonts/glyphicons-halflings-regular.woff2" && \ | ||
cd /tmp && \ | ||
apt-get -y -q --allow-downgrades --allow-remove-essential --allow-change-held-packages --purge remove \ | ||
git make libmcrypt-dev php-pear php-dev && \ | ||
apt-get autoremove -y -q && \ | ||
apt-get clean -y -q && \ | ||
usermod --non-unique --uid 1000 www-data && \ | ||
groupmod --non-unique --gid 1000 www-data && \ | ||
chown -R www-data:www-data /var/www && \ | ||
rm -rf /var/lib/apt/lists/* /var/cache/* /tmp/* /var/tmp/* /var/www/html | ||
|
||
ADD docs/images/favicon/favicon.ico /var/www/htadmin/ | ||
ADD htadmin/supervisord.conf /supervisord.conf | ||
ADD htadmin/php/php.ini /etc/php/$PHP_VERSION/fpm/php.ini | ||
ADD htadmin/nginx/sites-available/default /etc/nginx/sites-available/default | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf", "-u", "root", "-n"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.