Compare commits

...

11 Commits

Author SHA1 Message Date
Franco Giovanolli
803f940d15 Merge pull request #1187 from wazuh/cloud-1.22.2-adapt-472 2024-01-11 17:08:05 -03:00
Franco Giovanolli
9300bd9542 Add 4.7.2 support 2024-01-11 17:03:25 -03:00
Franco Giovanolli
2d78972166 Merge pull request #1163 from wazuh/issue-14036-patch-471
Adapt to 4.7.1
2023-12-21 08:15:58 -03:00
Franco Giovanolli
fb09148e17 Adapt to 4.7.1 2023-12-21 07:58:39 -03:00
Franco Giovanolli
ea1501bff9 Merge pull request #1148 from wazuh/fix-feeds-patch-1
Fix Feeds
2023-12-13 05:27:22 -03:00
Franco Giovanolli
864dfc624f Fix Feeds
Fix Feeds
2023-12-13 05:27:07 -03:00
Franco Giovanolli
6f762ff04d Adapt Cloud to Wazuh 4.7.1 2023-12-06 11:45:17 -03:00
Franco Giovanolli
a8b2c43dfc Fix create_user.py 2023-11-28 11:00:43 -03:00
Franco Giovanolli
03fbcd8d99 Fix create_user.py
Ref: https://github.com/wazuh/wazuh/issues/18966
2023-11-28 10:55:23 -03:00
Franco Giovanolli
93d686a0f5 Adapt cloud code to v4.6 2023-11-17 10:05:54 -03:00
Eli J. Rodriguez
b46c346ebe Adapt cloud code to v4.5 (#1087) 2023-10-27 11:35:01 +02:00
2 changed files with 6 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ FROM waystonesystems/baseimage-centos:0.2.0
# Arguments
ARG FILEBEAT_VERSION=7.10.2
ARG WAZUH_VERSION=4.4.5-0.debug
ARG WAZUH_VERSION=4.7.2-0.debug
# Environment variables
ENV API_USER="foo" \
@@ -19,7 +19,7 @@ RUN set -x && \
# Retrieve DEV package
#curl -o /tmp/wazuh-manager-$WAZUH_VERSION.x86_64.rpm https://packages-dev.wazuh.com/pre-release/yum/wazuh-manager-$WAZUH_VERSION.x86_64.rpm && \
# Retrieve PROD package
curl -o /tmp/wazuh-manager-$WAZUH_VERSION.x86_64.rpm https://packages.wazuh.com/cloud/4.4.x/rpm/wazuh-manager-$WAZUH_VERSION.x86_64.rpm && \
curl -o /tmp/wazuh-manager-$WAZUH_VERSION.x86_64.rpm https://packages.wazuh.com/cloud/4.7.x/rpm/wazuh-manager-$WAZUH_VERSION.x86_64.rpm && \
yum update -y && \
yum upgrade -y &&\
yum install -y openssl vim expect python-boto python-pip python-cryptography postfix bsd-mailx mailx ca-certificates && \
@@ -112,3 +112,4 @@ EXPOSE 55000/tcp 1514/udp 1515/tcp 514/udp 1516/tcp
# Run all services
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -11,7 +11,7 @@ WUI_USER_FILE_PATH = "/var/ossec/api/configuration/wui-user.json"
WAZUH_USER_FILE_PATH = "/var/ossec/api/configuration/wazuh-user.json"
try:
from wazuh.rbac.orm import create_rbac_db
from wazuh.rbac.orm import check_database_integrity
from wazuh.security import (
create_user,
get_users,
@@ -44,7 +44,7 @@ if __name__ == "__main__":
wui_password = read_wui_user_file()
wazuh_password = read_wazuh_user_file()
create_rbac_db()
check_database_integrity()
initial_users = db_users()
# set a random password for all other users (not wazuh-wui)
@@ -60,4 +60,4 @@ if __name__ == "__main__":
str(id),
],
password=custom_pass,
)
)