{"id":19705546,"url":"https://github.com/treeverse/entra-lakefs-sync","last_synced_at":"2025-10-08T19:46:04.046Z","repository":{"id":209522047,"uuid":"719504124","full_name":"treeverse/entra-lakefs-sync","owner":"treeverse","description":"sync users and groups from Entra ID to lakeFS Cloud","archived":false,"fork":false,"pushed_at":"2024-02-26T18:57:26.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-27T17:30:55.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/treeverse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-16T10:04:16.000Z","updated_at":"2023-11-27T18:56:45.000Z","dependencies_parsed_at":"2024-11-11T21:29:46.152Z","dependency_job_id":"68222876-fe51-4deb-99e6-ceb2fa427579","html_url":"https://github.com/treeverse/entra-lakefs-sync","commit_stats":null,"previous_names":["treeverse/entra-lakefs-sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/treeverse/entra-lakefs-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treeverse%2Fentra-lakefs-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treeverse%2Fentra-lakefs-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treeverse%2Fentra-lakefs-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treeverse%2Fentra-lakefs-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/treeverse","download_url":"https://codeload.github.com/treeverse/entra-lakefs-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treeverse%2Fentra-lakefs-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000701,"owners_count":26082806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T21:28:52.365Z","updated_at":"2025-10-08T19:46:04.026Z","avatar_url":"https://github.com/treeverse.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Entra user/group sync with lakeFS\n\nSync a set of group and group memberships between Entra ID and lakeFS Cloud\n\n## setup\n\n### Installing dependencies\n\n```shell\npip install -r requirements.txt\n```\n\n### Setting up Entra ID and lakeFS credentials\n\n1. Follow step #1 (\"Register your application\") of [this guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-daemon-app-python-acquire-token#step-1-register-your-application)\n2. When setting up permissions, make sure to grant the application the `Group.Read.All` permission and grant admin consent.\n3. Ensure your **lakeFS** user is part of the `Admins` group OR has the `AuthFullAccess` policy attached, OR is granted the following permissions:\n    - `auth:ReadGroup`\n    - `auth:CreateGroup`\n    - `auth:AttachPolicy`\n4. Set the following environment variables using:\n    - `ENTRA_TENANT_ID` - taken from the app registration page: \"Directory (tenant) ID\"\n    - `ENTRA_APPLICATION_ID` - taken from the app registration page: \"Application (client) ID\"\n    - `ENTRA_CLIENT_SECRET_VALUE` - taken from the Certificate \u0026 secrets -\u003e Client Secrets, as created in step #1\n    - `LAKEFS_ACCESS_KEY_ID` - your lakeFS access key ID\n    - `LAKEFS_SECRET_ACCESS_KEY` - your lakeFS secret access key\n    - `LAKEFS_ENDPOINT` - Your lakeFS endpoint, e.g. `https://\u003cORGANIZATION_ID\u003e.\u003cREGION\u003e.lakefscloud.io`\n5. Optionally, also set the following environment variables:\n    - `GROUP_FILTER` - a fnmatch filter. Only matching group names will be synced (e.g. `LakeFSProject*`)\n    - `LAKEFS_DEFAULT_POLICIES` - a comma-seperated list of policies to automatically attach to provisioned groups (e.g. `AuthManageOwnCredentials,FSReadAll`)\n    - `DRY_RUN` (true,false - default is false) - if set to `true`, will only print out the intended operations without executing the API calls\n\nFor convenience, you can use [dotenv](https://github.com/theskumar/python-dotenv) to configure these environment variables in a `.env` file.\n\n## Running\n\n```shell\npython sync.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreeverse%2Fentra-lakefs-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreeverse%2Fentra-lakefs-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreeverse%2Fentra-lakefs-sync/lists"}