Metadata-Version: 2.5
Name: trytond_cmdb_ipam
Version: 8.0.3.2
Summary: Tryton module cmdb_ipam
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <issues@tryton-erp.eu>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: icons/LICENSE
Keywords: cmdb_ipam,tryton
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: croniter
Requires-Dist: ldap3
Requires-Dist: paramiko
Requires-Dist: trytond-cmdb-location<8.1,>=8.0
Requires-Dist: trytond-cmdb<8.1,>=8.0
Requires-Dist: trytond-keycloak-auth<8.1,>=8.0
Requires-Dist: trytond-party<8.1,>=8.0
Requires-Dist: trytond-stock-lot<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Requires-Dist: trytond-caldav<8.1,>=8.0; extra == 'test'
Requires-Dist: trytond-cmdb-network<8.1,>=8.0; extra == 'test'
Description-Content-Type: text/x-rst

cmdb_ipam
#########

The cmdb_ipam module adds IP address management (IPAM/DDI) to the CMDB
module suite.

It provides a hierarchical data model of IP spaces, nested subnets,
blocks, IP ranges and individual IP addresses with an allocation state
machine, plus VLAN and site definitions and server records for future
KEA/OPNSense/UniFi integration.

It integrates with the CMDB suite: IP addresses and network interfaces
can be linked to configuration items, CMDB incidents can be linked to
affected subnets and addresses, and IPAM sites can be aligned with CMDB
locations.

Wake-on-LAN is exposed over HTTP for the flask portal (portal *Wake*
action and self-service wake) and for the ``wol-relayd`` daemons that
pull their configuration from the module.  The routes accept two
credentials (issue #807):

- a Keycloak access token, verified by the ``keycloak_auth`` module and
  resolved to an **active** ``res.user`` by an exact match on
  ``res.user.login``.  The Keycloak path provisions nothing -- an
  identity that no active user has is refused -- and the request runs
  as that user, so the model access and the record rules of the
  installation are enforced and an operation they deny is answered with
  ``403``.
- the ``res.user.application`` token with application ``flask_portal``
  the portal presents today, owned by the user the portal resolves for
  the same login.

The Keycloak path is opt-in through the credential itself: an
application key is a hexadecimal string issued by ``uuid4`` and can
never carry the dots of a JSON Web Token, so the two credentials can
not be confused and the portal keeps using its application token until
it migrates.  Before switching over, the integration of a realm is
checked with ``GET /<database>/keycloak_auth/whoami``, which answers
the ``res.user`` the portal resolves for the same login.

Dependencies
------------

- Tryton modules: ``ir``, ``res``, ``keycloak_auth``, ``party``,
  ``stock_lot``, ``cmdb``, ``cmdb_location``.
- Python packages: ``croniter`` (cron expressions of the WOL
  schedules), ``ldap3`` (LDAP/Active Directory transport of the DNS
  integration), ``paramiko`` (SSH/SFTP transport of the KEA and DNS
  configuration) and, through ``keycloak_auth``, ``PyJWT``
  (verification of the Keycloak access tokens).

