Skip to content

DXE-5681 Status: 401 - The signature does not match - on docker #115

@nicolicioiul

Description

@nicolicioiul

To Reproduce
Steps to reproduce the behavior:

  1. Use docker image
FROM docker.io/library/python:3.13-slim

RUN groupadd --gid 2000 appgroup && \
    useradd --uid 2000 --gid 2000 --shell /bin/bash appuser

WORKDIR /app

COPY src/ ./

RUN pip install --no-cache-dir -r requirements.txt

USER 2000

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080", "--log-config", "config/logging.yaml" ,"--access-log"]
  1. Authentication method:
        session = requests.Session()
        session.auth = EdgeGridAuth(
            client_token=self.config.client_token,
            client_secret=self.config.client_secret,
            access_token=self.config.access_token,
            max_body=4*128*1024,
        )
        session.headers.update(self.DEFAULT_HEADERS)
  1. call the api method api 6. Response from AKAMAI endpoint.```{
    "type": "https://problems.luna.akamaiapis.net/-/pep-authn/deny",
    "title": "Not authorized",
    "status": 401,
    "detail": "The signature does not match",
    "instance": "https://xxxxx/ccu/v3/delete/tag/production",
    "method": "POST",
    "serverIp": "xxxx",
    "clientIp": "x",
    "requestId": "1597b22f",
    "requestTime": "2025-09-xxxx:13:42Z"
    }
**Expected behavior**
 Success response.

The same script is working fine out of Docker container, in shell script.
- OS: Linux Debian 12.7
- app requirements.txt

starlette
uvicorn[standard]
requests
edgegrid-python


Name: edgegrid-python
Version: 2.0.2
Summary: {OPEN} client authentication protocol for python-requests
Home-page: https://github.com/akamai/AkamaiOPEN-edgegrid-python
Author:
Author-email:
License: Apache 2.0
Location: /usr/local/lib/python3.13/site-packages
Requires: requests, requests-toolbelt
Required-by:

**Additional context**
Same credentials are used on both side.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions