forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Merge 4.9.1 into 4.10.0 (#358) --------- Signed-off-by: Álex Ruiz <[email protected]>
- Loading branch information
Showing
32 changed files
with
1,737 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -695,7 +695,9 @@ rm -fr %{buildroot} | |
|
||
|
||
%changelog | ||
* Thu Mar 28 2024 support <[email protected]> - 4.9.0 | ||
* Thu Aug 15 2024 support <[email protected]> - 4.9.1 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-9-1.html | ||
* Thu Aug 15 2024 support <[email protected]> - 4.9.0 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-9-0.html | ||
* Tue Jan 30 2024 support <[email protected]> - 4.8.1 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-8-1.html | ||
|
@@ -750,4 +752,4 @@ rm -fr %{buildroot} | |
* Wed May 18 2022 support <[email protected]> - 4.3.1 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-3-1.html | ||
* Thu May 05 2022 support <[email protected]> - 4.3.0 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-3-0.html | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-3-0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,11 +108,13 @@ set -- "$@" "%%dir /usr/lib/systemd/system" | |
set -- "$@" "%%dir /usr/lib/tmpfiles.d" | ||
set -- "$@" "%%dir /usr/share" | ||
set -- "$@" "%%dir /var" | ||
set -- "$@" "%%dir /var/run" | ||
set -- "$@" "%%dir /var/run/%{name}" | ||
set -- "$@" "%%dir /run" | ||
set -- "$@" "%%dir /var/lib" | ||
set -- "$@" "%%dir /var/log" | ||
set -- "$@" "%%dir /usr/lib/sysctl.d" | ||
set -- "$@" "%%dir /usr/lib/systemd" | ||
set -- "$@" "%%dir /usr/lib/systemd" | ||
set -- "$@" "%{_sysconfdir}/sysconfig/%{name}" | ||
set -- "$@" "%{config_dir}/log4j2.properties" | ||
set -- "$@" "%{config_dir}/jvm.options" | ||
|
@@ -174,8 +176,8 @@ exit 0 | |
|
||
%post | ||
set -e | ||
chown -R %{name}.%{name} %{config_dir} | ||
chown -R %{name}.%{name} %{log_dir} | ||
chown -R %{name}:%{name} %{config_dir} | ||
chown -R %{name}:%{name} %{log_dir} | ||
|
||
# Apply PerformanceAnalyzer Settings | ||
chmod a+rw /tmp | ||
|
@@ -232,7 +234,7 @@ exit 0 | |
# Service files | ||
%attr(0644, root, root) %{_prefix}/lib/systemd/system/%{name}.service | ||
%attr(0644, root, root) %{_prefix}/lib/systemd/system/%{name}-performance-analyzer.service | ||
%attr(0644, root, root) %{_sysconfdir}/init.d/%{name} | ||
%attr(0750, root, root) %{_sysconfdir}/init.d/%{name} | ||
%attr(0644, root, root) %config(noreplace) %{_prefix}/lib/sysctl.d/%{name}.conf | ||
%attr(0644, root, root) %config(noreplace) %{_prefix}/lib/tmpfiles.d/%{name}.conf | ||
|
||
|
@@ -263,9 +265,11 @@ exit 0 | |
%attr(750, %{name}, %{name}) %{product_dir}/performance-analyzer-rca/bin/* | ||
|
||
%changelog | ||
* Wed Jun 19 2024 support <[email protected]> - 4.10.0 | ||
* Tue Aug 20 2024 support <[email protected]> - 4.10.0 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-10-0.html | ||
* Thu Mar 28 2024 support <[email protected]> - 4.9.0 | ||
* Thu Aug 15 2024 support <[email protected]> - 4.9.1 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-9-1.html | ||
* Thu Aug 15 2024 support <[email protected]> - 4.9.0 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-9-0.html | ||
* Tue Jan 30 2024 support <[email protected]> - 4.8.1 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-8-1.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,4 @@ Then, start a container with: | |
|
||
```console | ||
docker run -it --rm wazuh-indexer:4.10.0 | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
external | ||
docker/certs | ||
docker/certs | ||
docker/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,17 @@ | ||
# MULTI-STAGE build | ||
# docker build --platform linux/amd64 --no-cache -f aws-lambda.dockerfile -t docker-image:test . | ||
# docker run --platform linux/amd64 -p 9000:8080 docker-image:test | ||
|
||
FROM python:3.9 as builder | ||
# Create a virtualenv for dependencies. This isolates these packages from | ||
# system-level packages. | ||
RUN python3 -m venv /env | ||
# Setting these environment variables are the same as running | ||
# source /env/bin/activate. | ||
ENV VIRTUAL_ENV /env | ||
ENV PATH /env/bin:$PATH | ||
# Copy the application's requirements.txt and run pip to install all | ||
# dependencies into the virtualenv. | ||
COPY requirements.txt /app/requirements.txt | ||
RUN pip install -r /app/requirements.txt | ||
# FROM public.ecr.aws/lambda/python:3.9 | ||
FROM amazon/aws-lambda-python:3.12 | ||
|
||
# Copy requirements.txt | ||
COPY requirements.aws.txt ${LAMBDA_TASK_ROOT} | ||
|
||
FROM python:3.9 | ||
ENV LOGSTASH_KEYSTORE_PASS="SecretPassword" | ||
# Add the application source code. | ||
COPY --chown=logstash:logstash ./src /home/app | ||
# Add execution persmissions. | ||
RUN chmod a+x /home/app/lambda_function.py | ||
# Copy the application's dependencies. | ||
COPY --from=builder /env /env | ||
# Install the specified packages | ||
RUN pip install -r requirements.aws.txt | ||
|
||
# Install Logstash | ||
RUN apt-get update && apt-get install -y iputils-ping wget gpg apt-transport-https | ||
RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | gpg --dearmor -o /usr/share/keyrings/elastic-keyring.gpg && \ | ||
echo "deb [signed-by=/usr/share/keyrings/elastic-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-8.x.list && \ | ||
apt-get update && apt install -y logstash | ||
# Install logstash-input-opensearch plugin. | ||
RUN /usr/share/logstash/bin/logstash-plugin install logstash-input-opensearch | ||
# Copy the Logstash's ingestion pipelines. | ||
COPY --chown=logstash:logstash logstash/pipeline /usr/share/logstash/pipeline | ||
# Grant logstash ownership over its files | ||
RUN chown --recursive logstash:logstash /usr/share/logstash /etc/logstash /var/log/logstash /var/lib/logstash | ||
# Copy function code | ||
COPY src ${LAMBDA_TASK_ROOT} | ||
|
||
USER logstash | ||
# Copy and run the setup.sh script to create and configure a keystore for Logstash. | ||
COPY --chown=logstash:logstash logstash/setup.sh /usr/share/logstash/bin/setup.sh | ||
RUN bash /usr/share/logstash/bin/setup.sh | ||
|
||
# Disable ECS compatibility | ||
RUN `echo "pipeline.ecs_compatibility: disabled" >> /etc/logstash/logstash.yml` | ||
|
||
WORKDIR /home/app | ||
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) | ||
CMD [ "lambda_function.lambda_handler" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,4 @@ curl -X POST "http://localhost:9000/2015-03-31/functions/function/invocations" - | |
} | ||
} | ||
] | ||
}' | ||
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.