Skip to main content

Remote HTTP-based policy checker for Oslo Policy

Project description

This package extends Oslo Policy to support remote HTTP-based policy checking, allowing policy decisions to be made by a remote service. It is designed to work in conjunction with goslo.policy.server, a Go-based policy server that provides centralized policy enforcement for OpenStack services.

Installation

pip install oslo.policy.remote

Configuration

Add to your service’s configuration file:

[remote_policy]
server_url = http://policy-server:8082
timeout = 3
fail_closed = true
ssl_verify = false

Policy File Example

create_instance: remote:create_instance
delete_instance: rule:admin_or_owner

Generating Sample Policies

oslopolicy-remote-policy-generator --namespace nova > /etc/nova/policy.yaml

Development

To set up a development environment:

git clone https://github.com/mehmettopcu/oslo.policy.remote
cd oslo.policy.remote
pip install -e .[test]
pytest tests/

License

Apache 2.0

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

oslo_policy_remote-0.0.3.dev2.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

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

oslo_policy_remote-0.0.3.dev2-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file oslo_policy_remote-0.0.3.dev2.tar.gz.

File metadata

  • Download URL: oslo_policy_remote-0.0.3.dev2.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for oslo_policy_remote-0.0.3.dev2.tar.gz
Algorithm Hash digest
SHA256 23c9ec7a31c978fff77944b215d23e62eb5dd2236f5c3fe1de5ceb1b50840996
MD5 fb95572c24dcb1a52ee421cf960e7059
BLAKE2b-256 97f17621e79040fc4ee65af968dce5953e3f35e5c3b4b686b3eb4abf34e20340

See more details on using hashes here.

File details

Details for the file oslo_policy_remote-0.0.3.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for oslo_policy_remote-0.0.3.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 896fb393ae3b5f4a7d116161609ffa444076584ed3928a457f4faae6cf9c2334
MD5 a8fbbbc8126fae5932c7be2fe20b04f1
BLAKE2b-256 b364bc74bbdce1cf46bbaf50b249d2b9ea00b40bdbed190745cb02183edb072f

See more details on using hashes here.

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