Skip to main content

shaar

Access Review Kit. Runs an offline access review: access data in, reviewer packets out, decisions back in, and a verification of what actually changed.

CI License: Apache-2.0

Status: version 0.1.1, a first release for pilots. A whole review (campaign, decisions, verification) runs end to end and is tested on synthetic data. The Active Directory exporter, shaar collect ad, and shaar collect entra have not been run against a real domain, a real WinRM endpoint, or a real Entra tenant, and packets have been tested with LibreOffice and openpyxl, not with Excel or Google Sheets. Run a small pilot review first. See Limitations and the documentation.

How it differs from existing tools. Reviews run by spreadsheet and email leave no check that the returned sheet is the one that was sent, and nothing that says afterwards whether a removal happened. Identity governance suites do both, with workflow, reminders, and a web interface, and they need a server and an account on the systems they manage. shaar is the small, offline middle: it works from exports you give it, binds each packet to the campaign it came from, and says unknown where it cannot tell. It makes no changes to any system, has no workflow, and does not certify that a review meets any standard.

About the name

shaar (SHAR). Hebrew: gate, where the elders sat to judge who could enter.

What it does

shaar runs an access review from files. It reads who holds access in Active Directory, Entra ID, or any system that can export a CSV, picks one reviewer for every entry (the person's manager, the resource's owner, or a name from your list), and writes one Excel workbook per reviewer. Reviewers mark each row Keep, Remove, or Unsure and return the workbook. shaar checks every returned row against what it sent, writes a decision record and the list of removals for an administrator to make, and later reads a fresh export to say whether each removal really happened. Where it cannot tell, it says unknown. It never grants, changes, or removes access.

Try it in five minutes

shaar example writes made-up data (corp.example) and prints three commands to run in order. After installing:

shaar example shaar-demo

Copy the three printed commands one after another (see the quickstart for what each prints). Each exits with code 1 on purpose: the example has two entries with no reviewer, one Unsure answer, one blank answer, and a removal that was not made. A real result from the committed example, the verification report:

2 of 5 removals verified. Still present: 1 past due, 0 not yet due. Unknown: 2.
The decision record is not complete, so this does not show that the review was
carried out: 3 entries have no accepted decision (undecided 1, unassigned 2);
1 entry marked Unsure.

All the sample files, reports, and returned packets are in examples/corp-example.

The four steps

  1. Start a campaign. shaar reads the exports, assigns reviewers, and writes campaign.json and one packet per reviewer.

    shaar campaign ad.jsonl entra.jsonl ledger.csv --map ledger-map.toml \
      --name "Q4 2026 access review" --reviewers manager --due 2026-11-16 -o campaign
    
  2. Send the packets. Each reviewer gets only their own packet-*.xlsx file from the campaign folder. They fill in the Decision column and send it back.

  3. Read the decisions. Put the returned workbooks in one folder, for example returned/.

    shaar decisions campaign returned/*.xlsx -o decisions
    

    The report lists accepted decisions, the removals to make, and every row that needs attention. The exit code is 1 unless every entry has a firm decision and the campaign read all its input.

  4. Verify. After the due date, export access again and check the removals. A CSV export does not say when it was taken, so its column map gives the time (collected_at); the later export needs its own map with the later time.

    shaar verify campaign decisions after/ad.jsonl after/entra.jsonl after/ledger.csv \
      --map after/ledger-map.toml -o verification
    

    These file names are the ones in your own folders. In the demo they are shaar-demo/before/, shaar-demo/returned/, and shaar-demo/after/.

The usage guide explains every option, and campaigns explains how reviewers are chosen and which returned rows count.

Inputs

  • shaar exports from the PowerShell exporter (shaar exporter DIR) or from shaar collect ad and shaar collect entra. They record nesting, owners, managers, and whether each group was read in full. See Collecting.
  • CSV files from any other system, with a column map (--map FILE.toml) or a built-in preset (--preset generic, ad-users-groups, or entra-members). shaar cannot know whether a CSV is complete, so it treats it as complete unless the map says otherwise. See Formats.

shaar detects the kind of each input from its content, not its name.

What it will not do

  • Grant, change, or remove access. An administrator makes the removals. shaar only checks them later.
  • Replace an identity governance platform. It has no workflow, no reminders, and no web interface.
  • Prove that a reviewer was who the workbook says. Packets are bound to the campaign by hashes, not signed.
  • See access that no input recorded, or judge whether access is appropriate.

See Limitations and the threat model.

Install

shaar needs Python 3.11 or newer. Reading files and writing packets needs no other package.

PyPI publishing is being set up. Until a PyPI release exists, install from GitHub:

pipx install git+https://github.com/faithful-oversight/faithful-shaar

For a fixed version, add the tag: git+https://github.com/faithful-oversight/faithful-shaar@v0.1.1. If shaar is not found afterwards, run pipx ensurepath once and open a new terminal.

Collecting and secret providers are optional extras:

Extra Adds Needed for
ad pypsrp shaar collect ad, which runs the exporter over WinRM
entra azure-identity shaar collect entra, which signs in to Microsoft Graph
keyring keyring --secret keyring:...
vault hvac --secret vault:...
aws boto3 --secret aws:...
azure azure-identity, azure-keyvault-secrets --secret azure:...
pipx install "faithful-shaar[ad,entra] @ git+https://github.com/faithful-oversight/faithful-shaar"

To work from source, see CONTRIBUTING.md.

Exit codes

Code Meaning
0 Success, with nothing that needs attention.
1 campaign, decisions, or verify finished and found something to act on, including a decision record that is not complete.
2 The command was used incorrectly.
3 An input, output, or collection problem.
4 An internal error in shaar. This is a bug.

Design goals

  • Read-only. The tool never changes the systems it examines. Collectors only read, and the Entra collector sends only GET requests.
  • Explicit unknowns. A removal that cannot be checked is unknown, never removed.
  • Traceable findings. Every finding cites its file and place, and every output has a manifest with SHA-256 digests.
  • Private by default. Packets hold one reviewer's rows. Files are owner-only and never overwritten without --force.
  • Synthetic test data only. No real organization's data is ever committed.

Documentation

Security

Please do not report security problems in public issues. See SECURITY.md.

Contributing

Contributions are welcome. Read CONTRIBUTING.md and the code of conduct first.

Trademarks

shaar is not affiliated with, endorsed by, or sponsored by Microsoft. Active Directory, Entra ID, Microsoft Graph, Excel, and PowerShell are trademarks of Microsoft Corporation, named here only to say what shaar reads and writes. Google Sheets is a trademark of Google LLC.

License

Copyright 2026 Faithful Oversight, LLC. Licensed under the Apache License, Version 2.0.

Metadata

Release files for faithful-shaar 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faithful-shaar 0.1.1
File Size Uploaded Provenance Actions
faithful_shaar-0.1.1.tar.gz 391.5 kB With provenance Details for faithful_shaar-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for faithful-shaar 0.1.1
File Interpreter ABI Platform Actions
faithful_shaar-0.1.1-py3-none-any.whl Python 3 none any Details for faithful_shaar-0.1.1-py3-none-any.whl

Total release size: 556.2 kB

Release files / faithful_shaar-0.1.1.tar.gz

Download URL faithful_shaar-0.1.1.tar.gz
Size 391.5 kB
Tags Source
SHA-256 checksum
How to use checksums
147a590748983b18aaf2da0e2189ece53b513f4028642a444b1b7c14283ffda9
BLAKE2b-256 checksum
How to use checksums
cc89ae0027887f6a7971fcc8c60597df0df595264a2ea887834dd2fa2754ea0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / faithful_shaar-0.1.1-py3-none-any.whl

Download URL faithful_shaar-0.1.1-py3-none-any.whl
Size 164.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b8743fcc4dadfa469922676580dc7c79fd95362bb99b15349c6bae1276c9816
BLAKE2b-256 checksum
How to use checksums
5516fd5ad098ced28f256170148f850a4df4c29fd5235b853575e7070e74fcf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for faithful-shaar 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for faithful_shaar-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page