Skip to main content

A local daemon-backed AWS temporary credential broker, exposed over a Unix socket and controlled via CLI.

Project description

elhaz



What is elhaz?

elhaz is a local daemon-backed AWS temporary credential broker, exposed over a Unix socket and controlled via CLI.

Instead of a locally hosted HTTP metadata emulation service (ECS), which is less secure and requires multiple processes for each assumed RoleArn, elhaz runs a single process and serves automatically refreshed temporary AWS credentials on demand.

elhaz caches AWS sessions for however long the daemon is kept alive (or sessions are removed by command), which eliminates redundant session creations and STS calls.

Unix-socket IPC is lightweight and gives a tighter local boundary than HTTP, avoids exposing local credential endpoints over TCP, and allows temporary credentials to live in memory rather than at rest on disk.

Crucially, because elhaz uses boto3-refresh-session as its core dependency for refreshing temporary AWS security credentials, which in turn depends on botocore, elhaz supports IAM Identity Center (SSO) using the AWS CLI.

elhaz makes multi-role local AWS workflows cleaner by combining brokered access, in-memory caching, IAM Identity Center (SSO) support, and host-local IPC into one model.

elhaz was authored by Mike Letts and is maintained by 61418.

Installation

With uv:

uv tool install elhaz

With pipx:

pipx install elhaz

Usage

To get started with using elhaz, check the quickstart guide.

To learn critical concepts for using elhaz, check the concepts section of the docs.

For technical details, check the CLI docs.

Testimonials

In this blog post, EngSecLabs cleverly mounts the Unix socket managed by elhaz to a docker container in order to sandbox/isolate an AI agent, effectively using elhaz like a credential proxy.

License

elhaz is licensed by the Mozilla Public License 2.0 (MPL-2.0).

Contributing

Refer to the contributing guidelines.

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

elhaz-0.5.2.tar.gz (132.8 kB view details)

Uploaded Source

Built Distribution

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

elhaz-0.5.2-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

Details for the file elhaz-0.5.2.tar.gz.

File metadata

  • Download URL: elhaz-0.5.2.tar.gz
  • Upload date:
  • Size: 132.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for elhaz-0.5.2.tar.gz
Algorithm Hash digest
SHA256 104f6c1fd44c1fc733767c7a1280bb93a256d8a751bae9f09e529e3d3ed1f83f
MD5 2629a2dee1da1518cb32ea6df78527a6
BLAKE2b-256 465d25c63b8258ffa6f349fd07bb918ff1a1d12f4a8bf80cb1b67bcc5a0d44d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for elhaz-0.5.2.tar.gz:

Publisher: push.yml on 61418/elhaz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file elhaz-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: elhaz-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 39.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for elhaz-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34f9863bde8337b50d377e1d836652a493d20910dbbe5ff6e7ace86f3b65bc8f
MD5 46274c976a79d7e728faf2e7be1ac941
BLAKE2b-256 845140b4ee489ff0e0ed458d435e968ac35936c4b752f26b134253c424fd6def

See more details on using hashes here.

Provenance

The following attestation bundles were made for elhaz-0.5.2-py3-none-any.whl:

Publisher: push.yml on 61418/elhaz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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