705 Commits

Author SHA1 Message Date
raviks789
8d9ecf3b0a
Apply relevant restrictions on 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-03-26 11:12:15 +01:00
Thomas Gelf
3d1ad3dbfc BranchController: ensure object type is set first
fixes #2142
fixes #2634
2022-11-03 10:26:11 +01:00
Thomas Gelf
045b0fa7d6 SelfServiceController: check for null values
fixes #2614
2022-10-27 11:54:28 +02:00
raviks789
11b0ab8ec4 Reset Limit count and offset for $table in HostController::servicesAction
The limit in ObjectsTable::prepareQuery() limits the number of services shown in HostController::servicesAction.
But this limit is required for pagination in ServicesController. Hence, reset the limit when this query is used
in HostController::servicesAction().
2022-10-07 09:58:59 +02:00
Thomas Gelf
c56b190469 ServicesetController: allow branch access 2022-09-20 12:54:28 +02:00
Thomas Gelf
25f961a4c8 HostController: allow to add Sets 2022-09-20 12:50:37 +02:00
Thomas Gelf
4e1cc13320 ServiceController: enableStaticObjectLoader earlier 2022-09-20 12:16:20 +02:00
Thomas Gelf
f301be425c HostController: pass branch to forms 2022-09-20 12:16:00 +02:00
Thomas Gelf
3c7c7bc61a ServicesetController: stringify uuid once 2022-09-05 12:23:13 +02:00
Thomas Gelf
0f2045c8f6 SyncruleController: fix preview logic 2022-08-31 14:45:28 +02:00
Thomas Gelf
b2afca2496 Sync: support branches 2022-08-31 14:45:28 +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
56f81b91bb Exporter: centralize export logic
fixes #2549
2022-06-24 12:52:35 +02:00
Thomas Gelf
93d0afff10 SyncruleController: useless use of use 2022-04-04 19:39:47 +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
fc6f8740fb ServicesetController: no service access in branch 2022-02-06 13:43:20 +01:00
Thomas Gelf
274c153837 various: PHP8.1-related warnings 2022-01-10 11:44:33 +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
7d68f8014b ServicesetController: one more PHP 8.1 warning 2021-12-23 10:06:38 +01:00
Thomas Gelf
f77d5b8d0c HostController: show services for hosts created...
...in a branch
2021-12-17 13:57:18 +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
56d052a804 HostController: translate untranslated string 2021-12-17 11:47:20 +01:00
Thomas Gelf
7f22c12f9f Host/ObjectController: no sets in branches 2021-12-17 08:06:20 +01:00
Thomas Gelf
60104327bf ObjectController: add some branch-related hints 2021-12-14 10:46:52 +01:00
Thomas Gelf
68cf42490f Importsource: some more branch-related hints 2021-12-14 08:36:08 +01:00
Thomas Gelf
27abbb59a0 ObjectsTableService: replace HostServiceTable
This removes duplicate logic and shows services created in config
branches
2021-12-13 14:11:35 +01:00
Thomas Gelf
100bc4b777 library: php8-related cleanup 2021-12-06 23:03:06 +01:00
Ravi Kumar Kempapura Srinivasa
388c79e430 Add uuid to service sets. 2021-11-28 11:15:31 +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
4916ce3529 SuggestController: apply HostGroup restrictions 2021-10-18 07:46:00 +02: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
6a68a2c3d8 ConfigController: no branch activity when...
...for id ranges
2021-10-05 23:33:30 +02:00
Thomas Gelf
83617b22e8 HostController: services on new branch host, hint 2021-10-05 23:33:30 +02:00
Thomas Gelf
97b2f6c946 CommandController: branch support, argument table 2021-10-05 23:33:30 +02:00
Thomas Gelf
78fd6afe94 ImportsourceController: add branch-related hint 2021-10-05 23:33:30 +02:00
Thomas Gelf
098f620802 JobController: not in Branches, formatting 2021-10-05 23:33:30 +02:00
Thomas Gelf
c994610031 DirectorObjectForm: hidden id field, start...
...fading it out - don't want to see this here
2021-10-05 23:33:30 +02:00
Thomas Gelf
2e069ef127 TemplatechoiceController: not in branches 2021-10-05 23:33:30 +02:00
Thomas Gelf
13f6ff6131 KickstartController: not in branches 2021-10-05 23:33:30 +02:00
Thomas Gelf
30bbf0836d BranchController: refactored, use new classes 2021-10-05 23:33:30 +02:00
Thomas Gelf
c2d7b235a5 IcingaConfigDiff: replace duplicate code 2021-10-05 23:33:30 +02:00
Thomas Gelf
430f54837b DeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branch
2021-08-25 11:38:29 +02:00
Thomas Gelf
a851f58e42 ConfigController: no rendering, no deployment...
...for branches
2021-08-25 11:33:23 +02:00