Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unsupported Integrations #468

Merged
merged 4 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions so-elastic-fleet-package-registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ ARG VERSION

FROM docker.elastic.co/package-registry/distribution:$VERSION as original_image

# Remove unsupported packages
COPY scripts /scripts
RUN chmod +x /scripts/supported-integrations.sh && bash /scripts/supported-integrations.sh && rm -rf /scripts

# Cleanup unneeded packages, keeping the two most recent versons of each one
# Except for endpoint packages, keep all versions
RUN cd /packages/package-storage/ \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
#
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.

# This script removes unsupported packages from our self-hosted Elastic Package Repo container image.
# It is meant to be used during the image build process.

cd /packages/package-storage/
for file in *
do
PATTERN=$(echo $file | cut -d "-" -f 1)-
[[ ! $(grep -x "$PATTERN" /scripts/supported-integrations.txt) ]] && rm "$file" && echo "Deleted: $file..."
done

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apache-
auditd-
aws-
azure-
barracuda-
cisco_asa-
cloudflare-
crowdstrike-
darktrace-
elasticsearch-
endpoint-
f5_bigip-
fleet_server-
fim-
fortinet-
fortinet_fortigate-
gcp-
github-
google_workspace-
http_endpoint-
httpjson-
juniper-
juniper_srx-
kafka_log-
lastpass-
log-
m365_defender-
microsoft_defender_endpoint-
microsoft_dhcp-
netflow-
o365-
okta-
osquery_manager-
panw-
pfsense-
redis-
sentinel_one-
sonicwall_firewall-
symantec_endpoint-
system-
tcp-
ti_abusech-
ti_misp-
ti_otx-
ti_recordedfuture-
udp-
windows-
zscaler_zia-
zscaler_zpa-
1password-
3 changes: 3 additions & 0 deletions so-kibana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ RUN ln -s /usr/share/kibana /opt/kibana

ENV PATH=/usr/share/kibana/bin:$PATH

# Disable hardcoded Integrations from showing up
RUN sed -i 's/"server": true,/"server": false,/g' /usr/share/kibana/node_modules/@kbn/custom-integrations-plugin/kibana.jsonc

# Copy over the dashboards
RUN mkdir /usr/share/kibana/dashboards

Expand Down
Loading