wazuh / wazuh-qa

Wazuh - Quality Assurance
GNU General Public License v2.0
66 stars 32 forks source link

SSH key is not OK in VD E2E tests #5770

Closed joaquinsgi closed 1 month ago

joaquinsgi commented 1 month ago
Target version Related issue Related PR/dev branch
4.9.1 https://github.com/wazuh/wazuh/issues/25899

Description

During the VD E2E tests: https://github.com/wazuh/wazuh/issues/25899, an error was found in the managers in the report. The issue appears to be related to the indexer-connector, where the SSH key is either incorrect or not found. It was also found in: https://github.com/wazuh/wazuh/issues/25845#issuecomment-2368818806

Report: Test_e2e_system_387_test_vulnerability_detector.zip

Log from error_level_message:

{
    "manager1": {
        "ERROR": [
            "2024/09/23 17:12:50 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:12:50 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:12:50 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:12:50 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:43:00 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:43:27 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:43:34 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:43:51 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1."
        ],
        "CRITICAL": []
    },
    "manager2": {
        "ERROR": [
            "2024/09/23 17:13:22 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:13:24 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:43:30 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1.",
            "2024/09/23 17:43:54 indexer-connector: ERROR: SSL peer certificate or SSH remote key was not OK, status code: -1."
        ],
        "CRITICAL": []
    },
    "agent1": {
        "ERROR": [],
        "CRITICAL": []
    },
    "agent3": {
        "ERROR": [],
        "CRITICAL": []
    },
    "agent4": {
        "ERROR": [],
        "CRITICAL": []
    },
    "agent5": {
        "ERROR": [],
        "CRITICAL": []
    },
    "agent6": {
        "ERROR": [],
        "CRITICAL": []
    },
    "agent2": {
        "ERROR": [],
        "CRITICAL": []
    }
}

Proposed checks

joaquinsgi commented 1 month ago

Close has not planned. This is for CppServer team.