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.dev3.tar.gz (28.8 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.dev3-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for oslo_policy_remote-0.0.3.dev3.tar.gz
Algorithm Hash digest
SHA256 bd7d51f5e983735f238e5f75f6309c9e577cace0e215ea8d9fb500ab2ae93fe8
MD5 61d70f49a016cca81db0ad27318afbfe
BLAKE2b-256 49ce744825eaa563a2b93d319fdd1d656d343617c5d59297929051a4ac0ac813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for oslo_policy_remote-0.0.3.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4eaf18ceeba659010f51a13ec0375a6a5f3cb5d5f0aa8e7137fbabc22674391
MD5 bec1d8ab3ac4fa78cd1e6f1b5dfbafd7
BLAKE2b-256 021678f7c6b86c4314ac5eb07c38a93b89e8d2605159ebe410e55dda5f67d9ea

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