Skip to content

feat(interfaces-ldap): add ldaps_enabled property - #677

Merged
nsklikas merged 1 commit into
mainfrom
IAM-2326
Sep 11, 2026
Merged

feat(interfaces-ldap): add ldaps_enabled property#677
nsklikas merged 1 commit into
mainfrom
IAM-2326

Conversation

@nsklikas

Copy link
Copy Markdown
Contributor

Description

This PR resolves
canonical/authentik-ldap-outpost-operator#83.

Summary of Changes

  • Added @property def ldaps_enabled(self) -> bool to LdapProviderBaseData returning bool(self.ldaps_urls).
  • Exported LdapProviderBaseData from charmlibs.interfaces.ldap.
  • Documented ldaps_urls in interfaces/ldap/interface/v0/schema.py and interfaces/ldap/interface/v0/README.md.
  • Added unit tests for provider databag serialization and requirer consumption covering both enabled and disabled LDAPS states.
  • Bumped version to 1.1.0 in _version.py and updated CHANGELOG.md.

Testing

Ran just check interfaces/ldap, which passed:

  • ruff check and ruff format
  • pyright (0 errors, 0 warnings)
  • 12 unit tests passed with coverage
  • Sphinx HTML documentation built successfully

Add ldaps_enabled convenience property to LdapProviderBaseData (derived from bool(self.ldaps_urls)) so charms consuming the LDAP relation can determine whether LDAPS is enabled without writing redundant data to the relation databag.

- Export LdapProviderBaseData from __init__.py.
- Document ldaps_urls in interface/v0/schema.py and interface/v0/README.md.
- Add unit tests for both provider and requirer handling ldaps_urls and ldaps_enabled.
- Bump package version to 1.1.0 and update CHANGELOG.md.
@nsklikas
nsklikas requested a review from a team as a code owner September 11, 2026 08:28
@nsklikas
nsklikas merged commit 333823e into main Sep 11, 2026
29 checks passed
@nsklikas
nsklikas deleted the IAM-2326 branch September 11, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants