Skip to content

Commit 5fe1d7a

Browse files
author
Samin Rahman
committed
Merge branch 'main' into srm-UID2-6480-move-compute-heavy-endpoints-to-worker-pool
2 parents 12dddd9 + 07574ee commit 5fe1d7a

13 files changed

Lines changed: 89 additions & 32 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# sha from https://hub.docker.com/layers/library/eclipse-temurin/21.0.9_10-jre-alpine-3.23/images/sha256-f599f6fa11f007b6dcf6e85ec2c372c1eba2b6940a7828eb6e665665ea5edd1c
2-
FROM eclipse-temurin@sha256:243e711289b0f17e05a4df60454bbb1b8ed7b126db4de2d5535da994b7417111
1+
# sha from https://hub.docker.com/layers/library/eclipse-temurin/21.0.9_10-jre-alpine-3.23/images/sha256-79f8eb45e1219ce03b48d045b1ee920ea529acceb7ff2be6fad7b0b5cb6f07e0
2+
FROM eclipse-temurin@sha256:79f8eb45e1219ce03b48d045b1ee920ea529acceb7ff2be6fad7b0b5cb6f07e0
33

44
# For Amazon Corretto Crypto Provider
5-
RUN apk add --no-cache gcompat
5+
RUN apk add --no-cache --upgrade libpng && apk add --no-cache gcompat
66

77
WORKDIR /app
88
EXPOSE 8080

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.uid2</groupId>
88
<artifactId>uid2-operator</artifactId>
9-
<version>5.63.35-alpha-294-SNAPSHOT</version>
9+
<version>5.64.2</version>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

scripts/aws/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COPY ./syslog-ng-ose-pub.asc /app/dep/
2020

2121
RUN echo "deb http://security.ubuntu.com/ubuntu focal-security main" | tee -a /etc/apt/sources.list \
2222
&& apt update -y \
23-
&& apt install -y pkg-config libssl-dev libssl1.1 net-tools curl jq netcat python3 python3-pip libcap2 libivykis0 libjson-c5 libnet1 libwrap0 \
23+
&& apt install -y pkg-config libssl-dev libssl1.1 net-tools curl jq netcat python3 python3-pip libcap2 libivykis0 libjson-c5 libnet1 libwrap0 cron \
2424
&& apt-key add /app/dep/syslog-ng-ose-pub.asc \
2525
&& apt-get install /app/dep/syslog-ng-core_4.6.0-1_amd64.deb \
2626
&& rm -rf /var/lib/apt/lists/* \

scripts/aws/config-server/app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flask import Flask
2+
from datetime import datetime, timezone
23
import json
34
import os
45

@@ -14,5 +15,12 @@ def get_config():
1415
except Exception as e:
1516
return str(e), 500
1617

18+
@app.route('/getCurrentTime', methods=['GET'])
19+
def get_time():
20+
try:
21+
return datetime.now(timezone.utc).isoformat(timespec="seconds")
22+
except Exception as e:
23+
return str(e), 500
24+
1725
if __name__ == '__main__':
1826
app.run(processes=8)

scripts/aws/entrypoint.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ ifconfig lo 127.0.0.1
2222
echo "Starting vsock proxy..."
2323
/app/vsockpx --config /app/proxies.nitro.yaml --daemon --workers $(( ( $(nproc) + 3 ) / 4 )) --log-level 3
2424

25+
TIME_SYNC_URL="http://127.0.0.1:27015/getCurrentTime"
26+
TIME_SYNC_PROXY="socks5h://127.0.0.1:3305"
27+
28+
install_time_sync_cron() {
29+
mkdir -p /etc/cron.d
30+
cat > /etc/cron.d/uid-time-sync <<EOF
31+
0 0 * * * root current_time=\$(curl -sSf -x "${TIME_SYNC_PROXY}" "${TIME_SYNC_URL}") && date -u -s "\${current_time}" && echo "Time sync: updated enclave time to \${current_time}" >>/home/start.txt 2>&1
32+
EOF
33+
chmod 0644 /etc/cron.d/uid-time-sync
34+
cron
35+
}
36+
37+
install_time_sync_cron
38+
2539
build_parameterized_config() {
2640
curl -s -f -o "${PARAMETERIZED_CONFIG}" -x socks5h://127.0.0.1:3305 http://127.0.0.1:27015/getConfig
2741
REQUIRED_KEYS=("optout_base_url" "core_base_url" "core_api_token" "optout_api_token" "environment" "uid_instance_id_prefix")

scripts/aws/uid2-operator-ami/ansible/playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
ansible.builtin.systemd:
241241
name: uid2operator.service
242242
enabled: yes
243-
243+
244244
- name: Clean up tmp files
245245
file:
246246
path: /tmp/artifacts

scripts/azure-cc/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# sha from https://hub.docker.com/layers/library/eclipse-temurin/21.0.9_10-jre-alpine-3.23/images/sha256-f599f6fa11f007b6dcf6e85ec2c372c1eba2b6940a7828eb6e665665ea5edd1c
2-
FROM eclipse-temurin@sha256:243e711289b0f17e05a4df60454bbb1b8ed7b126db4de2d5535da994b7417111
1+
# sha from https://hub.docker.com/layers/library/eclipse-temurin/21.0.9_10-jre-alpine-3.23/images/sha256-79f8eb45e1219ce03b48d045b1ee920ea529acceb7ff2be6fad7b0b5cb6f07e0
2+
FROM eclipse-temurin@sha256:79f8eb45e1219ce03b48d045b1ee920ea529acceb7ff2be6fad7b0b5cb6f07e0
33

44
# Install necessary packages and set up virtual environment
5-
RUN apk update && apk add --no-cache jq python3 py3-pip && \
5+
RUN apk update && apk add --no-cache --upgrade libpng && apk add --no-cache jq python3 py3-pip && \
66
python3 -m venv /venv && \
77
. /venv/bin/activate && \
88
pip install --no-cache-dir requests azure-identity azure-keyvault-secrets && \

scripts/gcp-oidc/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# sha from https://hub.docker.com/layers/library/eclipse-temurin/21.0.9_10-jre-alpine-3.23/images/sha256-f599f6fa11f007b6dcf6e85ec2c372c1eba2b6940a7828eb6e665665ea5edd1c
2-
FROM eclipse-temurin@sha256:243e711289b0f17e05a4df60454bbb1b8ed7b126db4de2d5535da994b7417111
1+
# sha from https://hub.docker.com/layers/library/eclipse-temurin/21.0.9_10-jre-alpine-3.23/images/sha256-79f8eb45e1219ce03b48d045b1ee920ea529acceb7ff2be6fad7b0b5cb6f07e0
2+
FROM eclipse-temurin@sha256:79f8eb45e1219ce03b48d045b1ee920ea529acceb7ff2be6fad7b0b5cb6f07e0
33

44
LABEL "tee.launch_policy.allow_env_override"="API_TOKEN_SECRET_NAME,DEPLOYMENT_ENVIRONMENT,CORE_BASE_URL,OPTOUT_BASE_URL,DEBUG_MODE,SKIP_VALIDATIONS"
55
LABEL "tee.launch_policy.log_redirect"="always"
66

77
# Install Packages
8-
RUN apk update && apk add --no-cache jq python3 py3-pip && \
8+
RUN apk update && apk add --no-cache --upgrade libpng && apk add --no-cache jq python3 py3-pip && \
99
python3 -m venv /venv && \
1010
. /venv/bin/activate && \
1111
pip install --no-cache-dir google-cloud-secret-manager google-auth google-api-core packaging && \

src/main/java/com/uid2/operator/privacy/tcf/TransparentConsent.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,4 @@ public boolean hasConsent(int vendorId, TransparentConsentPurpose ... purposes)
3939
.reduce(0, (f, x) -> (f | (1 << x)))
4040
& requiredBits) == requiredBits;
4141
}
42-
43-
public boolean hasSpecialFeature(TransparentConsentSpecialFeature feature) {
44-
return this.tcString.getSpecialFeatureOptIns().contains(feature.value);
45-
}
4642
}

src/main/java/com/uid2/operator/privacy/tcf/TransparentConsentSpecialFeature.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)