Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for oslo.policy.remote 0.0.3.dev3

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

Source distribution (sdist)

Source distribution for oslo.policy.remote 0.0.3.dev3
File Size Uploaded
oslo_policy_remote-0.0.3.dev3.tar.gz 28.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oslo.policy.remote 0.0.3.dev3
File Interpreter ABI Platform
oslo_policy_remote-0.0.3.dev3-py3-none-any.whl Python 3 none any Details

Total release size: 50.9 kB

Release files / oslo_policy_remote-0.0.3.dev3.tar.gz

Download URL oslo_policy_remote-0.0.3.dev3.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bd7d51f5e983735f238e5f75f6309c9e577cace0e215ea8d9fb500ab2ae93fe8
BLAKE2b-256 checksum
How to use checksums
49ce744825eaa563a2b93d319fdd1d656d343617c5d59297929051a4ac0ac813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / oslo_policy_remote-0.0.3.dev3-py3-none-any.whl

Download URL oslo_policy_remote-0.0.3.dev3-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4eaf18ceeba659010f51a13ec0375a6a5f3cb5d5f0aa8e7137fbabc22674391
BLAKE2b-256 checksum
How to use checksums
021678f7c6b86c4314ac5eb07c38a93b89e8d2605159ebe410e55dda5f67d9ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16
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