Commit Graph

393 Commits (master)

Author SHA1 Message Date
Stéphane Lesimple f43fdaaf82 enh: osh-lingering-sessions-reaper: make it configurable
4 years ago
Stéphane Lesimple 572ced2af7 enh: osh-piv-grace-reaper: run only on master, standardize config reading
4 years ago
Stéphane Lesimple 07f5c35458 fix: piv-grace-reaper: don't use hash values (had no impact)
4 years ago
Stéphane Lesimple bd13e5a476 enh: osh-encrypt-rsync: catch warnings emitted by GetOptions
4 years ago
Stéphane Lesimple c38c9c09f2 chore: fix typos
4 years ago
Stéphane Lesimple a178aa7906 enh: cron scripts: factorize common code and standardize logging
4 years ago
Stéphane Lesimple 2c2064a484 feat: osh-encrypt-rsync: handle sqlite and user logs along with ttyrec files
4 years ago
Stéphane Lesimple 86c7bf39e6 remove compress-old-logs script, as osh-encrypt-rsync will do the job instead
4 years ago
Stéphane Lesimple 6baa61a7f4 fix: accountInfo: missing creation date on non-json output
4 years ago
Stéphane Lesimple e5cfa26853 fix: install: avoid cases of sigpipe on `tr`
4 years ago
Stéphane Lesimple dc16e628e2 fix: osh-remove-empty-folders: fix folders counting (logging only)
4 years ago
Stéphane Lesimple 3331e158a0 enh: better error detection and logging in (account|group)Delete
4 years ago
Stéphane Lesimple 7bb0843de1 feat: add osh-remove-empty-folders.sh
4 years ago
Stéphane Lesimple 744bd5fa0c enh: introduce exit_fail and exit_success for shell scripts
4 years ago
Antoine Leblanc 1c8efa6590 fix: osh-accountCreate: fix typo
4 years ago
Stéphane Lesimple 7f28cce490 chore: install: remove obsolete upgrading sections
4 years ago
Stéphane Lesimple 37842c29d3 chore: packages-check.sh: remove obsolete -t and -v options
4 years ago
Stéphane Lesimple da5cb3c232 chore: packages-check.sh: implement installed pkg detection in rhel/suse, use proper pkg names
4 years ago
Stéphane Lesimple 6694518ab5 chore: remove obsolete check-ssh-hardening.pl
4 years ago
Stéphane Lesimple ae74a823f8 chore: perltidy: rewrite perl-tidy.sh to support single-file tidy
4 years ago
Stéphane Lesimple ae997dd93c chore: shellcheck: rewrite shell-check.sh and make files compliant with v0.8.0
4 years ago
Stéphane Lesimple f609565fe8 enh: batch: detect when asked to start a plugin requiring MFA
4 years ago
Stéphane Lesimple 000ed4e8af feat: move scripts to GnuPG 2.x and add tests
4 years ago
Stéphane Lesimple f8f193b298 enh: selfMFASetupPassword: add more messages for the user
4 years ago
Stéphane Lesimple e847a19857 enh: ttyrec & yubico installs: hardcode URLs for when API is down
4 years ago
Stéphane Lesimple a68ccb3f8c feat: add new OSes and deprecate old ones
4 years ago
Stéphane Lesimple aaaa173764 feat: add the accountUnlock restricted plugin
4 years ago
Stéphane Lesimple d51c4c8be0 fix: tests: full tests on FreeBSD
4 years ago
Stéphane Lesimple 7cc350b40d chore: check for spurious args in all helpers
4 years ago
Stéphane Lesimple 90dbe04dde enh: detect silent password change failures
4 years ago
Stéphane Lesimple 850152a88c enh: ensure proper Getopt::Long options are set everywhere
4 years ago
Stéphane Lesimple d4cc727f74 chore: factorize helpers header
4 years ago
Stéphane Lesimple 2c2f723bbb fix: add helpers handling of SIGPIPE/SIGHUP
4 years ago
Stéphane Lesimple 1725130a15 fix: avoid double-close log messages on HUP
4 years ago
Stéphane Lesimple 373f4907de fix: tests under OpenSUSE (fping raw sockets)
4 years ago
Christophe Crochet 98c1c79382 update of --force-password: code style cleanup
4 years ago
Christophe Crochet e9841b89bc update of --force-password: removed guest support
4 years ago
Christophe Crochet ff40617624 update of --force-password: guest support, autocompletion, new tests, code cleanups
4 years ago
Christophe Crochet e4b132ed9a new access option: --force-password <HASH>, to only try one specific password
4 years ago
Stéphane Lesimple 89ecb2c0d7 feat: add support for Duo PAM auth as MFA (#249)
4 years ago
Stéphane Lesimple 7dcbfeebc6 fix: --self-password was missing as a -P synonym (#257)
4 years ago
Stéphane Lesimple 00aa2e7efc fix: selfMFASetupTOTP: bad return func
4 years ago
Christophe Crochet d85298f229 new account option: --pubkey-auth-optional, to allow ingress login with or without pubkey when pam is required
4 years ago
madx ea8ed97a34 new account option: mfa-any, to allow ingress login with pubkey alone or pam alone instead of requiring both
4 years ago
Stéphane Lesimple a65cbd55b8 accountPIV: fix bad autocompletion rule
4 years ago
Stéphane Lesimple 8d84fce34f fix: proactive-mfa: make it work for --osh batch and --osh clush
4 years ago
Stéphane Lesimple b58388a3d9 feat: add --proactive-mfa and mfa/nofa interactive commands
4 years ago
Stéphane Lesimple f64cf79260 chore: rename an envvar for clarity
4 years ago
Stéphane Lesimple 99686499b1 feat: osh-backup-acl-keys: add the possibility to sign encrypted backups (#209)
4 years ago
Stéphane Lesimple 4a21cfc421 enh: add --max-inactive-days to accountCreate
5 years ago
Stéphane Lesimple ef10d509fd enh: add max_inactive_days to account configuration (#230)
5 years ago
Stéphane Lesimple 15cb2c2453 enh: accountInfo: add --list-groups
5 years ago
Stéphane Lesimple f1e875ca4b fix: erroneous message in connect.pl
5 years ago
Stéphane Lesimple 56d4078605 feat: add --fallback-password-delay (3) for ssh password autologin
5 years ago
Stéphane Lesimple 5930775626 enh: better error message when unknown option is used
5 years ago
Stéphane Lesimple cd5b61b239 chore: perlcritic: remove Variables::RequireInitializationForLocalVars check
5 years ago
Stéphane Lesimple 92d4a46ac5 doc: add osh-piv-grace-reaper.pl config reference
5 years ago
Stéphane Lesimple 9f28dfa977 doc: add osh-backup-acl-keys.sh config reference
5 years ago
Stéphane Lesimple 3c6ce52e8e doc: add osh-encrypt-rsync.pl config reference
5 years ago
Stéphane Lesimple 0dc448943a doc: add osh-sync-watcher.sh config reference
5 years ago
Stéphane Lesimple 9b2aa996b3 enh: better use of account creation metadata
5 years ago
Stéphane Lesimple c0bebf23d4 fix: accountCreate --uid-auto: rare case where a free UID couldn't be found
5 years ago
Stéphane Lesimple 6b4418e864 chore: fixrights: ensure tests/functional/proxy/remote-daemon is +x
5 years ago
Stéphane Lesimple 2390f56c9a chore: groupCreate: fix help message
5 years ago
Stéphane Lesimple f483b1540a enh: max account length is now 28 chars up from 18
5 years ago
thibault.dewailly 5415ed2793 Feat: Add admin and super owner accounts list in info plugin
5 years ago
Stéphane Lesimple 2f1e3fbfa8 support: del deb8/ubuntu1404/opensuse150/opensuse151, add opensuse153
5 years ago
Stéphane Lesimple d400ceeb9f doc: clush: document --user and --port
5 years ago
Stéphane Lesimple 8d2aaf8d8f fix: setup-first-admin-account.sh: support to add several admins
5 years ago
Thomas Soëte c61a3eaae9 Remove duplicate groupAddGuestAccess groupDelGuestAccess
5 years ago
Stéphane Lesimple 2e9fe9288b enh: httpproxy: add options to fine-tune logging
5 years ago
Stéphane Lesimple 45cfb78b0b fix: httpproxy: allow more passthrough headers
5 years ago
Stéphane Lesimple b364706f37 feat: httpproxy: add functional tests
5 years ago
Stéphane Lesimple d6291f3ad4 feat: httpproxy: add and use execute_simple() for more performance
5 years ago
Stéphane Lesimple 7da3ef3e25 fix: connect.pl: decode 2K bytes of the ttyrec instead of 1K to not miss messages
5 years ago
Stéphane Lesimple 3925e67d43 feat: add groupDestroy command for owners
5 years ago
Stéphane Lesimple 8cc990ad57 feat: add filtering options to several cmds,nicify print_acls()
5 years ago
Stéphane Lesimple adb9d8c374 feat: add UTF-8 chars to output when supported and allowed
5 years ago
Stéphane Lesimple 60ad30ce5b fix: install: adjust a sed to be FreeBSD 13 compliant
5 years ago
Stéphane Lesimple 344865884b fix: groupCreate: deny groups starting with 'key'
5 years ago
Stéphane Lesimple f4c59ca96b enh: setup-gpg.sh: clarify the use of ^D with --import
5 years ago
Stéphane Lesimple e865964dd2 enh: setup-encryption.sh: check that luks-config.sh exists
5 years ago
Stéphane Lesimple 68e088a607 doc: accountModify: more details on the --egress-strict-host-key-checking option
5 years ago
Jonathan Marsaud b7b2533604 accountModify - Add a new `accept-new` POLICY in egress-strict-host-key-checking parameter
5 years ago
Jérémy Lecour 3e0202d914 Fix typo in unlock-home.sh
5 years ago
Stéphane Lesimple c2b4bb192a fix: osh-help: put groupDelEgressKey in the proper category
5 years ago
Stéphane Lesimple 90d6dc2e3c fix: superowners need to have +x on group homes
5 years ago
Stéphane Lesimple e412083272 fix: accountCreate: incorrect help message (#167)
5 years ago
Stéphane Lesimple 5ec805f26b fix: groupGenerateEgressKey: --help wasn't working properly
5 years ago
Stéphane Lesimple 003052530e feat: preparatory work to support Debian 11 "Bullseye"
5 years ago
Stéphane Lesimple 1d9018ef7f fix: strict check failure was no longer detected to print a help message
5 years ago
Stéphane Lesimple 3b4ea53cce fix: fixrights.sh: 'chmod --' not supported under FreeBSD
5 years ago
Stéphane Lesimple 1b04b800b8 fix: packages-check.sh: centos: ensure cache is up to date before trying to install packages
5 years ago
Stéphane Lesimple 5920b09aed chore: mkdir -p doesn't fail if dir already exists
5 years ago
Stéphane Lesimple c5cd5d4464 fix: groupDelServer: missing autocompletion in interactive mode
5 years ago
Stéphane Lesimple 7b7c395c55 enh: osh-orphaned-homedir.sh: add more security checks to ensure we don't archive still-used home dirs
5 years ago
Stéphane Lesimple 7dabfc7135 fix: install-yubico-piv-checker: ppc64le installation was broken
5 years ago
Stéphane Lesimple 255f0684cc fix: scp: abort early if host is not found to avoid a warn()
5 years ago
Stéphane Lesimple 6ae85d5afd fix: osh-backup-acl-keys: detect file removed transient error
5 years ago
Stéphane Lesimple b444dc027f chore: tests: support multiple unit-tests
5 years ago
Stéphane Lesimple 4fd010c355 chore: microfixes after review
5 years ago
Stéphane Lesimple 8a0f7c6b4f fix: accountInfo: get rid of a warn()
5 years ago
Stéphane Lesimple edb1b77dfc feat: auto-add hostname as comment in groupAddServer / selfAddPersonalAccesss
5 years ago
Stéphane Lesimple 383f2a011c enh: guests: groupAddGuestAccess now supports setting a comment
5 years ago
Stéphane Lesimple 9216e2db1b enh: groupAddServer: augment the returned JSON with the added server details
5 years ago
Stéphane Lesimple ed77c1ef3e feat: transmit PIV enforcement status to remote realms
5 years ago
Stéphane Lesimple 5eb5135d26 doc: update
5 years ago
Stéphane Lesimple e760cf6142 feat: add groupGenerateEgressKey and groupDelEgressKey
5 years ago
Stéphane Lesimple e235199715 fix: groupModify: deny early if user is not an owner of the group
5 years ago
Stéphane Lesimple 7eeccb7c5d enh: groupInfo: nicer message when no egress key exists
5 years ago
Stéphane Lesimple 70feff2c2d enh: install: use in-place overwrite for sudoers files
5 years ago
Stéphane Lesimple efe3710e4c feat: groupList/accountList: add --include --exclude
5 years ago
Stéphane Lesimple 148d5206e5 enh: rootListIngressKeys: look for all well-known authkeys files
5 years ago
Stéphane Lesimple 69778815bb enh: groupList: use cache to speedup calls
5 years ago
Stéphane Lesimple 141791db92 fix: scripts: (( )) returns 1 if evaluated to zero
5 years ago
Stéphane Lesimple d04b15a19e fix: tocttou in ttyrec rotation script
5 years ago
Stéphane Lesimple 361c6a37a2 fix: osh-lingering-sessions-reaper.sh: tocttou on kill could terminate the script early
5 years ago
Pierre Kuhner e7e045a40d fix: confusing error messages in groupDelServer
5 years ago
Stéphane Lesimple 1129850771 fix: global-log: directly set proper perms on file creation
5 years ago
Stéphane Lesimple 1676979913 feat: add PIV keys support and policy enforcement
5 years ago
Stéphane Lesimple 62d6393d56 feat: add yubico-piv-checker install script
5 years ago
Stéphane Lesimple 41121f7723
fix: proper sqlite log location for invalid realm accounts
5 years ago
Stéphane Lesimple e8d60810f1
Merge pull request #111 from ovh/perluseall
5 years ago
Stéphane Lesimple b4f32d5afe
Merge pull request #110 from ovh/aclbackup
5 years ago
Stéphane Lesimple 16323667e2
Merge pull request #106 from ovh/logs
5 years ago
Stéphane Lesimple 8e7fc9b949
chore: perl-use-all: dynamically find required modules
5 years ago
Stéphane Lesimple 9a10ddebd9
enh: satellite scripts: better error handling
5 years ago
Stéphane Lesimple a479810d83
feat: revamp logs
5 years ago
Stéphane Lesimple 2cfde997f3 fix: realmDelete: bad sudoers configuration
5 years ago
Stéphane Lesimple 81db4b10bb feat: realms: use remote bastion MFA validation information for local policy enforcement
5 years ago
Stéphane Lesimple 16f42221ca
feat: add LC_BASTION_DETAILS envvar
5 years ago
Stéphane Lesimple a204313af9
feat: accountModify: add --osh-only (closes #97)
5 years ago
Stéphane Lesimple 03ad1da046
chore: perlcritic: including forgotten .inc files
5 years ago
Stéphane Lesimple a676692fe6
chore: fix an error message
5 years ago
Stéphane Lesimple fdb786d62c
Merge pull request #89 from ovh/dev/aleblanc/bin-helper-osh-account-delete
5 years ago
Stéphane Lesimple 790802e6da
fix: osh.pl: plugin_config 'disabled' key is a boolean
5 years ago
Antoine Leblanc 82f2c96ea6
fix: osh-accountDelete: fix typo
5 years ago
Stéphane Lesimple e2186978da
fix: sudogen: don't check for account/groups validity too much when deleting them
5 years ago
Stéphane Lesimple c68b696702
chore: shellcheck & perltidy
5 years ago
Stéphane Lesimple 7707b1c351
fix: osh-groupCreate: fix for centos 8.3
5 years ago
Stéphane Lesimple 457a8fae82
chore: packages-check: remove unused packages
5 years ago
Stéphane Lesimple dca45a44c5
chore: fix latest centos 8 release, add tests for last 3 minors
5 years ago
Stéphane Lesimple c4d2cea3b0
fix: packages-check: centos8: handle new repo names
5 years ago
Stéphane Lesimple 8276f3878d
Merge pull request #76 from ovh/fixsudoers
5 years ago
thibault.dewailly 1e32cfde7d osh-encrypt-rsync: Remove logfile as mandatory parameter
5 years ago
Stéphane Lesimple 50c016be10
fix: sudogen: properly handle accounts & groups containing '.'
5 years ago
Stéphane Lesimple 526a5d0389
fix: sudogen: proper detection of OS-specific templates
5 years ago
Thomas Soëte 9647ae9cdb
fix: Fix 'selfAddPersonalAccess' helptext
5 years ago
Stéphane Lesimple 4cb09a9570
nh: remove hardcoded .ssh/authorized_keys2 everywhere
5 years ago
Stéphane Lesimple 71cd9a46df
Merge branch 'master' into autocompletion
5 years ago
Stéphane Lesimple 9fb6b8d444
enh: accountCreate: handle --uid-auto in autocompletion rules
5 years ago
Thomas SOËTE ef531308d5 enh: doc: add from parameter as it is mandatory
5 years ago
Stéphane Lesimple f07e00b1e9
Merge branch 'master' into adminSudo
5 years ago
Stéphane Lesimple e2a64a9d8f
enh: adminSudo: better autocompletion rules
5 years ago
Thomas SOËTE 2a51a78b54 fix: Enable perl-tidy.sh test
5 years ago
Stéphane Lesimple d0e7e9046b
enh: httpproxy: add informational headers to the egress side request
5 years ago
Stéphane Lesimple 15cad00c27
fix: osh.pl: validate user and host format
5 years ago
Stéphane Lesimple 396e0d2d32
Merge branch 'master' into backupfix
5 years ago
Stéphane Lesimple 5d3de83e50
fix: osh-encrypt-rsync.pl: allow more broad chars to avoid letting weird-named files behind
5 years ago
Stéphane Lesimple e907532447
fix: osh-backup-acl-keys.sh: don't exclude .gpg, or we'll miss /root/.gnupg/secring.gpg
5 years ago
Stéphane Lesimple 8f60646c65
feat: add interactiveModeByDefault option
5 years ago
Stéphane Lesimple d6be60e4a2
Merge branch 'master' into centos
5 years ago
Stéphane Lesimple 60d0f12018
Merge branch 'master' into freebsd
5 years ago
Stéphane Lesimple 1a5404cf75
Merge branch 'master' into sort-selfListSessions-output
5 years ago
Thomas SOËTE 632076565e Fix sort of the list of past sessions
5 years ago
Stéphane Lesimple 4fd24a3dbc
enh: install: freebsd: check whether acls are enabled
5 years ago
Stéphane Lesimple 231c62b581
feat: install: add SELinux module for TOTP MFA
5 years ago
Stéphane Lesimple 615f26af8b enh: freebsd: use ttyrec prebuild static version
5 years ago
Stéphane Lesimple cb02fd2a33 fixes after review
5 years ago
Stéphane Lesimple 1b164c1197 fix typo
5 years ago
Stéphane Lesimple 0b0200951e enh: sudoers: support per-OS templates, add one for FreeBSD
5 years ago
Stéphane Lesimple 7085b2d091 fix: osh.pl: fix pamtester use under FreeBSD
5 years ago
Stéphane Lesimple 60cea897f8 enh: osh.pl: replace harcoded selfMFASetupPassword logic by configuration
5 years ago
Stéphane Lesimple ee81bd4070 enh: packages-check.sh: better handling of FreeBSD packagees
5 years ago
Stéphane Lesimple 7ee203aa71 enh: install-ttyrec.h: error msg for non-supported OSes
5 years ago
Stéphane Lesimple 9f1a8b925e enh: install: better handling of non-Linux standard paths
5 years ago
Stéphane Lesimple 234dd0768a feat: freebsd: add specific FreeBSD ssh config templates
5 years ago
Stéphane Lesimple 09bd6dffd9 fix: freebsd: add md5sum_compat()
5 years ago
Stéphane Lesimple 4105c10193 fix: freebsd: replace 'root' by '0' so that it works even if uid0's name is not root
5 years ago
Stéphane Lesimple 811b2f9c15
Merge branch 'master' into master
5 years ago
Stéphane Lesimple 418dc3a332 feat: add more archs to dockerhub sandbox
5 years ago
snk33 7685114cfd
allow adminSudo plugin to read from stdin
5 years ago
Stéphane Lesimple cfef70daef
chore: install-ttyrec.sh: adapt for multiarch
5 years ago
Stéphane Lesimple 5c72c92bdd
chore: fix typos everywhere
5 years ago
Stéphane Lesimple 619000fa84
enh: install-ttyrec.sh replaces build-and-install-ttyrec.sh
5 years ago
Stéphane Lesimple 202790367d enh: packages-check.sh: add qrencode-libs for rhel/centos
5 years ago
Thomas Soëte 9a23c1ce6a
Add missing dev package
5 years ago
Stéphane Lesimple d3a7818046
Merge pull request #10 from ovh/issue-8
5 years ago
Stéphane Lesimple 4b8b1457e9
fix: accountModify is master-only
5 years ago
Romain Beuque cb1e54b42a
clush: change description for --no-pause-on-failure to represent the actual behavior
5 years ago
Stéphane Lesimple e453377245
chore: add some documentation and fix a few comments
5 years ago
Thomas Soëte e766a54a35 Enhance osh-sync-watcher logs
5 years ago
Stéphane Lesimple fde20136ef
Initial commit
5 years ago