Skip to content

Commit 30ea1c1

Browse files
authored
Update agent manifests: document FARCASTER_FORCE_TCP, clarify API URL default, remove privileged init and disable privilege escalation (#43)
1 parent 3cda329 commit 30ea1c1

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

compose/docker-compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ services:
1212
# Learn more at https://help.probely.com/en/articles/6503388-how-to-install-a-scanning-agent
1313
#
1414
# FARCASTER_API_URL
15-
# Probely's API URL
15+
# Probely's API URL. If not set, the Agent will use the API URLs for all regions.
16+
#
17+
# FARCASTER_FORCE_TCP
18+
# If set to true, the Agent will use TCP to connect to Probely.
1619
#
1720
# HTTP_PROXY (optional)
1821
# An advanced option that can be used to configure an HTTP proxy for the Agent to connect to Probely.
@@ -25,7 +28,8 @@ services:
2528
tmpfs:
2629
- /run
2730
cap_add:
28-
- NET_ADMIN
31+
# Required for kernel support. If you remove this, the Agent will fall back to a userspace TCP/IP stack.
32+
- NET_ADMIN
2933
restart: unless-stopped
3034

3135
volumes:

contrib/kubernetes/agent-depl.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ spec:
1313
labels:
1414
app: farcaster-agent
1515
spec:
16-
initContainers:
17-
- name: init
18-
image: busybox:stable
19-
command:
20-
- sh
21-
- -c
22-
- sysctl -w net.ipv4.ip_forward=1 && sysctl -w net.ipv4.conf.all.forwarding=1
23-
securityContext:
24-
privileged: true
25-
capabilities:
26-
add:
27-
- NET_ADMIN
2816
containers:
2917
- name: agent
3018
image: probely/farcaster-onprem-agent:v3
@@ -35,16 +23,12 @@ spec:
3523
secretKeyRef:
3624
name: farcaster-secrets
3725
key: token
38-
- name: DISABLE_FIREWALL
39-
value: "0"
4026
resources:
4127
requests:
4228
cpu: "1"
4329
memory: "128Mi"
4430
securityContext:
45-
capabilities:
46-
add:
47-
- SETUID
31+
allowPrivilegeEscalation: false
4832
volumeMounts:
4933
- name: run-tmpfs
5034
mountPath: /run

0 commit comments

Comments
 (0)