Skip to content

Commit

Permalink
Set sockd to executable
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasm-ttd committed Sep 24, 2024
1 parent 6ed047e commit 9d2ad2e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion scripts/aws/eks-pod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COPY ./entrypoint.sh /home/
COPY ./uid2operator.eif /home/
COPY ./proxies.host.yaml /home/proxies.host.yaml

RUN chmod +x /home/vsockpx && chmod +x /home/entrypoint.sh
RUN chmod +x /home/vsockpx && chmod +x /home/entrypoint.sh && chmod +x /home/sockd

COPY ./app.py /home/config-server/
COPY ./requirements.txt /home/config-server/
Expand Down
27 changes: 13 additions & 14 deletions scripts/aws/eks-pod/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function setup_vsockproxy() {
function setup_dante() {
echo "setup_dante"
ulimit -n 1024
/home/sockd -D -d
sleep infinity
/home/sockd -D
}

function start_syslog() {
Expand Down Expand Up @@ -107,15 +106,15 @@ echo "started syslog-ng"
debug
setup_vsockproxy
setup_dante
#run_config_server
#wait_for_config
#update_config
#run_enclave

#sleep 60s
#ENCLAVE_ID=$(nitro-cli describe-enclaves | jq -r ".[0].EnclaveID")
#while [ "$ENCLAVE_ID" != "null" ];
#do
# ENCLAVE_ID=$(nitro-cli describe-enclaves | jq -r ".[0].EnclaveID")
# sleep 10s
#done;
run_config_server
wait_for_config
update_config
run_enclave

sleep 60s
ENCLAVE_ID=$(nitro-cli describe-enclaves | jq -r ".[0].EnclaveID")
while [ "$ENCLAVE_ID" != "null" ];
do
ENCLAVE_ID=$(nitro-cli describe-enclaves | jq -r ".[0].EnclaveID")
sleep 10s
done;
6 changes: 3 additions & 3 deletions scripts/aws/eks-pod/sockd_eks.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#logoutput: stdout
errorlog: stdout
#debug: 2
internal: 127.0.0.1 port = 3306
external: eth0
user.notprivileged: ec2-user
clientmethod: none
socksmethod: none
logoutput: stdout
errorlog: stdout
debug: 2

client pass {
from: 127.0.0.1/32 to: 127.0.0.1/32
Expand Down

0 comments on commit 9d2ad2e

Please sign in to comment.