74 Commits

Author SHA1 Message Date
raviks789
3fcb20178f
Apply correct restrictions to REST url endpoints
The following url end points should apply relevant restrictions to filter out objects and show correct HTTP status code:
- icingaweb2/director/service, if the host name is left out of the query (Example: icingaweb2/director/service?name=service-name)
- icingaweb2/directore/notification
- icingaweb2/director/serviceset
- icingaweb2/director/scheduled-downtime
2025-01-24 12:21:41 +01:00
Eric Lippmann
00985429c5 Fix PSR-12 violations 2024-10-22 14:31:14 +02:00
Sukhwinder Dhillon
d26a619577 ServiceController: Use given properties to get host/service name 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
4e6528e862 ServiceController: Remove redudant if condition 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
9baa3c4341 Remove redudant class MonitorBackendMonitoring and adjuct code accordigly
- Use class `Monitoring` instead
- Remove not in use methods from `MonitorBackend` interface and from classes that implements this interface
- Add param types and return type hint to methods
2024-01-15 16:24:27 +01:00
Tobias Tiederle
1c6090193d add support for icingadb as only icingaweb2 data backend 2023-12-04 10:12:54 +01:00
EmTeedee
6b7bff80de ${var} deprecated in favor of {$var}
See: https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation
2023-07-19 10:44:40 +02:00
Thomas Gelf
40254714b8 Permissions: refactor, fix monitoring module checks
fixes #2712
2023-02-23 11:51:53 +01:00
Thomas Gelf
4e1cc13320 ServiceController: enableStaticObjectLoader earlier 2022-09-20 12:16:20 +02:00
Thomas Gelf
b444ec0101 IcingaObjectHandler: allowOverrides for REST API
fixes #2569
2022-07-20 11:58:17 +02:00
Thomas Gelf
349cc33046 ServiceController: throw 404 2022-07-19 12:07:49 +02:00
Thomas Gelf
4c502bb010 ServiceController: do not pass object type...
...when looking up uuid for legacy key

refs #2487
refs #2554
2022-06-24 14:33:38 +02:00
Thomas Gelf
961a46a6cc ServiceController: ask DbObjectTypeRegistry 2022-02-06 19:15:09 +01:00
Thomas Gelf
9bb600c13b ServiceController: drop obsolete method 2022-02-06 15:32:48 +01:00
Thomas Gelf
c487a8b447 ServiceController: refactor loading for related...
...objects

refs #2452
2021-12-23 13:47:29 +01:00
Thomas Gelf
1cbb033911 ServiceController: load Set and Host before...
...the service, which get's loaded in the parent class

fixes #2452
fixes #2449
2021-12-23 10:25:59 +01:00
Thomas Gelf
376344257c DbObjectStore: inject into DbObject for related...
...objects in a branch
2021-12-17 12:51:24 +01:00
Thomas Gelf
60104327bf ObjectController: add some branch-related hints 2021-12-14 10:46:52 +01:00
Thomas Gelf
cb16733420 ServiceController: make sure to set branch and...
...host on Service Form
2021-11-24 11:52:07 +01:00
Thomas Gelf
e29c025d64 Service/TemplateController: fix links, use uuids
fixes #2411
2021-10-18 07:27:28 +02:00
Thomas Gelf
cbc67439d8 ServiceController: remove debugging break 2021-10-12 13:42:33 +02:00
Thomas Gelf
20bb6dfc7f ServiceController: branch-related refactoring 2021-10-05 23:33:30 +02:00
Thomas Gelf
ab28a4b1db ServiceController: enforce optional monitoring...
...module permissions
2021-10-05 23:33:30 +02:00
Thomas Gelf
c27d9c7387 Monitoring, various: use monitoring permissions
fixes #2304
2021-03-18 07:01:42 +01:00
Thomas Gelf
606d71501e Use ipl, try to keep dipl compatibility 2019-09-11 23:02:39 +02:00
Thomas Gelf
e1565c9990 Revert "Merge branch 'next'"
This reverts commit f45f925e5e1dbfec627345868d0dd56abc77c4f1, reversing
changes made to 90c07943e4173ef8e32dae5087203f5a712f8077.

This was too early, need to check for incubator
2019-09-06 09:54:03 +02:00
Thomas Gelf
17f8ef1dd0 Use ipl, try to keep dipl compatibility 2019-09-06 09:48:11 +02:00
Thomas Gelf
a492073d8e ServiceController: consistent naming for foreign
...tab

fixes #1312
2018-10-30 19:45:57 +01:00
Thomas Gelf
77cbb1040c GroupMemberTable: should work for services also
refs #1682
2018-10-25 08:21:58 +02:00
Thomas Gelf
885f76715a ActionController: cleanup 2018-06-07 23:37:28 +02:00
Thomas Gelf
4f8c60bb46 various: cleanup, sop using deprecated methods 2018-05-05 00:24:49 +02:00
Thomas Gelf
d1e116a5a1 ipl: rename to dipl
fixes #1217
2017-10-09 15:23:27 +02:00
Thomas Gelf
89660a500a ServiceController: trust the id if given
This way we are able to load invalid objects

fixes #1172
2017-09-12 10:32:14 +02:00
Thomas Gelf
71ab8b4663 ServiceController: set ServiceSet for new service
...added to a Set

fixes #1097
2017-08-23 08:41:41 +02:00
Thomas Gelf
86b9f8e963 ServiceController: pass Set to ServiceForm if any
fixes #1031
2017-08-21 10:32:58 +02:00
Thomas Gelf
1a72e89f05 controllers: refactor even more of them 2017-08-16 23:51:15 +02:00
Thomas Gelf
e1d766f112 ServiceController: improve ObjectTabs handling 2017-07-29 00:13:20 +02:00
Thomas Gelf
f2ad5884ea IcingaAppliedServiceTable: base on ipl 2017-07-26 09:22:41 +02:00
Thomas Gelf
53a9624db6 Service: links, actions 2017-07-20 17:00:03 +02:00
Thomas Gelf
9166bebd2c ServiceController: fix clone link, remove useless
...code
2017-07-14 13:21:42 +02:00
Thomas Gelf
0cf6676c3c Host/Service/ObjectController: use more ipl 2017-07-14 13:21:42 +02:00
Thomas Gelf
8f8c8bf841 ServiceController: avoid loop detection error...
...for fake services generated with the `use_var_overrides` property

fixes #820
2017-02-27 19:06:48 +01:00
Thomas Gelf
b7a10d296c phpcs: mostly new PSR-2 SpacingAfter/Before checks 2017-01-13 20:54:52 +01:00
Thomas Gelf
b226ed1341 ServiceController: provide a link back for...
...services on hosts
2017-01-13 16:10:55 +01:00
Thomas Gelf
ef90fea506 ServiceController: provide a 'back'-link for...
...services belonging to a single host
2017-01-02 11:20:28 +01:00
Thomas Gelf
4501935040 ServiceController: fix issue with hidden feature
Services imported with use_var_overrides used to throw an error since we
introduced the new template resolver
2017-01-02 11:09:15 +01:00
Thomas Gelf
1683f63e8c ServiceController: give IDEs some hint 2016-12-06 08:54:13 +01:00
Thomas Gelf
4bf26b421d services: provide deploy buttons
fixes #13315
2016-11-25 20:55:48 +01:00
Thomas Gelf
065205dc7a ServiceController: ignore command lookup errors
They can happen when an invalid command has been chosen
2016-11-18 19:54:47 +01:00
Thomas Gelf
14908d11a4 ServiceController: disable overview for now 2016-11-16 16:17:18 +01:00