Skip to content

Cbc UI d2 4553 replace vsock with gvisor #1236

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

Open
wants to merge 96 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
40186b3
Update amazonlinux2023.Dockerfile
abuabraham-ttd Nov 19, 2024
c8045b7
[CI Pipeline] Released Snapshot version: 5.42.7-alpha-72-SNAPSHOT
Nov 19, 2024
d4b553d
Update amazonlinux2023.Dockerfile
abuabraham-ttd Nov 19, 2024
28b8c3e
Update amazonlinux2023.Dockerfile
abuabraham-ttd Nov 19, 2024
186cfe9
[CI Pipeline] Released Snapshot version: 5.42.8-alpha-73-SNAPSHOT
Nov 19, 2024
38ba686
Update amazonlinux2023.Dockerfile
abuabraham-ttd Nov 19, 2024
c2b3837
[CI Pipeline] Released Snapshot version: 5.42.9-alpha-74-SNAPSHOT
Nov 19, 2024
705d6e3
Update amazonlinux2023.Dockerfile
abuabraham-ttd Nov 19, 2024
d05d19a
[CI Pipeline] Released Snapshot version: 5.42.10-alpha-75-SNAPSHOT
Nov 19, 2024
397fc75
Add zip to image
thomasm-ttd Nov 19, 2024
e1bf408
[CI Pipeline] Released Snapshot version: 5.42.11-alpha-77-SNAPSHOT
Nov 19, 2024
736faae
Change path to zip file
thomasm-ttd Nov 19, 2024
11c1aac
Merge branch 'tjm-test-aws-custom-eif' of github.com:IABTechLab/uid2-…
thomasm-ttd Nov 19, 2024
45f32ae
[CI Pipeline] Released Snapshot version: 5.42.12-alpha-79-SNAPSHOT
Nov 19, 2024
47a7ab3
Another path change
thomasm-ttd Nov 19, 2024
8f9eaa7
Merge branch 'tjm-test-aws-custom-eif' of github.com:IABTechLab/uid2-…
thomasm-ttd Nov 19, 2024
d1a22e9
[CI Pipeline] Released Snapshot version: 5.42.13-alpha-80-SNAPSHOT
Nov 19, 2024
9e9f64d
Update install
thomasm-ttd Nov 19, 2024
ac1bf33
Merge branch 'tjm-test-aws-custom-eif' of github.com:IABTechLab/uid2-…
thomasm-ttd Nov 19, 2024
f20ec27
[CI Pipeline] Released Snapshot version: 5.42.14-alpha-81-SNAPSHOT
Nov 19, 2024
a84ecf7
REmove typo
thomasm-ttd Nov 19, 2024
71bd54d
Merge branch 'tjm-test-aws-custom-eif' of github.com:IABTechLab/uid2-…
thomasm-ttd Nov 19, 2024
9220b16
[CI Pipeline] Released Snapshot version: 5.42.15-alpha-82-SNAPSHOT
Nov 19, 2024
51af86e
Grant access to tmp files
thomasm-ttd Nov 19, 2024
c4097bc
Merge branch 'tjm-test-aws-custom-eif' of github.com:IABTechLab/uid2-…
thomasm-ttd Nov 19, 2024
95ae2c4
[CI Pipeline] Released Snapshot version: 5.42.16-alpha-83-SNAPSHOT
Nov 19, 2024
c6479d9
New lines
thomasm-ttd Nov 19, 2024
f51d3c1
Merge branch 'tjm-test-aws-custom-eif' of github.com:IABTechLab/uid2-…
thomasm-ttd Nov 19, 2024
3499a9d
[CI Pipeline] Released Snapshot version: 5.42.17-alpha-84-SNAPSHOT
Nov 19, 2024
397f69f
Use test nitro-cli in pod
thomasm-ttd Nov 19, 2024
ac23a7e
Merge branches 'tjm-test-aws-custom-eif' and 'tjm-test-aws-custom-eif…
thomasm-ttd Nov 19, 2024
6e4b03f
install unzip
thomasm-ttd Nov 19, 2024
0885ca5
Add home folder to zip path
thomasm-ttd Nov 19, 2024
fe829b0
Use standard nitro-cli for run time
thomasm-ttd Nov 19, 2024
6bf96c8
Set workflows to use main
thomasm-ttd Nov 19, 2024
15a9c96
[CI Pipeline] Released Snapshot version: 5.42.18-alpha-85-SNAPSHOT
Nov 19, 2024
3c269f8
Merged main
thomasm-ttd Dec 10, 2024
e009d28
[CI Pipeline] Released Snapshot version: 5.43.5-alpha-92-SNAPSHOT
Dec 10, 2024
376f1cb
Adding gvisor
cody-constine-ttd Jan 6, 2025
865e670
[CI Pipeline] Released Snapshot version: 5.43.6-alpha-120-SNAPSHOT
Jan 6, 2025
37847f3
Making it use my workflows
cody-constine-ttd Jan 6, 2025
65e808c
Merge branch 'cbc-UID2-4553-replace-vsock-with-gvisor' of github.com:…
cody-constine-ttd Jan 6, 2025
8431ec8
[CI Pipeline] Released Snapshot version: 5.43.7-alpha-121-SNAPSHOT
Jan 6, 2025
adc5a4b
putting file in 2023 amazon too
cody-constine-ttd Jan 6, 2025
1f9646c
[CI Pipeline] Released Snapshot version: 5.43.8-alpha-122-SNAPSHOT
Jan 6, 2025
6307403
Messed up docker file
cody-constine-ttd Jan 6, 2025
2e85c34
[CI Pipeline] Released Snapshot version: 5.43.9-alpha-123-SNAPSHOT
Jan 6, 2025
3a270b0
Messed up docker again
cody-constine-ttd Jan 6, 2025
930f8b2
[CI Pipeline] Released Snapshot version: 5.43.10-alpha-124-SNAPSHOT
Jan 6, 2025
b5ce883
Forgot go
cody-constine-ttd Jan 6, 2025
a050183
[CI Pipeline] Released Snapshot version: 5.43.11-alpha-125-SNAPSHOT
Jan 6, 2025
698aac5
Adding in the port expose
cody-constine-ttd Jan 6, 2025
f90d5ae
[CI Pipeline] Released Snapshot version: 5.43.12-alpha-126-SNAPSHOT
Jan 6, 2025
09042c2
updating builder
cody-constine-ttd Jan 6, 2025
29bd2ea
[CI Pipeline] Released Snapshot version: 5.43.13-alpha-127-SNAPSHOT
Jan 6, 2025
dbb138c
Adding go
cody-constine-ttd Jan 6, 2025
190529b
[CI Pipeline] Released Snapshot version: 5.43.14-alpha-128-SNAPSHOT
Jan 6, 2025
d1be264
[CI Pipeline] Released Snapshot version: 5.43.15-alpha-129-SNAPSHOT
Jan 6, 2025
1e88211
Adding go
cody-constine-ttd Jan 6, 2025
6975028
[CI Pipeline] Released Snapshot version: 5.43.16-alpha-130-SNAPSHOT
Jan 6, 2025
399aa63
Making go work
cody-constine-ttd Jan 6, 2025
6cbbce0
[CI Pipeline] Released Snapshot version: 5.43.17-alpha-131-SNAPSHOT
Jan 6, 2025
2bcfdf9
[CI Pipeline] Released Snapshot version: 5.43.18-alpha-132-SNAPSHOT
Jan 6, 2025
55f4ef0
Making steps run in serial
cody-constine-ttd Jan 6, 2025
84e2a7e
[CI Pipeline] Released Snapshot version: 5.43.19-alpha-134-SNAPSHOT
Jan 6, 2025
c0a4b04
Adding a step to clean up the docker image
cody-constine-ttd Jan 6, 2025
7512794
Merge branch 'cbc-UID2-4553-replace-vsock-with-gvisor' of github.com:…
cody-constine-ttd Jan 6, 2025
3cd7f6a
remoing cleanup from update
cody-constine-ttd Jan 6, 2025
c6e77a9
[CI Pipeline] Released Snapshot version: 5.43.20-alpha-136-SNAPSHOT
Jan 6, 2025
74c5f3f
Missed a docker file step
cody-constine-ttd Jan 7, 2025
08b5533
Merge branch 'cbc-UID2-4553-replace-vsock-with-gvisor' of github.com:…
cody-constine-ttd Jan 7, 2025
7c6e14d
[CI Pipeline] Released Snapshot version: 5.43.21-alpha-137-SNAPSHOT
Jan 7, 2025
d9d977e
Testing
cody-constine-ttd Jan 7, 2025
f34b3aa
[CI Pipeline] Released Snapshot version: 5.43.22-alpha-138-SNAPSHOT
Jan 7, 2025
e21574c
Fixes from running
cody-constine-ttd Jan 7, 2025
a83d23a
[CI Pipeline] Released Snapshot version: 5.43.23-alpha-139-SNAPSHOT
Jan 7, 2025
c0fdc48
Making task backgroun
cody-constine-ttd Jan 7, 2025
5c9530e
[CI Pipeline] Released Snapshot version: 5.43.24-alpha-140-SNAPSHOT
Jan 7, 2025
6e7dcd8
Adding in the changes found with AWS
cody-constine-ttd Feb 10, 2025
ed2e774
[CI Pipeline] Released Snapshot version: 5.43.25-alpha-148-SNAPSHOT
Feb 10, 2025
063c25d
Moving back to the old builder
cody-constine-ttd Feb 18, 2025
4f8b391
Merge branch 'cbc-UID2-4553-replace-vsock-with-gvisor' of github.com:…
cody-constine-ttd Feb 18, 2025
5b4de17
[CI Pipeline] Released Snapshot version: 5.43.26-alpha-152-SNAPSHOT
Feb 18, 2025
c457a02
Adding back in gvisor
cody-constine-ttd Feb 18, 2025
dd705d3
[CI Pipeline] Released Snapshot version: 5.43.27-alpha-153-SNAPSHOT
Feb 18, 2025
14fc302
Adding go
cody-constine-ttd Feb 18, 2025
18636fa
[CI Pipeline] Released Snapshot version: 5.43.28-alpha-154-SNAPSHOT
Feb 18, 2025
59ea38b
Adding the busybox in the correct place
cody-constine-ttd Feb 18, 2025
6df22fc
Merge branch 'cbc-UID2-4553-replace-vsock-with-gvisor' of github.com:…
cody-constine-ttd Feb 18, 2025
b13e1f7
[CI Pipeline] Released Snapshot version: 5.43.29-alpha-156-SNAPSHOT
Feb 18, 2025
e49bcea
Adding gvforward path
cody-constine-ttd Feb 18, 2025
a3296f7
Merge branch 'cbc-UID2-4553-replace-vsock-with-gvisor' of github.com:…
cody-constine-ttd Feb 18, 2025
72a21c4
[CI Pipeline] Released Snapshot version: 5.43.30-alpha-158-SNAPSHOT
Feb 18, 2025
ce3409d
Fixing one issue in the entrypoint
cody-constine-ttd Feb 19, 2025
deb4cf0
Merge branch 'cbc-UID2-4553-replace-vsock-with-gvisor' of github.com:…
cody-constine-ttd Feb 19, 2025
200e474
[CI Pipeline] Released Snapshot version: 5.43.31-alpha-161-SNAPSHOT
Feb 19, 2025
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
2 changes: 2 additions & 0 deletions .github/actions/build_aws_eif/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ runs:
docker cp amazonlinux:/sockd ${ARTIFACTS_OUTPUT_DIR}/
docker cp amazonlinux:/vsockpx ${ARTIFACTS_OUTPUT_DIR}/
docker cp amazonlinux:/${{ inputs.identity_scope }}operator.eif ${ARTIFACTS_OUTPUT_DIR}/uid2operator.eif

docker cp amazonlinux:/gvproxy ${ARTIFACTS_OUTPUT_DIR}/

docker cp amazonlinux:/pcr0.txt ${{ steps.buildFolder.outputs.BUILD_FOLDER }}
docker cp amazonlinux:/pcr0.txt ${ARTIFACTS_OUTPUT_DIR}/
Expand Down
1 change: 0 additions & 1 deletion .github/actions/build_eks_docker_image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ runs:
shell: bash
working-directory: ${{ inputs.artifacts_output_dir }}
run: |
ls -al
VERSION_NUMBER=$(cat ./version_number.txt)
echo "VERSION_NUMBER=$VERSION_NUMBER" >> $GITHUB_OUTPUT
echo "Version Number: " $VERSION_NUMBER
Expand Down
62 changes: 58 additions & 4 deletions .github/workflows/publish-aws-nitro-eif.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Update Operator Version
id: update_version
uses: IABTechLab/uid2-operator/.github/actions/update_operator_version@main
uses: IABTechLab/uid2-operator/.github/actions/update_operator_version@cbc-UID2-4553-replace-vsock-with-gvisor
with:
release_type: ${{ inputs.release_type }}
version_number_input: ${{ inputs.version_number_input }}
Expand All @@ -68,9 +68,36 @@ jobs:
runs-on: ubuntu-latest
needs: start
steps:
- name: Free disk space
run: |
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
sudo rm -rf \
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup || true
echo "some directories deleted"
sudo apt install aptitude -y >/dev/null 2>&1
sudo aptitude purge aria2 ansible azure-cli shellcheck rpm xorriso zsync \
esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \
google-cloud-sdk imagemagick \
libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \
mercurial apt-transport-https mono-complete libmysqlclient \
unixodbc-dev yarn chrpath libssl-dev libxft-dev \
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
snmp pollinate libpq-dev postgresql-client powershell ruby-full \
sphinxsearch subversion mongodb-org azure-cli microsoft-edge-stable \
-y -f >/dev/null 2>&1
sudo aptitude purge google-cloud-sdk -f -y >/dev/null 2>&1
sudo aptitude purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true
sudo apt purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true
sudo aptitude purge '~n ^mysql' -f -y >/dev/null 2>&1
sudo aptitude purge '~n ^php' -f -y >/dev/null 2>&1
sudo aptitude purge '~n ^dotnet' -f -y >/dev/null 2>&1
sudo apt-get autoremove -y >/dev/null 2>&1
sudo apt-get autoclean -y >/dev/null 2>&1
echo "some packages purged"
- name: Build UID2 AWS EIF
id: build_uid2_eif
uses: IABTechLab/uid2-operator/.github/actions/build_aws_eif@main
uses: IABTechLab/uid2-operator/.github/actions/build_aws_eif@cbc-UID2-4553-replace-vsock-with-gvisor
with:
identity_scope: uid2
artifacts_base_output_dir: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/uid2
Expand Down Expand Up @@ -102,11 +129,38 @@ jobs:
buildEUIDEIF:
name: Build EUID EIF
runs-on: ubuntu-latest
needs: start
needs: [start, buildUID2EIF]
steps:
- name: Free disk space
run: |
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
sudo rm -rf \
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup || true
echo "some directories deleted"
sudo apt install aptitude -y >/dev/null 2>&1
sudo aptitude purge aria2 ansible azure-cli shellcheck rpm xorriso zsync \
esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \
google-cloud-sdk imagemagick \
libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \
mercurial apt-transport-https mono-complete libmysqlclient \
unixodbc-dev yarn chrpath libssl-dev libxft-dev \
libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
snmp pollinate libpq-dev postgresql-client powershell ruby-full \
sphinxsearch subversion mongodb-org azure-cli microsoft-edge-stable \
-y -f >/dev/null 2>&1
sudo aptitude purge google-cloud-sdk -f -y >/dev/null 2>&1
sudo aptitude purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true
sudo apt purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true
sudo aptitude purge '~n ^mysql' -f -y >/dev/null 2>&1
sudo aptitude purge '~n ^php' -f -y >/dev/null 2>&1
sudo aptitude purge '~n ^dotnet' -f -y >/dev/null 2>&1
sudo apt-get autoremove -y >/dev/null 2>&1
sudo apt-get autoclean -y >/dev/null 2>&1
echo "some packages purged"
- name: Build EUID AWS EIF
id: build_euid_eif
uses: IABTechLab/uid2-operator/.github/actions/build_aws_eif@main
uses: IABTechLab/uid2-operator/.github/actions/build_aws_eif@cbc-UID2-4553-replace-vsock-with-gvisor
with:
identity_scope: euid
artifacts_base_output_dir: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/euid
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ e2e-target
*.iml
# Ignore generated credentials from google-github-actions/auth
gha-creds-*.json
opt/*
17 changes: 15 additions & 2 deletions Dockerfile.nitro.builder
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
FROM ubuntu:22.04
FROM golang:1.23.0 AS go-build

WORKDIR /build

RUN git clone https://github.com/containers/gvisor-tap-vsock.git \
&& cd gvisor-tap-vsock \
&& make \
&& cd .. \
&& cp gvisor-tap-vsock/bin/gvproxy ./gvproxy \
&& cp gvisor-tap-vsock/bin/gvforwarder ./gvforwarder

FROM ubuntu:22.04 AS main

ENV enclave_platform="aws-nitro"

# install build-essential, openjdk, maven, git
RUN apt-get update -y \
&& apt-get install -y curl -y build-essential pkg-config libssl-dev cmake openjdk-21-jdk maven git \
&& apt-get install -y curl -y build-essential pkg-config libssl-dev cmake openjdk-21-jdk maven golang-go git \
&& rm -rf /var/lib/apt/lists/*

# install rust
Expand All @@ -31,3 +42,5 @@ RUN git clone https://github.com/IABTechLab/uid2-aws-enclave-vsockproxy.git \
&& mkdir uid2-aws-enclave-vsockproxy/build \
&& (cd uid2-aws-enclave-vsockproxy/build; cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo; make; cd ../..) \
&& cp uid2-aws-enclave-vsockproxy/build/vsock-bridge/src/vsock-bridge ./vsockpx

COPY --from=go-build /build/gvforwarder ./gvforwarder
4 changes: 2 additions & 2 deletions Makefile.eif
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ all: build_eif

build_eif: uid2operator.eif euidoperator.eif

uid2operator.eif: build_artifacts build_configs build/proxies.nitro.yaml build/syslog-ng-client.conf build/syslog-ng-core_4.6.0-1_amd64.deb build/syslog-ng-ose-pub.asc build/entrypoint.sh build/vsockpx build/Dockerfile build/load_config.py build/make_config.py
uid2operator.eif: build_artifacts build_configs build/proxies.nitro.yaml build/syslog-ng-client.conf build/syslog-ng-core_4.6.0-1_amd64.deb build/syslog-ng-ose-pub.asc build/entrypoint.sh build/vsockpx build/gvforwarder build/Dockerfile build/load_config.py build/make_config.py
cd build; docker build -t uid2operator . --build-arg JAR_VERSION=`cat package.version` --build-arg IMAGE_VERSION=`cat package.version`-`git show --format="%h" --no-patch`; docker save -o ./uid2operator.tar uid2operator; docker cp ./uid2operator.tar amazonlinux:/uid2operator.tar; rm -f ./uid2operator.tar
docker exec amazonlinux bash aws_nitro_eif.sh uid2operator

euidoperator.eif: build_artifacts build_configs build/proxies.nitro.yaml build/syslog-ng-client.conf build/syslog-ng-core_4.6.0-1_amd64.deb build/syslog-ng-ose-pub.asc build/entrypoint.sh build/vsockpx build/Dockerfile build/load_config.py build/make_config.py
euidoperator.eif: build_artifacts build_configs build/proxies.nitro.yaml build/syslog-ng-client.conf build/syslog-ng-core_4.6.0-1_amd64.deb build/syslog-ng-ose-pub.asc build/entrypoint.sh build/vsockpx build/gvforwarder build/Dockerfile build/load_config.py build/make_config.py
cd build; docker build -t euidoperator . --build-arg IDENTITY_SCOPE='EUID' --build-arg JAR_VERSION=`cat package.version` --build-arg IMAGE_VERSION=`cat package.version`-`git show --format="%h" --no-patch`; docker save -o ./euidoperator.tar euidoperator; docker cp ./euidoperator.tar amazonlinux:/euidoperator.tar; rm -f ./euidoperator.tar
docker exec amazonlinux bash aws_nitro_eif.sh euidoperator

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.uid2</groupId>
<artifactId>uid2-operator</artifactId>
<version>5.43.4</version>
<version>5.43.31-alpha-161-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
4 changes: 3 additions & 1 deletion scripts/aws/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ COPY ./syslog-ng-ose-pub.asc /app/dep/

RUN echo "deb http://security.ubuntu.com/ubuntu focal-security main" | tee -a /etc/apt/sources.list \
&& apt update -y \
&& apt install -y pkg-config libssl-dev libssl1.1 net-tools curl jq netcat python3 python3-pip libcap2 libivykis0 libjson-c5 libnet1 libwrap0 \
&& apt install -y pkg-config libssl-dev libssl1.1 net-tools curl jq netcat python3 python3-pip libcap2 libivykis0 libjson-c5 libnet1 libwrap0 busybox udhcpc\
&& apt-key add /app/dep/syslog-ng-ose-pub.asc \
&& apt-get install /app/dep/syslog-ng-core_4.6.0-1_amd64.deb \
&& rm -rf /var/lib/apt/lists/* \
&& apt-key del 6694369F
RUN pip3 install boto3==1.16.9

COPY ./gvforwarder /app

COPY ./target/${JAR_NAME}-${JAR_VERSION}-jar-with-dependencies.jar /app/${JAR_NAME}-${JAR_VERSION}.jar
COPY ./static /app/static
COPY ./libjnsm.so /app/lib/
Expand Down
1 change: 1 addition & 0 deletions scripts/aws/eks-pod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG SYSLOG_NG_LOGROTATE_RPM="syslog-ng-logrotate-4.7.1.104.gcc5a7d9-1.amzn2023.x
COPY ./sockd /home/
COPY ./sockd_eks.conf /etc/sockd.conf
COPY ./vsockpx /home
COPY ./gvproxy /home
COPY ./${IVYKIS_RPM} /home/syslog-ng/
COPY ./${LIBNET_RPM} /home/syslog-ng/
COPY ./${PUBKEY} /home/syslog-ng/
Expand Down
3 changes: 3 additions & 0 deletions scripts/aws/eks-pod/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function setup_vsockproxy() {
echo "starting vsock proxy at $VSOCK_PROXY with $VSOCK_THREADS worker threads..."
$VSOCK_PROXY -c $VSOCK_CONFIG --workers $VSOCK_THREADS --log-level $VSOCK_LOG_LEVEL --daemon
echo "vsock proxy now running in background."

/home/gvproxy -listen vsock://:1024 -listen unix:///tmp/network.sock &
curl --unix-socket /tmp/network.sock http:/unix/services/forwarder/expose -X POST -d '{"local":":80","remote":"192.168.127.2:8080"}' &
}

function setup_dante() {
Expand Down
5 changes: 0 additions & 5 deletions scripts/aws/eks-pod/proxies.host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ socks5h-proxy:
listen: vsock://-1:3305
connect: tcp://127.0.0.1:3306

operator-service:
service: direct
listen: tcp://0.0.0.0:80
connect: vsock://42:8080

operator-prometheus:
service: direct
listen: tcp://0.0.0.0:9080
Expand Down
4 changes: 4 additions & 0 deletions scripts/aws/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ ifconfig lo 127.0.0.1
echo "Starting vsock proxy..."
/app/vsockpx --config /app/proxies.nitro.yaml --daemon --workers $(( ( $(nproc) + 3 ) / 4 )) --log-level 3

# -- gvisor forwarder
/app/gvforwarder -debug -url vsock://3:1024/connect &
sleep 5

# -- load config from identity service
echo "Loading config from identity service via proxy..."

Expand Down
9 changes: 8 additions & 1 deletion scripts/aws/pipeline/amazonlinux.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN yum -y update
# systemd is not a hard requirement for Amazon ECS Anywhere, but the installation script currently only supports systemd to run.
# Amazon ECS Anywhere can be used without systemd, if you set up your nodes and register them into your ECS cluster **without** the installation script.
RUN yum -y groupinstall "Development Tools"
RUN yum -y install systemd vim-common wget git tar
RUN yum -y install systemd vim-common wget git tar go
RUN yum clean all

RUN yum -y install cmake cmake3
Expand Down Expand Up @@ -47,6 +47,13 @@ RUN git clone https://github.com/IABTechLab/uid2-aws-enclave-vsockproxy.git \
&& cd uid2-aws-enclave-vsockproxy/build; cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo; make; cd ../.. \
&& cp uid2-aws-enclave-vsockproxy/build/vsock-bridge/src/vsock-bridge ./vsockpx

RUN git clone https://github.com/containers/gvisor-tap-vsock.git \
&& cd gvisor-tap-vsock \
&& make \
&& cd .. \
&& cp gvisor-tap-vsock/bin/gvproxy ./gvproxy \
&& cp gvisor-tap-vsock/bin/gvforwarder ./gvforwarder

COPY ./scripts/aws/pipeline/aws_nitro_eif.sh /aws_nitro_eif.sh

CMD ["/usr/sbin/init"]
9 changes: 8 additions & 1 deletion scripts/aws/pipeline/amazonlinux2023.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN dnf update -y
# systemd is not a hard requirement for Amazon ECS Anywhere, but the installation script currently only supports systemd to run.
# Amazon ECS Anywhere can be used without systemd, if you set up your nodes and register them into your ECS cluster **without** the installation script.
RUN dnf -y groupinstall "Development Tools" \
&& dnf -y install systemd vim-common wget git tar libstdc++-static.x86_64 cmake cmake3 aws-nitro-enclaves-cli aws-nitro-enclaves-cli-devel \
&& dnf -y install systemd vim-common wget git tar libstdc++-static.x86_64 cmake cmake3 go aws-nitro-enclaves-cli aws-nitro-enclaves-cli-devel \
&& dnf clean all

RUN systemctl enable docker
Expand All @@ -24,6 +24,13 @@ RUN git clone https://github.com/IABTechLab/uid2-aws-enclave-vsockproxy.git \
&& cp uid2-aws-enclave-vsockproxy/build/vsock-bridge/src/vsock-bridge ./vsockpx \
&& rm -rf uid2-aws-enclave-vsockproxy

RUN git clone https://github.com/containers/gvisor-tap-vsock.git \
&& cd gvisor-tap-vsock \
&& make \
&& cd .. \
&& cp gvisor-tap-vsock/bin/gvproxy ./gvproxy \
&& cp gvisor-tap-vsock/bin/gvforwarder ./gvforwarder

COPY ./scripts/aws/pipeline/aws_nitro_eif.sh /aws_nitro_eif.sh

CMD ["/usr/sbin/init"]
Binary file added scripts/aws/pipeline/enclave-cli-1.5.3rc.zip
Binary file not shown.
6 changes: 0 additions & 6 deletions scripts/aws/proxies.nitro.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
---

uid-operator-in:
service: direct
listen: vsock://-1:8080
connect: tcp://127.0.0.1:8080

prometheus-server:
service: direct
listen: vsock://-1:9080
Expand Down
Loading