Skip to content

Trying to use Arkime's API from another docker service #335

Closed Answered by mmguero
jedagda asked this question in Q&A
Discussion options

You must be logged in to vote

Sure! Since all authentication actually happens in the nginx-proxy reverse proxy container, access between containers on the same Docker network actually occurs unauthenticated. That means that in order to do something like curl from within another Docker container to the Arkime docker container, there are some other headers we need to specify to indicate to Arkime that we're already authenticated as a particular user, the same way the nginx-proxy container does:

$ docker compose exec dashboards-helper \
>     curl -ksS \
>     -H 'Authorization: ' \
>     -H 'http_auth_http_user: guest' \
>     "https://arkime:8005/api/files" | jq
{
  "recordsTotal": 2,
  "recordsFiltered": 2,
  "data": …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jedagda
Comment options

Answer selected by jedagda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants