Skip to content

Authentication workflow for Processing Service V2 #964

Description

@carlosgjs

Suggested Authentication Token Management Workflow

The worker currently expects:

ANTENNA_API_BASE_URL: The base URL of the Antenna Django application
ANTENNA_API_TOKEN: The authentication token for API access

Antenna Admin

  1. Creates user for the Worker
  2. Generates a token via /admin/authtoken/tokenproxy/add/
  3. Communicates token to Worker Admin

Worker Admin:

# Set environment variables
export ANTENNA_API_BASE_URL="https://antenna.yourorg.com"
export ANTENNA_API_TOKEN="your-generated-token-here"
# Or create a .env file
echo "ANTENNA_API_BASE_URL=https://antenna.yourorg.com" > .env
echo "ANTENNA_API_TOKEN=your-generated-token-here" >> .env

Run the worker:

ami worker --pipelines moth_binary

Recommend manually rotating tokens periodically (quarterly/annually)

Metadata

Metadata

Assignees

Labels

PSv2Async & distributed ML backend (PSv2): job state, NATS dispatch, result handling. Umbrella #515.Pipeline APIUpdates to the requests & responses to/from processing service workers for ML pipelinesVISS-SSEC

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions