icingaweb2/library/Icinga
Eric Lippmann 3361cac59a CLI: Setup fake auth
Since version 2.7.x CLI actions load all enabled modules automatically.
This includes launching configuration.php and run.php. Though code
in those files should be restricted to a supported set of functions,
module devs may write any code here. If a module requires authentication
in those files, CLI actions fail because there is no auth possible.
With this patch, we setup a fake user named "cli" w/o any permission when
running CLI actions.
2020-03-02 14:16:28 +01:00
..
Application CLI: Setup fake auth 2020-03-02 14:16:28 +01:00
Authentication Introduce Auth::setUser() 2020-03-02 14:15:53 +01:00
Chart swag: Fix violations of PSR-12 2019-12-04 11:28:08 +01:00
Cli Optimize imports 2019-07-12 14:23:41 +02:00
Data FilterExpression: Pass used delimiter to `preg_quote` 2020-03-02 08:39:46 +01:00
Date Add $requireTime to timeAgo() and timeSince() too 2019-07-15 10:11:52 +02:00
Exception IcingaException::getConfidentialTraceAsString(): respect functions which don't take args "by definition" 2018-02-13 12:46:06 +01:00
File Merge pull request #4049 from Icinga/fix/pdfexport-hooks-may-cause-bad-loading-times 2020-01-16 09:02:31 +01:00
Legacy dashboard: Use the non-translated versions of pane and dashlet names for storage 2019-07-18 08:33:35 +02:00
Protocol LdapConnection: Ignore unknown vendor upon inspection 2020-01-13 13:46:32 +01:00
Repository swag: Fix violations of PSR-12 2019-12-04 11:28:08 +01:00
Security Change all license headers to only reflect a file's year of creation 2016-02-08 15:41:00 +01:00
Test BaseTestCase: Read db host and port from env vars if available 2020-01-21 14:13:15 +01:00
User Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Util swag: Fix violations of PSR-12 2019-12-04 11:28:08 +01:00
Web Merge pull request #4049 from Icinga/fix/pdfexport-hooks-may-cause-bad-loading-times 2020-01-16 09:02:31 +01:00
User.php User: Don't return true if any permission is granted and `*` is required 2019-12-05 08:44:33 +01:00