Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Bump version to 1.3.0 #51

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions paas_app_charmer/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ def secret_key_id(cls, data: dict[str, str | int | bool | dict[str, str] | None]
ValueError: if the *-secret-key-id is invalid.
NotImplementedError: ill-formed subclasses.
"""
secret_key_field = "secret_key"
# Bandit thinks the following are secrets which they are not
secret_key_field = "secret_key" # nosec B105
if secret_key_field not in cls.model_fields:
secret_key_field = "app_secret_key"
secret_key_field = "app_secret_key" # nosec B105
secret_key_config_name = cls.model_fields[secret_key_field].alias
if not secret_key_config_name:
raise NotImplementedError("framework configuration secret_key field has no alias")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See LICENSE file for licensing details.
[project]
name = "paas-app-charmer"
version = "1.2.0"
version = "1.3.0"
description = "Companion library for PaaS app charmer."
readme = "README.md"
authors = [
Expand Down
Loading