Skip to content

Commit

Permalink
Merge 48a581d into dfcd556
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcrawford45 committed Jan 9, 2024
2 parents dfcd556 + 48a581d commit 3b70382
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Added DIGICERT_CIS_USE_CSR_FIELDS to control the `use_csr_fields` create certifi
Added Digicert source plugin. Enable it with DIGICERT_SOURCE_ENABLED
Added AWS ACM source plugin. This plugin retreives all certificates for an account and a region.
Added AWS ACM destination plugin. This plugin uploads a certificate to AWS ACM.
Allow updating options field via authority update API.


1.6.0 - `2023-10-23`
Expand Down
5 changes: 4 additions & 1 deletion lemur/authorities/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"""

import json
from typing import Optional

from flask import current_app

Expand All @@ -24,7 +25,7 @@
from lemur.certificates.service import upload


def update(authority_id, description, owner, active, roles):
def update(authority_id, description, owner, active, roles, options: Optional[str] = None):
"""
Update an authority with new values.
Expand All @@ -38,6 +39,8 @@ def update(authority_id, description, owner, active, roles):
authority.active = active
authority.description = description
authority.owner = owner
if options:
authority.options = options

log_service.audit_log("update_authority", authority.name, "Updating authority") # check ui what can be updated
return database.update(authority)
Expand Down
1 change: 1 addition & 0 deletions lemur/authorities/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ def put(self, authority_id, data=None):
description=data["description"],
active=data["active"],
roles=data["roles"],
options=data.get("options")
)


Expand Down

0 comments on commit 3b70382

Please sign in to comment.