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.

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.1.dev7.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.1.dev7-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file oslo_policy_remote-0.0.1.dev7.tar.gz.

File metadata

  • Download URL: oslo_policy_remote-0.0.1.dev7.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.1.dev7.tar.gz
Algorithm Hash digest
SHA256 bee4d4ceb2c54210d3b19a20ebc3b11ebe985e5dcd9bc4a547f42410bda94c6e
MD5 556a131d329eb9ac1d2f34d9d7cff2e2
BLAKE2b-256 8909307195e0249fb563afc1355bf13b76196676f8fc16e2e61ce128c282142b

See more details on using hashes here.

File details

Details for the file oslo_policy_remote-0.0.1.dev7-py3-none-any.whl.

File metadata

File hashes

Hashes for oslo_policy_remote-0.0.1.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 cb1ebbf53260be64dbb0d17e91028a3725f268d029e3322ce074ffe982a2d3fa
MD5 1180f59dbfc83eacb012ee4a6f136280
BLAKE2b-256 b73e889655e61e0d1fc6d5dfde6633a6b2d5e387b4cebaaed6695fda57cc55fb

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