Skip to content

Commit 95aebb9

Browse files
committed
Remove API_BEARER_TOKEN from interactive prompt
Token is auto-generated and rotated on every deploy — prompting the user for it was confusing and immediately overwritten. Keep the key in .env.example with a do-not-edit comment so install.sh still seeds it into .env for docker-compose.
1 parent 8b25204 commit 95aebb9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ EUOSINT_SITE_ADDRESS=:80
1111
# all|merge|fast|browser|api|api-ucdp|api-acled|api-gdelt
1212
COLLECTOR_ROLE=all
1313

14+
# Internal API auth (auto-rotated on deploy — do not edit).
15+
API_BEARER_TOKEN=
16+
1417
# External conflict data APIs.
1518
UCDP_ACCESS_TOKEN=
16-
API_BEARER_TOKEN=
1719
ACLED_USERNAME=
1820
ACLED_PASSWORD=
1921

deploy/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ configure_env() {
246246
[[ -z "$key" ]] && continue
247247
local example_val="${line#*=}"
248248

249-
# Ports are auto-derived from EUOSINT_SITE_ADDRESS — skip.
249+
# Ports are auto-derived; bearer token is auto-rotated — skip.
250250
case "$key" in
251-
EUOSINT_HTTP_PORT|EUOSINT_HTTPS_PORT) continue ;;
251+
EUOSINT_HTTP_PORT|EUOSINT_HTTPS_PORT|API_BEARER_TOKEN) continue ;;
252252
esac
253253

254254
# Current value from .env if present, otherwise .env.example default.

0 commit comments

Comments
 (0)