Skip to content

Commit 3979ca4

Browse files
committed
Merge remote-tracking branch 'origin/main' into syw-UID2-4159-token-gen-code-refactoring-UserIdentity
2 parents 5a4ab03 + 1ec1f9e commit 3979ca4

File tree

100 files changed

+2978
-2241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+2978
-2241
lines changed

.github/actions/build_ami/action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ runs:
8787
FILE=$(echo $ARTIFACTS | jq -r '.[0].name')
8888
unzip -o -d ./scripts/aws/uid2-operator-ami/artifacts $FILE.zip
8989
rm $FILE.zip
90+
cd "./scripts/aws/uid2-operator-ami/artifacts/"
91+
zip "uid2operatoreif.zip" "uid2operator.eif"
92+
cd -
93+
rm ./scripts/aws/uid2-operator-ami/artifacts/uid2operator.eif
94+
ls ./scripts/aws/uid2-operator-ami/artifacts/ -al
9095
9196
- name: Configure UID2 AWS credentials
9297
uses: aws-actions/configure-aws-credentials@v4

.github/actions/build_aws_eif/action.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,22 @@ runs:
117117
docker cp amazonlinux:/sockd ${ARTIFACTS_OUTPUT_DIR}/
118118
docker cp amazonlinux:/vsockpx ${ARTIFACTS_OUTPUT_DIR}/
119119
docker cp amazonlinux:/${{ inputs.identity_scope }}operator.eif ${ARTIFACTS_OUTPUT_DIR}/uid2operator.eif
120+
121+
eifsize=$(wc -c < "${ARTIFACTS_OUTPUT_DIR}/uid2operator.eif")
122+
if [ $eifsize -le 1 ]; then
123+
echo "The eif was less then 1 byte. This indicates a build failure"
124+
exit 1
125+
fi
120126
121127
docker cp amazonlinux:/pcr0.txt ${{ steps.buildFolder.outputs.BUILD_FOLDER }}
122128
docker cp amazonlinux:/pcr0.txt ${ARTIFACTS_OUTPUT_DIR}/
123129
echo "enclave_id=$(cat ${{ steps.buildFolder.outputs.BUILD_FOLDER}}/pcr0.txt)" >> $GITHUB_OUTPUT
130+
131+
pcrsize=$(wc -c < "${{ steps.buildFolder.outputs.BUILD_FOLDER}}/pcr0.txt")
132+
if [ $pcrsize -le 1 ]; then
133+
echo "The pcr0.txt file was less then 1 byte. This indicates a build failure"
134+
exit 1
135+
fi
124136
125137
- name: Cleanup
126138
shell: bash

.github/actions/update_operator_version/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
3434
steps:
3535
- name: Check branch and release type
3636
id: checkRelease
37-
uses: IABTechLab/uid2-shared-actions/actions/check_branch_and_release_type@v2
37+
uses: IABTechLab/uid2-shared-actions/actions/check_branch_and_release_type@v3
3838
with:
3939
release_type: ${{ inputs.release_type }}
4040

@@ -81,7 +81,7 @@ runs:
8181

8282
- name: Set version number
8383
id: version
84-
uses: IABTechLab/uid2-shared-actions/actions/version_number@v2
84+
uses: IABTechLab/uid2-shared-actions/actions/version_number@v3
8585
with:
8686
type: ${{ inputs.release_type }}
8787
version_number: ${{ inputs.version_number_input }}

.github/workflows/publish-all-operators.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
GITHUB_CONTEXT: ${{ toJson(github) }}
6060

6161
- name: Check branch and release type
62-
uses: IABTechLab/uid2-shared-actions/actions/check_branch_and_release_type@v2
62+
uses: IABTechLab/uid2-shared-actions/actions/check_branch_and_release_type@v3
6363
with:
6464
release_type: ${{ inputs.release_type }}
6565

@@ -69,14 +69,15 @@ jobs:
6969
fetch-depth: 0
7070

7171
- name: Scan vulnerabilities
72-
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v3
72+
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan@v3
7373
with:
7474
scan_severity: HIGH,CRITICAL
7575
failure_severity: CRITICAL
76+
scan_type: 'fs'
7677

7778
- name: Set version number
7879
id: version
79-
uses: IABTechLab/uid2-shared-actions/actions/version_number@v2
80+
uses: IABTechLab/uid2-shared-actions/actions/version_number@v3
8081
with:
8182
type: ${{ env.RELEASE_TYPE }}
8283
branch_name: ${{ github.ref }}

.trivyignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55
# https://thetradedesk.atlassian.net/browse/UID2-4460
66
CVE-2024-47535
77

8-
# https://thetradedesk.atlassian.net/browse/UID2-4874
9-
CVE-2025-24970 exp:2025-04-03
10-
118
# https://thetradedesk.atlassian.net/browse/UID2-5186
12-
CVE-2024-8176 exp:2025-04-03
9+
CVE-2024-8176 exp:2025-06-03

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# sha from https://hub.docker.com/layers/amd64/eclipse-temurin/21.0.6_7-jre-alpine/images/sha256-f184bb601f9e6068dd0a92738764d1ff447ab68c15ddbf8c303c5c29de9a1df8
2-
FROM eclipse-temurin@sha256:f184bb601f9e6068dd0a92738764d1ff447ab68c15ddbf8c303c5c29de9a1df8
1+
# sha from https://hub.docker.com/layers/amd64/eclipse-temurin/21.0.7_6-jre-alpine-3.21/images/sha256-62fa775039897e4420368514ba6c167741f6d45a0de9ff9125bee57e5aca8b75
2+
FROM eclipse-temurin@sha256:62fa775039897e4420368514ba6c167741f6d45a0de9ff9125bee57e5aca8b75
33

44
WORKDIR /app
55
EXPOSE 8080
@@ -17,11 +17,10 @@ COPY ./target/${JAR_NAME}-${JAR_VERSION}-sources.jar /app
1717
COPY ./target/${JAR_NAME}-${JAR_VERSION}-static.tar.gz /app/static.tar.gz
1818
COPY ./conf/default-config.json /app/conf/
1919
COPY ./conf/*.xml /app/conf/
20-
COPY ./conf/runtime-config-defaults.json /app/conf/
2120

2221
RUN tar xzvf /app/static.tar.gz --no-same-owner --no-same-permissions && rm -f /app/static.tar.gz
2322

24-
RUN adduser -D uid2-operator && mkdir -p /opt/uid2 && chmod 777 -R /opt/uid2 && mkdir -p /app && chmod 705 -R /app && mkdir -p /app/file-uploads && chmod 777 -R /app/file-uploads
23+
RUN adduser -D uid2-operator && mkdir -p /opt/uid2 && chmod 777 -R /opt/uid2 && mkdir -p /app && chmod 705 -R /app && mkdir -p /app/file-uploads && chmod 777 -R /app/file-uploads && mkdir -p /app/pod_terminating && chmod 777 -R /app/pod_terminating
2524
USER uid2-operator
2625

2726
CMD java \

conf/default-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"service_links_metadata_path": "service_links/metadata.json",
3333
"cloud_encryption_keys_metadata_path": "cloud_encryption_keys/metadata.json",
3434
"encrypted_files": false,
35-
"cloud_encryption_keys_refresh_ms": 300000,
3635
"optout_metadata_path": null,
3736
"optout_inmem_cache": false,
3837
"enclave_platform": null,
3938
"failure_shutdown_wait_hours": 120,
4039
"sharing_token_expiry_seconds": 2592000,
4140
"operator_type": "public",
42-
"enable_remote_config": false
41+
"enable_remote_config": false,
42+
"uid_instance_id_prefix": "local-operator"
4343
}

conf/docker-config.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,16 @@
3232
"services_metadata_path": "/com.uid2.core/test/services/metadata.json",
3333
"service_links_metadata_path": "/com.uid2.core/test/service_links/metadata.json",
3434
"cloud_encryption_keys_metadata_path": "/com.uid2.core/test/cloud_encryption_keys/metadata.json",
35-
"encrypted_files": true,
35+
"runtime_config_metadata_path": "/com.uid2.core/test/runtime_config/metadata.json",
36+
"encrypted_files": false,
3637
"identity_token_expires_after_seconds": 3600,
3738
"optout_metadata_path": null,
3839
"optout_inmem_cache": false,
3940
"enclave_platform": null,
4041
"failure_shutdown_wait_hours": 120,
4142
"salts_expired_shutdown_hours": 12,
4243
"operator_type": "public",
43-
"runtime_config_store": {
44-
"type": "file",
45-
"config" : {
46-
"path": "conf/runtime-config-defaults.json",
47-
"format": "json"
48-
},
49-
"config_scan_period_ms": 5000
50-
},
51-
"disable_optout_token": false,
52-
"enable_remote_config": false
44+
"disable_optout_token": true,
45+
"enable_remote_config": false,
46+
"uid_instance_id_prefix": "local-operator"
5347
}

conf/integ-config.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,10 @@
1414
"optout_api_token": "test-operator-key",
1515
"optout_api_uri": "http://localhost:8081/optout/replicate",
1616
"cloud_encryption_keys_metadata_path": "http://localhost:8088/cloud_encryption_keys/retrieve",
17+
"runtime_config_metadata_path": "http://localhost:8088/operator/config",
1718
"salts_expired_shutdown_hours": 12,
1819
"operator_type": "public",
19-
"runtime_config_store": {
20-
"type": "http",
21-
"config" : {
22-
"url": "http://localhost:8088/operator/config"
23-
},
24-
"config_scan_period_ms": 300000
25-
},
26-
"disable_optout_token": false,
27-
"enable_remote_config": false
20+
"disable_optout_token": true,
21+
"enable_remote_config": false,
22+
"uid_instance_id_prefix": "local-operator"
2823
}

conf/local-config.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"services_metadata_path": "/com.uid2.core/test/services/metadata.json",
1111
"service_links_metadata_path": "/com.uid2.core/test/service_links/metadata.json",
1212
"cloud_encryption_keys_metadata_path": "/com.uid2.core/test/cloud_encryption_keys/metadata.json",
13+
"runtime_config_metadata_path": "/com.uid2.core/test/runtime_config/metadata.json",
1314
"identity_token_expires_after_seconds": 3600,
1415
"refresh_token_expires_after_seconds": 86400,
1516
"refresh_identity_token_after_seconds": 900,
@@ -38,15 +39,8 @@
3839
"client_side_token_generate_log_invalid_http_origins": true,
3940
"salts_expired_shutdown_hours": 12,
4041
"operator_type": "public",
41-
"encrypted_files": true,
42-
"runtime_config_store": {
43-
"type": "file",
44-
"config" : {
45-
"path": "conf/runtime-config-defaults.json",
46-
"format": "json"
47-
},
48-
"config_scan_period_ms": 5000
49-
},
50-
"disable_optout_token": false,
51-
"enable_remote_config": false
42+
"encrypted_files": false,
43+
"disable_optout_token": true,
44+
"enable_remote_config": false,
45+
"uid_instance_id_prefix": "local-operator"
5246
}

0 commit comments

Comments
 (0)