Commit graph

27 commits

Author SHA1 Message Date
Alexander A. Klimov
3c8ed68cc6 Upgrade license from GPLv2 to GPLv2+
This was easy because only README.md and doc/01-About.md were redacted manually, everything else via:
git ls-files -z |xargs -0 perl -pi -e 's/Icinga GmbH \| GPLv2/Icinga GmbH | GPLv2+/'

This is legal because we have only merged PRs with label:cla/signed or made by Icinga staff:
https://github.com/Icinga/icingadb-web/pulls?page=1&q=is%3Apr+is%3Aclosed+-label%3Acla%2Fsigned+-author%3Anilmerg

This has no risk for us in people distributing their own version under GPLv3 only.
After all, we won't take their patches anyway, unless they sign our CLA.

This is the cleanest solution for having e.g. these in one address space:

* Icinga Web, GPLv2+
* K8s Web, AGPLv3
* Thirdparty, some LGPLv3 and Apache-2.0

Apropos, K8s Web is even v3-licensed on purpose, to have a stronger protection against cloud ops.
2025-11-21 13:31:24 +01:00
Johannes Meyer
5e982dad40
Merge commit from fork
* Auth: Add method `assertColumnRestrictions`

* ObjectSuggestions: Do not suggest protected variables

`assertColumnRestrictions` does not allow to use them
anymore, hence we should not suggest them in searches
as well to not to let the user run into an error by
accepting a suggestion. Though, when fetching values
as well, we still have to obfuscate, otherwise protected
vars won't show up in details anymore.

* Introduce Icinga\Module\Icingadb\Common\Model

Must be used as base for all models, to ensure
column restrictions are asserted on filters.

* Utilize `Icinga\Module\Icingadb\Common\Model` where applicable
2025-10-16 08:42:51 +02:00
Johannes Meyer
0148f4f510 db: Use an alias for *_customvar through tables
fixes #1162
2025-07-14 15:47:45 +02:00
Sukhwinder Dhillon
0e7c4fcc2d
Change column defination labels of user and usergroup (#1224) 2025-06-17 15:05:39 +02:00
Sukhwinder Dhillon
cdbaea02a6
UserDetail: add missing information (#1031)
fixes https://github.com/Icinga/icingadb-web/issues/1010
2024-07-22 17:28:11 +02:00
Johannes Meyer
66877a6ed0 Model: Fix @property annotations 2024-03-14 11:52:09 +01:00
Sukhwinder Dhillon
89c0bb0686 Models: Add property type hints so that phpstan can scan correctly 2024-03-13 16:34:21 +01:00
Sukhwinder Dhillon
f675d539f2
Enhance global search (#756)
* Controllers: Remove not required method call `handleSearchRequest()`

These controller do not support global search

* Models: Add `display_name` to default search columns

* Controller: Add ´$additionaColumns` param to method handleSearchRequest() and prepareSearchFilter()

* TacticalController: Remove superfluous override of method `prepareSearchFilter()`
2023-05-30 15:26:00 +02:00
Johannes Meyer
c3ae7d523b More column label enhancements 2022-07-14 15:44:28 +02:00
Johannes Meyer
10577631b3 Enhance column labels 2022-07-11 17:31:53 +02:00
Johannes Meyer
462af082d7 Introduce Icinga\Module\Icingadb\Model\Vars 2022-06-09 15:16:34 +02:00
Johannes Meyer
47332faffa Model: Rename getMetaData into getColumnDefinitions 2022-06-09 13:24:41 +02:00
Eric Lippmann
d0d9a5edc0 Drop Binary behavior
Now part of ipl-orm.
2022-05-24 16:04:23 +02:00
Eric Lippmann
c859ec3a0d Add Binary behavior for binary columns 2022-05-24 16:04:23 +02:00
Johannes Meyer
9192ae57f2 Model: Define missing vars relation for some models 2021-01-14 11:17:08 +01:00
Johannes Meyer
2a3aab2dc6 Model: Define missing search columns for some models 2021-01-14 11:17:08 +01:00
Johannes Meyer
db43c43d47 User: Implement getMetaData() 2021-01-14 11:12:11 +01:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Johannes Meyer
2b44ecbea6 Establish relation between user <-> notification_history 2020-03-10 10:08:09 +01:00
Eric Lippmann
df1a5d87e5 User: Use and adjust getDefaultSort() in favor of removed getSortRules() 2019-12-11 16:13:56 +01:00
Johannes Meyer
2ccd956366 User: Use notification_recipients as junction for notifications 2019-12-04 16:22:47 +01:00
Johannes Meyer
f0aa99064f Model: Drop now obsolete checksum columns 2019-12-04 13:43:16 +01:00
Johannes Meyer
5d2ed45e19 User: Use behavior Bitmask for states and types 2019-12-03 09:55:48 +01:00
Johannes Meyer
1764087063 Model: Provide routes for restrictions in all models 2019-12-03 09:55:48 +01:00
Johannes Meyer
cac4fd2908 Model: Adjust BelongsToMany::setThrough() usages
So they'll use `BelongsToMany::through()` now
2019-11-19 14:22:17 +01:00
Eric Lippmann
77b4930098 Rename to Icingadb 2019-11-05 01:07:30 +01:00
Eric Lippmann
10f58fb4a0 Rename library/Eagle to library/Icingadb 2019-11-05 01:06:28 +01:00
Renamed from library/Eagle/Model/User.php (Browse further)