Kinto / Kinto/kinto

Custom Certificate for OpenId / urllib3?

Open
#3,092 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
Python
Stars
4.4k
Forks
437
Avg merge
1d 2h
Merged PRs (30d)
15

Description

I'm trying to get Kinto to run in a development setup with docker, OpenID (Authentik for now) and behind SSL. However, that requires the kinto application running in the container to trust the ssl certificate of the OpenID provider, which is self-signed.

I made a custom kinto image and added the root certificate to the usual trust store. I can run wget and curl from that image no problem, but kinto and urllib3 don't want to have anything to do with it.

As far as I have come so far, urllib3 uses pyOpenSSL so it should use that truststore. Also the certificate file seems correctly installed as a pem file. There are instructions in the urllib3 documentation how to change the code to use a custom bundle, but that would mean to change kinto and pyramid...

Is there an obvious thing I'm missing?

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by reproducing the Docker setup with Kinto, Authentik, and the self-signed certificate, then inspect how Kinto and urllib3 obtain their certificate trust store. Done means establishing whether Kinto can trust the provider certificate and documenting the required configuration or code boundary.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, networking, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.