Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

chore(release): merge release-21.10.next into 21.10.x #11820

Merged
merged 41 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
be3ef28
fix(git): resync 21.10.x to dev-21.10.x (#11499)
kduret Aug 4, 2022
fe3a65f
fix(test): wait 8s before checking downtime is active in rest api v1 …
kduret Aug 4, 2022
ee32f7c
fix(UI): Include host_id when selecting ServiceGroups on dashreports …
emabassi-ext Aug 4, 2022
0804526
[SNYK] Sanitize and bind centreonGraph class queries (#11409) (#11518)
emabassi-ext Aug 4, 2022
d602637
[Snyk] Sanitize and bind ACL action access queries (#11385) (#11515)
emabassi-ext Aug 4, 2022
507a256
fix(cron): Escape database name in CentACL 21.10.x (#11509)
hyahiaoui-ext Aug 4, 2022
8181c45
fix(pendo): correctly set locale when language is detection by browse…
jeremyjaouen Aug 5, 2022
8f426cf
fix(test): fix random fails on virtual metric test (#11524)
kduret Aug 5, 2022
8fbc5e9
enh(platform): Use API to select metrics in virtual metrics configura…
hyahiaoui-ext Aug 5, 2022
bb48f69
doc(ack): acknowledge Hakaï security (#11539)
sc979 Aug 8, 2022
007e253
fix(web): fix the comment deletion for host monitored by poller (#111…
kduret Aug 10, 2022
c03f301
SNYK: Sanitize and bind Broker listing queries (#11551)
hyahiaoui-ext Aug 11, 2022
2c66074
fix(conf) fix encoding in template service listing (#11558) (#11565)
a-launois Aug 11, 2022
59b3b3c
SNYK: Sanitize and bind generateImage queries (#11562)
hyahiaoui-ext Aug 11, 2022
6390687
SNYK: Sanitize and bind ACL actions queries (#11548)
hyahiaoui-ext Aug 11, 2022
c08f72c
MON-14501 - sanitize query in centreonXmlbgRequest class (#11571)
emabassi-ext Aug 11, 2022
1e04957
SNYK: Sanitize and bind Meta-Services dependency queries (#11568)
emabassi-ext Aug 11, 2022
3d7dc9b
chore(release): merge release 21.10.9 into 21.10.x (#11628) (#11629)
chgautier Aug 26, 2022
3d58bf2
query sanitized in listServiceCategoriesà (#11597) (#11633)
emabassi-ext Aug 29, 2022
1f54f65
Sanitize and bind listVirtualMetrics queries (#11648)
emabassi-ext Aug 30, 2022
8d0309a
sanitize insrert queries in db-func (#11651)
emabassi-ext Aug 30, 2022
544e13f
Sanitized and bound queries in service argumentsXml file (#11654)
emabassi-ext Aug 30, 2022
884779b
sanitize and bind host categories query (#11644)
emabassi-ext Aug 30, 2022
edc03c6
Fix encoding issue on status serviceXML (#11582)
TamazC Aug 30, 2022
6f72388
sanitize and bind in centreon connector query (#11636)
emabassi-ext Sep 1, 2022
20085ac
chore(git): update codeowners (#11593)
sc979 Sep 1, 2022
4bec859
fix(conf) fix parent template display in service template listing (#1…
a-launois Sep 2, 2022
7787930
fix(poller): fix remote server duplication (#11552) (#11675)
kduret Sep 5, 2022
e8354c7
fix(clapi): Check that user is admin to use clapi (#11631) (#11639)
jeremyjaouen Sep 5, 2022
9c5a1a0
Fix: Sanitize and bind service group dependecies queries 21.10.x (#11…
hyahiaoui-ext Sep 5, 2022
e52007c
fix(widgets): retrieve possibility to not select poller in pref (#116…
kduret Sep 6, 2022
b42d29a
Fix: In Acces group the second select not working [ACL] 21.10.x (#11710)
hyahiaoui-ext Sep 7, 2022
7a37565
fix(details): remove dead code (#11672) (#11685)
adr-mo Sep 8, 2022
f552e56
fix(details): second part of code cleanup for "tools" (#11718) (#11722)
adr-mo Sep 8, 2022
237f599
FIX: Sanitize and bind graph configuration queries 21.10.x (#11730)
hyahiaoui-ext Sep 9, 2022
a22ad91
Fix: Sanitize and bind CLAPI poller configuration 21.10.x (#11732)
hyahiaoui-ext Sep 9, 2022
8c6ae51
FIX: Sanitize and bind Meta Service configuration 21.10.x (#11734)
hyahiaoui-ext Sep 11, 2022
98187b3
[Fix]:Sanitize and bind queries in template of service listing (#11745)
emabassi-ext Sep 12, 2022
095dda9
fix(resource): Fix bad SQL request (#11702) (#11750)
callapa Sep 13, 2022
36c0f9a
FIX: Sanitize and bind command configuration queries 21.10.x (#11755)
hyahiaoui-ext Sep 13, 2022
976dc7f
Merge branch '21.10.x' into release-21.10.next
jeremyjaouen Sep 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/.github/ @centreon/centreon-ci
/.git* @centreon/centreon-ci
/.project @centreon/centreon-ci
/Jenkinsfile @centreon/centreon-ci
/selinux/ @centreon/centreon-ci
/project/ @centreon/centreon-ci
*.sh @centreon/centreon-ci
/.github/ @centreon/centreon-devops
/.git* @centreon/centreon-devops
/.project @centreon/centreon-devops
/Jenkinsfile @centreon/centreon-devops
/selinux/ @centreon/centreon-devops
/project/ @centreon/centreon-devops
*.sh @centreon/centreon-devops

*.po @ghost
*.po @centreon/centreon-documentation

/src/ @centreon/centreon-php
/config/ @centreon/centreon-php
Expand Down
2 changes: 0 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,4 @@ try {
"*COMMIT*: <https://github.com/centreon/centreon/commit/${source.COMMIT}|here> by ${source.COMMITTER}\n" +
"*INFO*: ${e}"
}

currentBuild.result = 'FAILURE'
}
1 change: 1 addition & 0 deletions SECURITY_ACK.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Centreon reserves the right to make final decisions regarding publishing acknowl

<h3> 2022 </h3>

* 2022/05/23 - Lucas Carmo and Daniel França Lima from [Hakaï Security](https://www.hakaioffensivesecurity.com/)
* 2022/02/16 - Anonymous working with Trend Micro Zero Day Initiative

<h3> 2021 </h3>
Expand Down
2 changes: 1 addition & 1 deletion bin/registerServerTopology.sh
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ function request_to_remote() {
fi

# Prepare Remote Payload
REMOTE_PAYLOAD='{"isRemote":true,"platformName":"'"${CURRENT_NODE_NAME}"'","centralServerAddress":"'"${PARSED_URL[HOST]}"'","apiUsername":"'"${API_USERNAME}"'","apiCredentials":"'"${API_TARGET_PASSWORD}"'","apiScheme":"'"${PARSED_URL[SCHEME]}"'","apiPort":'"${PARSED_URL[PORT]}"',"apiPath":"'"${CENTREON_BASE_URI}"'",'"${PEER_VALIDATION}"
REMOTE_PAYLOAD='{"isRemote":true,"address":"'${PARSED_CURRENT_NODE_URL[HOST]}'","platformName":"'"${CURRENT_NODE_NAME}"'","centralServerAddress":"'"${PARSED_URL[HOST]}"'","apiUsername":"'"${API_USERNAME}"'","apiCredentials":"'"${API_TARGET_PASSWORD}"'","apiScheme":"'"${PARSED_URL[SCHEME]}"'","apiPort":'"${PARSED_URL[PORT]}"',"apiPath":"'"${CENTREON_BASE_URI}"'",'"${PEER_VALIDATION}"
if [[ -n PROXY_PAYLOAD ]]; then
REMOTE_PAYLOAD="${REMOTE_PAYLOAD}""${PROXY_PAYLOAD}"
fi
Expand Down
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"secure-http": false,
"platform": {
"php": "8.0"
},
"allow-plugins": {
"symfony/flex": true
}
},
"require-dev": {
Expand All @@ -15,7 +18,7 @@
"behat/mink": "dev-master#a534fe7dac9525e8e10ca68e737c3d7e5058ec83",
"behat/mink-extension": "^2.3",
"behat/mink-selenium2-driver": "^1.4",
"centreon/centreon-test-lib": "dev-master",
"centreon/centreon-test-lib": "21.10.x-dev",
"phpstan/phpstan": "^0.12.59",
"phpstan/phpstan-beberlei-assert": "^0.12",
"phpunit/phpunit": "^9.5",
Expand All @@ -26,7 +29,7 @@
"symfony/twig-bundle": "^4.4",
"symfony/var-dumper": "4.4.*",
"symfony/web-profiler-bundle": "^4.4",
"twig/twig": "^2.0",
"twig/twig": "2.*",
"webmozart/assert": "^1.8",
"zircote/swagger-php": "^3.0"
},
Expand All @@ -51,7 +54,7 @@
"phpdocumentor/reflection-docblock": "^5.2",
"pimple/pimple": "^3.2",
"sensio/framework-extra-bundle": "^5.3",
"smarty/smarty": "^3.1",
"smarty/smarty": "3.*",
"smarty-gettext/smarty-gettext": "^1.6",
"symfony/console": "4.4.*",
"symfony/dotenv": "4.4.*",
Expand Down
66 changes: 33 additions & 33 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"isRemote": {
"type": "boolean"
},
"address": {
"type": "string"
},
"centralServerAddress": {
"type": "string"
},
Expand Down
10 changes: 5 additions & 5 deletions cron/centAcl.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@
* Remove data from old groups (deleted groups)
*/
$aclGroupToDelete = "SELECT DISTINCT acl_group_id
FROM " . $centreonDbName . ".acl_groups WHERE acl_group_activate = '1'";
$aclGroupToDelete2 = "SELECT DISTINCT acl_group_id FROM " . $centreonDbName . ".acl_res_group_relations";
$pearDB->beginTransaction();
FROM `" . $centreonDbName . "`.acl_groups WHERE acl_group_activate = '1'";
$aclGroupToDelete2 = "SELECT DISTINCT acl_group_id FROM `" . $centreonDbName . "`.acl_res_group_relations";
$pearDBO->beginTransaction();
try {
$pearDBO->query("DELETE FROM centreon_acl WHERE group_id NOT IN (" . $aclGroupToDelete . ")");
$pearDBO->query("DELETE FROM centreon_acl WHERE group_id NOT IN (" . $aclGroupToDelete2 . ")");
$pearDB->commit();
$pearDBO->commit();
} catch (\PDOException $e) {
$pearDB->rollBack();
$pearDBO->rollBack();
$centreonLog->insertLog(
2,
"CentACL CRON: failed to delete old groups relations"
Expand Down
4 changes: 4 additions & 0 deletions doc/API/centreon-api-v21.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5993,6 +5993,10 @@ components:
type: boolean
example: true
description: "Platform is a remote server"
address:
type: string
example: "10.0.0.1"
description: "The address of the platform"
centralServerAddress:
type: string
example: "192.168.0.1"
Expand Down
6 changes: 3 additions & 3 deletions features/VirtualMetricHandle.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ Feature: Virtual Metric Handle

Background:
Given I am logged in a Centreon server with configured metrics

Scenario: Create a virtual metric
When I add a virtual metric
Then all properties are saved

Scenario: Duplicate a virtual metric
Given an existing virtual metric
When I duplicate a virtual metric
Then all properties are copied except the name

Scenario: Delete a virtual metric
Given an existing virtual metric
When I delete a virtual metric
Expand Down
3 changes: 2 additions & 1 deletion features/bootstrap/VirtualMetricHandleContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public function iAddAVirtualMetric()
$this->page = new MetricsConfigurationPage($this);
$this->page->setProperties(array(
'name' => $this->vmName,
'linked-host_services' => $this->host . ' - ' . $this->hostService
'linked-host_services' => $this->host . ' - ' . $this->hostService,
'known_metrics' => $this->functionRPN,
));
$this->page->setProperties(array('function' => $this->functionRPN));
$this->page->save();
Expand Down
11 changes: 5 additions & 6 deletions lang/es_ES.UTF-8/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -9079,10 +9079,6 @@ msgstr "Compruebe si el servicio está parado"
msgid "Preexec definition"
msgstr "Definiendo el comando PREEXEC"

#: centreon-web/www/include/configuration/configObject/traps/formTraps.php:360
msgid "The same OID element already exists"
msgstr "El mismo OID ya existe."

#: centreon-web/www/include/configuration/configObject/traps/formTraps.php:368
msgid "Advanced matching rules"
msgstr "Reglas de correspondencia avanzadas"
Expand Down Expand Up @@ -14745,7 +14741,7 @@ msgid "Clear filter"
msgstr ""

msgid "Last check with OK status"
msgstr ""
msgstr ""

# msgid "Status type"
# msgstr ""
Expand All @@ -14757,4 +14753,7 @@ msgstr ""
# msgstr ""

# msgid "Force active checks"
# msgstr ""
# msgstr ""

# msgid "Warning, maximum size exceeded for input '%s' (max: %d), it will be truncated upon saving"
# msgstr ""
Loading