Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7686dd0
[MISC] Use latest/stable lxd (#804)
dragomirp Mar 25, 2025
5b34439
Update canonical/data-platform-workflows action to v31.0.1 (#805)
renovate[bot] Mar 26, 2025
6677560
[DPE-6874] Poll all members in the cluster topology script (#810)
dragomirp Mar 28, 2025
d35b18d
[DPE-6572] Add wal_keep_size config option (#799)
marceloneppel Apr 4, 2025
dec80ef
Create pull_request_template.md (#814)
a-velasco Apr 8, 2025
727900b
Create SECURITY.md (#822)
marceloneppel Apr 9, 2025
f874a7b
Update README file's security section (#827)
izmalk Apr 10, 2025
852d80c
Sync docs from Discourse (#796)
github-actions[bot] Apr 10, 2025
7897bfc
[MISC] Conditional checksum calculation (#812)
dragomirp Apr 11, 2025
03598a4
[DPE-6218] Static code analysis (#828)
marceloneppel Apr 15, 2025
0f9ab15
[MISC] Disable landscape subordinate test lxd (#831)
dragomirp Apr 15, 2025
a014fd4
Update charmcraft.yaml build tools (#815)
renovate[bot] Apr 16, 2025
a112917
[MISC] Update snapped PostgreSQL (#832)
sinclert-canonical Apr 16, 2025
0ebf12d
[DPE-6345] LDAP I: Create access groups (#823)
sinclert-canonical Apr 16, 2025
3c2c894
[DPE-6345] LDAP II: Include charm libs (#824)
sinclert-canonical Apr 16, 2025
13b8279
[DPE-6345] LDAP III: Define config and handlers (#825)
sinclert-canonical Apr 16, 2025
4283d74
Merge branch 'main' into sync16
dragomirp Apr 17, 2025
327d491
[DPE-6345] LDAP IV: Define snap service (#838)
sinclert-canonical Apr 22, 2025
f56f207
Merge branch 'main' into sync16
dragomirp Apr 22, 2025
8306aba
Merge branch '16/edge' into sync16
dragomirp Apr 22, 2025
138095b
[DPE-6345] LDAP V: Define mapping option (#849)
sinclert-canonical Apr 22, 2025
6434998
[MISC] Disable network cut tests on arm (#844)
dragomirp Apr 22, 2025
9cb9d8a
Merge branch '16/edge' into sync16
dragomirp Apr 22, 2025
b7362bf
Merge branch 'main' into sync16
dragomirp Apr 22, 2025
f8ed45a
[DPE-6815] disable pgaudit during extensions changes (#842)
dragomirp Apr 23, 2025
b930598
Merge branch 'main' into sync16
dragomirp Apr 23, 2025
d2728dd
Merge branch '16/edge' into sync16
dragomirp Apr 23, 2025
26923b1
Lock file maintenance Python dependencies (main) (#816)
renovate[bot] Apr 23, 2025
508604e
Merge branch '16/edge' into sync16
dragomirp Apr 23, 2025
c80c396
Merge branch 'main' into sync16
dragomirp Apr 23, 2025
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
1 change: 0 additions & 1 deletion concierge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ providers:
lxd:
enable: true
bootstrap: true
channel: latest/stable
host:
snaps:
jhack:
Expand Down
14 changes: 13 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ options:
Enable synchronized sequential scans.
type: boolean
default: true
ldap_map:
description: |
List of mapped LDAP group names to PostgreSQL group names, separated by commas.
The map is used to assign LDAP synchronized users to PostgreSQL authorization groups.
Example: <ldap_group_1>=<psql_group_1>,<ldap_group_2>=<psql_group_2>
type: string
ldap_search_filter:
description: |
The LDAP search filter to match users with.
Example: (|(uid=$username)(email=$username))
type: string
default: "(uid=$username)"
logging_client_min_messages:
description: |
Sets the message levels that are sent to the client.
Expand Down Expand Up @@ -897,4 +909,4 @@ options:
Multixact age at which VACUUM should scan whole table to freeze tuples.
Allowed values are: from 0 to 2000000000.
type: int
default: 150000000
default: 150000000
432 changes: 432 additions & 0 deletions lib/charms/certificate_transfer_interface/v0/certificate_transfer.py

Large diffs are not rendered by default.

17 changes: 2 additions & 15 deletions lib/charms/data_platform_libs/v0/data_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def _on_topic_requested(self, event: TopicRequestedEvent):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 45
LIBPATCH = 46

PYDEPS = ["ops>=2.0.0"]

Expand Down Expand Up @@ -989,11 +989,7 @@ def __init__(
@property
def relations(self) -> List[Relation]:
"""The list of Relation instances associated with this relation_name."""
return [
relation
for relation in self._model.relations[self.relation_name]
if self._is_relation_active(relation)
]
return self._model.relations[self.relation_name]

@property
def secrets_enabled(self):
Expand Down Expand Up @@ -1271,15 +1267,6 @@ def _legacy_apply_on_delete(self, fields: List[str]) -> None:

# Internal helper methods

@staticmethod
def _is_relation_active(relation: Relation):
"""Whether the relation is active based on contained data."""
try:
_ = repr(relation.data)
return True
except (RuntimeError, ModelError):
return False

@staticmethod
def _is_secret_field(field: str) -> bool:
"""Is the field in question a secret reference (URI) field or not?"""
Expand Down
Loading