Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credential Isolation

A small capability-token experiment proving allowed-path reads, refresh, and denial of every unapproved path.

Engineering question

Can a workload use short-lived path-scoped credentials without falling back to ambient credentials?

What it demonstrates

  • short-lived credentials bound to one path prefix
  • positive and negative object-access checks
  • explicit expiry and refresh behavior
  • no environment, metadata, or shared-profile fallback

Run it

Requires Python 3.10+.

python -m unittest discover -s tests -v
PYTHONPATH=src python -m credential_isolation

The demo prints deterministic JSON that can be inspected or used as a CI artifact.

Limitations

  • the object store and broker are in-memory test doubles
  • real workload identity exchanges belong in provider-specific adapters

CI

A tested GitHub Actions definition is included at ci/github-actions.yml. Move it to .github/workflows/ci.yml to activate hosted CI. It is kept as a template because the current GitHub CLI credential cannot modify workflow files without an additional account authorization.

Clean-room statement

This is newly written open-source code using synthetic inputs and generic identifiers. It contains no employer source, private data, production configuration, credentials, internal resource identifiers, or private benchmark results.

License

MIT

About

Prove path-scoped temporary credential isolation with positive and negative tests.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages