├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ ├── config.yml │ └── feature_request.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── build_and_test.yml │ ├── ci.yml │ ├── comment_pr.yml │ ├── nightly_build.yml │ └── semantic_version_check.yml ├── .gitignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── NOTICE ├── README.md ├── SECURITY.md ├── benches ├── README.md ├── data │ ├── 10.cedar │ ├── 10.entities.json │ ├── 100.cedar │ ├── 100.entities.json │ ├── 1000.cedar │ └── 1000.entities.json ├── data_gen │ ├── data_gen.rs │ ├── entities.rs │ ├── policy.rs │ └── utils.rs └── is_authorized.rs ├── deny.toml ├── examples ├── server │ ├── Cargo.toml │ ├── README.md │ ├── request_allow.json │ ├── request_deny.json │ └── src │ │ ├── authorization.rs │ │ ├── cedar_query.rs │ │ ├── handler.rs │ │ └── main.rs ├── simple_semver_check │ ├── .gitignore │ ├── Cargo.toml │ ├── simple.cedar │ ├── simple.entities.json │ └── src │ │ └── main.rs └── tracing │ ├── .gitignore │ ├── README.md │ ├── application_log │ ├── Cargo.toml │ └── src │ │ └── main.rs │ └── authorization_log │ ├── Cargo.toml │ ├── authorization_config.log │ └── src │ └── main.rs ├── scripts └── build_and_test.sh ├── src ├── lib.rs └── public │ ├── events │ ├── core.rs │ ├── mod.rs │ └── receive.rs │ ├── file │ ├── entity_provider.rs │ ├── mod.rs │ └── policy_set_provider.rs │ ├── log │ ├── error.rs │ ├── event.rs │ ├── mod.rs │ └── schema.rs │ ├── mod.rs │ └── simple.rs └── tests ├── data ├── malformed_entities.json ├── malformed_policies.cedar ├── schema.cedarschema.json ├── schema_bad.cedarschema.json ├── static_and_templates.cedar ├── static_policies.cedar ├── sweets.cedar ├── sweets.entities.json ├── sweets.schema.cedar.json ├── sweets_input.entities.json └── templates.cedar └── lib.rs /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/.github/ISSUE_TEMPLATE/bug_report.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/.github/ISSUE_TEMPLATE/feature_request.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/build_and_test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/.github/workflows/build_and_test.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/comment_pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/.github/workflows/comment_pr.yml -------------------------------------------------------------------------------- /.github/workflows/nightly_build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/.github/workflows/nightly_build.yml -------------------------------------------------------------------------------- /.github/workflows/semantic_version_check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/.github/workflows/semantic_version_check.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | .DS_Store 3 | .idea/ 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/LICENSE -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright Cedar Contributors 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/SECURITY.md -------------------------------------------------------------------------------- /benches/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/README.md -------------------------------------------------------------------------------- /benches/data/10.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data/10.cedar -------------------------------------------------------------------------------- /benches/data/10.entities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data/10.entities.json -------------------------------------------------------------------------------- /benches/data/100.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data/100.cedar -------------------------------------------------------------------------------- /benches/data/100.entities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data/100.entities.json -------------------------------------------------------------------------------- /benches/data/1000.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data/1000.cedar -------------------------------------------------------------------------------- /benches/data/1000.entities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data/1000.entities.json -------------------------------------------------------------------------------- /benches/data_gen/data_gen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data_gen/data_gen.rs -------------------------------------------------------------------------------- /benches/data_gen/entities.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data_gen/entities.rs -------------------------------------------------------------------------------- /benches/data_gen/policy.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data_gen/policy.rs -------------------------------------------------------------------------------- /benches/data_gen/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/data_gen/utils.rs -------------------------------------------------------------------------------- /benches/is_authorized.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/benches/is_authorized.rs -------------------------------------------------------------------------------- /deny.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/deny.toml -------------------------------------------------------------------------------- /examples/server/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/server/Cargo.toml -------------------------------------------------------------------------------- /examples/server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/server/README.md -------------------------------------------------------------------------------- /examples/server/request_allow.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/server/request_allow.json -------------------------------------------------------------------------------- /examples/server/request_deny.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/server/request_deny.json -------------------------------------------------------------------------------- /examples/server/src/authorization.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/server/src/authorization.rs -------------------------------------------------------------------------------- /examples/server/src/cedar_query.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/server/src/cedar_query.rs -------------------------------------------------------------------------------- /examples/server/src/handler.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/server/src/handler.rs -------------------------------------------------------------------------------- /examples/server/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/server/src/main.rs -------------------------------------------------------------------------------- /examples/simple_semver_check/.gitignore: -------------------------------------------------------------------------------- 1 | Cargo.lock 2 | target/ -------------------------------------------------------------------------------- /examples/simple_semver_check/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/simple_semver_check/Cargo.toml -------------------------------------------------------------------------------- /examples/simple_semver_check/simple.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/simple_semver_check/simple.cedar -------------------------------------------------------------------------------- /examples/simple_semver_check/simple.entities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/simple_semver_check/simple.entities.json -------------------------------------------------------------------------------- /examples/simple_semver_check/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/simple_semver_check/src/main.rs -------------------------------------------------------------------------------- /examples/tracing/.gitignore: -------------------------------------------------------------------------------- 1 | output/ 2 | -------------------------------------------------------------------------------- /examples/tracing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/tracing/README.md -------------------------------------------------------------------------------- /examples/tracing/application_log/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/tracing/application_log/Cargo.toml -------------------------------------------------------------------------------- /examples/tracing/application_log/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/tracing/application_log/src/main.rs -------------------------------------------------------------------------------- /examples/tracing/authorization_log/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/tracing/authorization_log/Cargo.toml -------------------------------------------------------------------------------- /examples/tracing/authorization_log/authorization_config.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/tracing/authorization_log/authorization_config.log -------------------------------------------------------------------------------- /examples/tracing/authorization_log/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/examples/tracing/authorization_log/src/main.rs -------------------------------------------------------------------------------- /scripts/build_and_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/scripts/build_and_test.sh -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/public/events/core.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/events/core.rs -------------------------------------------------------------------------------- /src/public/events/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/events/mod.rs -------------------------------------------------------------------------------- /src/public/events/receive.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/events/receive.rs -------------------------------------------------------------------------------- /src/public/file/entity_provider.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/file/entity_provider.rs -------------------------------------------------------------------------------- /src/public/file/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/file/mod.rs -------------------------------------------------------------------------------- /src/public/file/policy_set_provider.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/file/policy_set_provider.rs -------------------------------------------------------------------------------- /src/public/log/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/log/error.rs -------------------------------------------------------------------------------- /src/public/log/event.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/log/event.rs -------------------------------------------------------------------------------- /src/public/log/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/log/mod.rs -------------------------------------------------------------------------------- /src/public/log/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/log/schema.rs -------------------------------------------------------------------------------- /src/public/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/mod.rs -------------------------------------------------------------------------------- /src/public/simple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/src/public/simple.rs -------------------------------------------------------------------------------- /tests/data/malformed_entities.json: -------------------------------------------------------------------------------- 1 | { 2 | not_valid 3 | } -------------------------------------------------------------------------------- /tests/data/malformed_policies.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/malformed_policies.cedar -------------------------------------------------------------------------------- /tests/data/schema.cedarschema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/schema.cedarschema.json -------------------------------------------------------------------------------- /tests/data/schema_bad.cedarschema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/schema_bad.cedarschema.json -------------------------------------------------------------------------------- /tests/data/static_and_templates.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/static_and_templates.cedar -------------------------------------------------------------------------------- /tests/data/static_policies.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/static_policies.cedar -------------------------------------------------------------------------------- /tests/data/sweets.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/sweets.cedar -------------------------------------------------------------------------------- /tests/data/sweets.entities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/sweets.entities.json -------------------------------------------------------------------------------- /tests/data/sweets.schema.cedar.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/sweets.schema.cedar.json -------------------------------------------------------------------------------- /tests/data/sweets_input.entities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/sweets_input.entities.json -------------------------------------------------------------------------------- /tests/data/templates.cedar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/data/templates.cedar -------------------------------------------------------------------------------- /tests/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cedar-policy/cedar-local-agent/HEAD/tests/lib.rs --------------------------------------------------------------------------------