Skip to content

Commit 2df6ed4

Browse files
Merge branch 'main' into bmz-UID2-7146-restrict-deployment-role
2 parents a716a29 + d97ccfa commit 2df6ed4

7 files changed

Lines changed: 19 additions & 11 deletions

File tree

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.70.118-alpha-228-SNAPSHOT</version>
9+
<version>5.70.131</version>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Raise the connection timeout from the default 10s.
2+
# fixes "Timeout (12s) waiting for privilege escalation prompt" since May 2026
3+
[defaults]
4+
timeout = 60
5+
6+
# Reuse one persistent SSH connection for the whole play
7+
# (ControlMaster/ControlPersist) and pipe module execution over it (pipelining)
8+
# so we pay the slow SSM setup once instead of per task. ServerAlive keepalives
9+
# generate traffic so a long-running task's session isn't idle-reaped.
10+
# Intends to solve an issue where the playbook hangs, seemingly due to the above SSM
11+
# setup time.
12+
[ssh_connection]
13+
pipelining = True
14+
ssh_args = -o ControlMaster=auto -o ControlPersist=600s -o ServerAliveInterval=30 -o ServerAliveCountMax=20

scripts/azure-aks/deployment/generate-deployment-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fi
8282
# Export the policy, update it to turn off allow_environment_variable_dropping, and then insert it into the template
8383
# note that the EnclaveId is generated by generate.py on the raw policy, not the base64 version
8484
POLICY_DIGEST_FILE=azure-aks-operator-digest-$VERSION_NUMBER.txt
85-
az confcom acipolicygen --virtual-node-yaml ${OUTPUT_DIR}/operator.yaml --print-policy > ${INPUT_DIR}/policy.base64
85+
az confcom acipolicygen --omit-id --virtual-node-yaml ${OUTPUT_DIR}/operator.yaml --print-policy > ${INPUT_DIR}/policy.base64
8686
if [[ $? -ne 0 ]]; then
8787
echo "Failed to generate ACI policy"
8888
exit 1

scripts/azure-aks/deployment/operator.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
microsoft.containerinstance.virtualnode.injectdns: "false"
1818
spec:
1919
containers:
20-
- image: "mcr.microsoft.com/aci/skr:2.7"
20+
- image: "mcr.microsoft.com/aci/skr:2.14"
2121
imagePullPolicy: Always
2222
name: skr
2323
resources:
@@ -54,8 +54,6 @@ spec:
5454
value: OPERATOR_KEY_SECRET_NAME_PLACEHOLDER
5555
- name: DEPLOYMENT_ENVIRONMENT
5656
value: DEPLOYMENT_ENVIRONMENT_PLACEHOLDER
57-
- name: IMAGE_NAME
58-
value: IMAGE_PLACEHOLDER
5957
ports:
6058
- containerPort: 8080
6159
protocol: TCP

scripts/azure-cc/azr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __get_azure_image_info(self) -> str:
8888
Fetches Image version from non-modifiable environment variable.
8989
"""
9090
try:
91-
return os.getenv("IMAGE_NAME")
91+
return os.getenv("IMAGE_VERSION")
9292
except Exception as e:
9393
raise RuntimeError(f"Failed to fetch Azure image info: {e}")
9494

scripts/azure-cc/deployment/generate-deployment-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fi
8484
# Export the policy, update it to turn off allow_environment_variable_dropping, and then insert it into the template
8585
# note that the EnclaveId is generated by generate.py on the raw policy, not the base64 version
8686
POLICY_DIGEST_FILE=azure-cc-operator-digest-$VERSION_NUMBER.txt
87-
az confcom acipolicygen --approve-wildcards --template-file ${OUTPUT_DIR}/operator.json --print-policy > ${INPUT_DIR}/policy.base64
87+
az confcom acipolicygen --approve-wildcards --omit-id --template-file ${OUTPUT_DIR}/operator.json --print-policy > ${INPUT_DIR}/policy.base64
8888
base64 -di < ${INPUT_DIR}/policy.base64 > ${INPUT_DIR}/generated.rego
8989
sed -i "s#allow_environment_variable_dropping := true#allow_environment_variable_dropping := false#g" ${INPUT_DIR}/generated.rego
9090
base64 -w0 < ${INPUT_DIR}/generated.rego > ${INPUT_DIR}/generated.rego.base64

scripts/azure-cc/deployment/operator.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@
121121
}
122122
},
123123
"environmentVariables": [
124-
{
125-
"name": "IMAGE_NAME",
126-
"value": "IMAGE_PLACEHOLDER"
127-
},
128124
{
129125
"name": "VAULT_NAME",
130126
"value": "[parameters('vaultName')]"

0 commit comments

Comments
 (0)