Commit graph

10 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
Sukhwinder Dhillon
eb7179ffd8 RedundancyGroupSummary: Use DepenedecyNode as base to apply restrictions correctly
* RedundancyGroupSummary:
  - Columns are same as in DependencyNodeSummary. Column `redundancy_group.state.failed` excluded because not required here.
  - Don't sort by default. Sorting the summary is not necessary and even fails for PostgreSQL as it would require adding the column to the GROUP BY clause.
  - Introduce new method for(), to easily get the summary query for given group id. Adjust filter. The summary is always for parent (member).
2025-06-17 15:08:48 +02:00
Johannes Meyer
ee304ab34b RedundancyGroup: Fetch summary as part of a default property 2025-03-28 16:13:16 +01:00
raviks789
46577ff26b Add column environment_id to the models related to the dependency feature 2025-01-14 11:43:12 +01:00
Johannes Meyer
945eb5f9ae db: Update models to reflect latest schema updates 2024-12-17 17:50:42 +01:00
Sukhwinder Dhillon
e426edde85 Models: Add missing columns and methods
RedundancyGroupSummary: Add columns for `(un)acknowledged` count
2024-11-14 16:35:07 +01:00
Johannes Meyer
e96f2a4dfc add-some-mssing-reltions 2024-11-14 15:46:11 +01:00
Johannes Meyer
56180b4ae8 db: Cleanup parent/child relations in matching models
The previous relations didn't work as expected.
Now, filtering with `child.host.name` or
`parent.service.name` works fine.
2024-10-08 16:30:04 +02:00
Johannes Meyer
e42fb6d199 db: Add model for table redundancy_group 2024-10-08 16:30:04 +02:00