vault authorize-action uses deprecated hvac API method

Bug #1917039 reported by Vladimir Grevtsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vault-charm
Triaged
Wishlist
Unassigned

Bug Description

https://github.com/openstack/charm-vault/blob/master/src/lib/charm/vault.py#L191

  :type client: hvac.Client
    :param policies: List of policy names
    :type policies: [str, str, ...]
    :returns: Id of created role
    :rtype: str"""
>>> client.create_role(

https://hvac.readthedocs.io/en/stable/source/hvac_v1.html#hvac.v1.Client.create_role

create_role(role_name, mount_point='approle', **kwargs)[source]
Call to deprecated function ‘create_role’. This method will be removed in version ‘0.12.0’ Please use the ‘create_or_update_approle’ method on the ‘hvac.api.auth_methods.approle’ class moving forward.

Although we are using old HVAC client, wouldn't we like to consider upgrading it?

(.venv) root@vault-3:/var/lib/juju/agents/unit-vault-2# pip3 freeze | grep hvac
hvac==0.6.4

Changed in vault-charm:
importance: Undecided → Wishlist
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.