Skip to main content

No project description provided

Project description

Datalayer

Ξ 🛂 Datalayer IAM

Datalayer IAM service delivers Identity and Access (aka Authentication and Authorization) to the Datalayer platform.

make dev
make start
open http://localhost:9700/api/iam/version

Development

IAM as middleware

The devcontainer docker compose file defines traefik as a reverse proxy behind which is added a whoami service.

The proxy check for valid user authentication by adding a forwardAuth middleware that will ask datalayer IAM if the request is allowed or not.

To test it, assuming you are executing this project with VS Code on dev container,

  1. Uncomment the services reverse-proxy and whoami in the dev docker-compose. Then restart the dev container.

  2. Update your local file /etc/hosts to add:

127.0.1.1       whoami.example.com
  1. Start IAM server
cd iam
make start
  1. Create an datalayer user and get a JWT token for it.

  2. With a terminal (outside of VS Code), you can now test the forwardAuth middleware

    a. Forbidden case: curl http://whoami.example.com:9080 b. Allowed case: curl -H 'Authorization: Bearer <JWT token>' http://whoami.example.com:9080

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datalayer_iam-0.0.11.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datalayer_iam-0.0.11-py3-none-any.whl (65.4 kB view details)

Uploaded Python 3

File details

Details for the file datalayer_iam-0.0.11.tar.gz.

File metadata

  • Download URL: datalayer_iam-0.0.11.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for datalayer_iam-0.0.11.tar.gz
Algorithm Hash digest
SHA256 a316ea185534ec46bc7912b97483353b4b821e4bc8e8ce53bf698c8cc7bc9ac4
MD5 57efdfaad59a3098bd83384b226892be
BLAKE2b-256 fd6b736e75245f18c0b8430cf2a5806b9f8399cb80b5e22b8c4f312f212aad29

See more details on using hashes here.

File details

Details for the file datalayer_iam-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: datalayer_iam-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 65.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for datalayer_iam-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 7c38eb05dd1d416d79de6f88388ab3ad8bf23012eaa0df5087fe1ef3dccf2810
MD5 cf5abaa4ddb2a9e89bd96c61643f3ea7
BLAKE2b-256 b965ecacef5a3e42e63498ccb5d7f7489d51da8dcaed10f515e38ee48e7dc7a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page