Commit graph

222 commits

Author SHA1 Message Date
Stéphane Lesimple
b00f90aa48 doc: introduce ingressRequirePIV option & install-yubico-piv-checker.sh 2021-01-12 12:05:06 +01:00
Stéphane Lesimple
62d6393d56 feat: add yubico-piv-checker install script 2021-01-12 12:05:06 +01:00
Stéphane Lesimple
7aa655bcd2 doc: add documentation for PIV 2021-01-11 17:58:59 +01:00
Stéphane Lesimple
e75fc974c6
Merge pull request #112 from ovh/counterrors
fix: tests: syslog-logged errors were not counted towards the total
2021-01-08 11:58:58 +01:00
Stéphane Lesimple
41121f7723
fix: proper sqlite log location for invalid realm accounts 2021-01-07 17:20:54 +00:00
Stéphane Lesimple
920821f5d6
fix: tests: syslog-logged errors were not counted towards the total 2021-01-07 10:36:34 +00:00
Stéphane Lesimple
e8d60810f1
Merge pull request #111 from ovh/perluseall
chore: perl-use-all: dynamically find required modules
2021-01-05 18:51:25 +01:00
Stéphane Lesimple
b4f32d5afe
Merge pull request #110 from ovh/aclbackup
enh: satellite scripts: better error handling
2021-01-05 18:51:09 +01:00
Stéphane Lesimple
79e8a42b90
Merge pull request #108 from ovh/docs
docs: add documentation about logs
2021-01-05 18:50:54 +01:00
Stéphane Lesimple
16323667e2
Merge pull request #106 from ovh/logs
feat: revamp logs
2021-01-05 18:50:25 +01:00
Stéphane Lesimple
6373933f8f
Merge pull request #104 from ovh/mfa_realm
feat: inter-realm MFA and LC_BASTION_DETAILS
2021-01-05 18:50:05 +01:00
Stéphane Lesimple
8e7fc9b949
chore: perl-use-all: dynamically find required modules 2020-12-31 13:00:00 +00:00
Stéphane Lesimple
9a10ddebd9
enh: satellite scripts: better error handling 2020-12-31 12:13:20 +00:00
Stéphane Lesimple
6dcbc2c93b
docs: add documentation about logs 2020-12-30 10:58:04 +00:00
Stéphane Lesimple
a479810d83
feat: revamp logs
All connections and plugin executions emit two logs, an 'open' and
a 'close' log. We now add all the details of the connection to
the 'close' logs, those that were previously only available in the
corresponding 'open' log. This way, it is no longer required to
correlate both logs with their uniqid to have all the data:
the 'close' log should suffice. The 'open' log is still there if
for some reason the 'close' log can't be emitted (kill -9, system
crash, etc.), or if the 'open' and the 'close' log are several
hours, days or months appart.

An additional field "duration" has been added to the 'close' logs,
this represents the number of seconds (with millisecond precision)
the connection lasted.

Two new fields "globalsql" and "accountsql" have been added to the
'open'-type logs. These will contain either "ok" if we successfully
logged to the corresponding log database, "no" if it is disabled,
or "error $aDetailedMessage" if we got an error trying to insert
the row. The 'close'-type log also has the new "accountsql_close"
field, but misses the "globalsql_close" field as we never update
the global database on this event. On the 'close' log, we can also
have the value "missing", indicating that we couldn't update the
access log row in the database, as the corresponding 'open' log
couldn't insert it.

The "ttyrecsize" log field for the 'close'-type logs has been removed,
as it was never completely implemented, and contains bogus data if
ttyrec log rotation occurs. It has also been removed from the sqlite
log databases.

The 'open' and 'close' events are now pushed to our own log files,
in addition to syslog, if logging to those files is enabled (see
``enableGlobalAccesssLog`` and ``enableAccountAccessLog``), previously
the 'close' events were only pushed to syslog.

The /home/osh.log is no longer used for ``enableGlobalAccessLog``, the
global log is instead written to /home/logkeeper/global-log-YYYYMM.log.

The global sql file, enabled with ``enableGlobalSqlLog``, is now
split by year-month instead of by year, to
/home/logkeeper/global-log-YYYYMM.sqlite.
2020-12-29 16:14:50 +00:00
Stéphane Lesimple
ebc3c2c6df
Merge pull request #107 from ovh/itsover9000
fix: groupList: remove 9K group limit
2020-12-29 13:32:57 +01:00
Stéphane Lesimple
2117773945
fix: groupList: remove 9K group limit 2020-12-29 10:41:04 +00:00
Stéphane Lesimple
5228c863b0 chore: tests_all: use proper tempdir 2020-12-25 17:02:54 +01:00
Stéphane Lesimple
2cfde997f3 fix: realmDelete: bad sudoers configuration 2020-12-25 17:02:54 +01:00
Stéphane Lesimple
81db4b10bb feat: realms: use remote bastion MFA validation information for local policy enforcement 2020-12-25 17:02:54 +01:00
Stéphane Lesimple
9d1d613554
Merge pull request #103 from ovh/guestwarn
fix: remove useless warning when there is no guest access
2020-12-23 12:01:02 +01:00
Stéphane Lesimple
8c31ea277c
fix: remove useless warning when there is no guest access 2020-12-23 10:24:24 +00:00
Stéphane Lesimple
16f42221ca
feat: add LC_BASTION_DETAILS envvar 2020-12-21 11:13:46 +00:00
Stéphane Lesimple
2d79b7a1ba
Merge pull request #102 from ovh/osh_only
feat: accountModify: add --osh-only (closes #97)
2020-12-18 15:35:42 +01:00
Stéphane Lesimple
a204313af9
feat: accountModify: add --osh-only (closes #97) 2020-12-18 11:04:33 +00:00
Stéphane Lesimple
faf1079802
Merge pull request #100 from ovh/fixconfdist
fix bastion.conf.dist after #98
2020-12-17 20:56:14 +01:00
Stéphane Lesimple
d6574221a3 fix: bastion.conf.dist & configuration.inc after #98 2020-12-17 19:52:10 +01:00
Stéphane Lesimple
1d84a9a714
Merge pull request #99 from ovh/docfix
doc: minor adjustments
2020-12-17 15:12:32 +01:00
Stéphane Lesimple
2422adf2d6
Merge pull request #98 from ovh/configlint
Better configuration parsing, autogenerated documentation
2020-12-17 15:11:49 +01:00
Stéphane Lesimple
3c5dddc06e
chore: fixes after review 2020-12-17 14:05:36 +00:00
Stéphane Lesimple
f2ac7c269a
doc: minor adjustments 2020-12-17 08:14:54 +00:00
Stéphane Lesimple
4a45df4432
chore: tidy after merge, adjust & regen doc 2020-12-17 08:04:32 +00:00
Stéphane Lesimple
9c370b8ac1
Merge branch 'master' into configlint 2020-12-16 14:33:36 +01:00
Stéphane Lesimple
b131395a21
Merge pull request #79 from axl89/master
Fixed wrong default values in bastion.conf comments
2020-12-16 14:29:03 +01:00
Stéphane Lesimple
163a3fd726
chore: perlcritic/perltidy passes 2020-12-16 13:01:13 +00:00
Stéphane Lesimple
ea6867a614
doc: autogenerate the bastion.conf options reference 2020-12-16 12:47:33 +00:00
Stéphane Lesimple
ef6efa6dc3
enh: config: better parsing and normalization
We now warn (to syslog) for invalid values where
we have to fallback to defaults, and for boolean
options, actual true/false JSON values are now
properly recognized. 0 and 1 will still always
be parsed correctly, to not break compatibility.
2020-12-16 08:17:38 +00:00
Stéphane Lesimple
398c04c273
Merge pull request #92 from ovh/perlcritic
chore: perlcritic: including forgotten .inc files
2020-12-15 20:24:05 +01:00
Stéphane Lesimple
d40bfc8897
Merge pull request #95 from speed47/autogenerated
chore: checks_basic: verify that autogenerated doc is up to date
2020-12-15 20:20:55 +01:00
Stéphane Lesimple
78c47cba04
chore: checks_basic: verify that autogenerated doc is up to date 2020-12-15 17:37:38 +00:00
Stéphane Lesimple
03ad1da046
chore: perlcritic: including forgotten .inc files 2020-12-15 17:18:37 +00:00
Stéphane Lesimple
7c51a4d73b
Merge pull request #93 from ovh/microfix
chore: fix an error message
2020-12-15 17:04:26 +01:00
Stéphane Lesimple
2f1eb5a6b2
Merge pull request #94 from ovh/opensuseleap150
Opensuseleap150
2020-12-15 17:04:12 +01:00
Stéphane Lesimple
32a126d3c3
chore: tests: remove OpenSUSE Leap 15.0
We're hitting this bug: https://bugzilla.opensuse.org/show_bug.cgi?id=1146027
Hence the tests randomly fail because of that. The workaround is not really clean
(installing a custom-built package), so we're pulling OpenSUSE Leap 15.0 from our
automated tests workflow. Note that it's still supported, the tests can be launched
manually, and bugs under OpenSUSE Leap 15.0 will still be fixed.
2020-12-15 16:01:28 +00:00
Stéphane Lesimple
a676692fe6
chore: fix an error message 2020-12-15 13:57:58 +00:00
Stéphane Lesimple
a8423c87aa
Merge pull request #91 from ovh/bump
release v3.01.03
2020-12-15 14:25:07 +01:00
Stéphane Lesimple
1c33903203
release v3.01.03 2020-12-15 11:35:33 +00:00
Stéphane Lesimple
fdb786d62c
Merge pull request #89 from ovh/dev/aleblanc/bin-helper-osh-account-delete
fix: osh-accountDelete: fix typo
2020-12-15 12:14:19 +01:00
Stéphane Lesimple
4436081807
Merge pull request #90 from ovh/pluginconfig
fix: osh.pl: plugin_config 'disabled' key is a boolean
2020-12-15 12:13:23 +01:00
Stéphane Lesimple
790802e6da
fix: osh.pl: plugin_config 'disabled' key is a boolean 2020-12-15 10:16:35 +00:00