Skip to content

Conversation

phlogistonjohn
Copy link
Collaborator

An assortment of small fixes and some error handling improvements based on issues seen when doing some practical testing on a system.

There's an annoying behavior in the python varlink lib. It's described
in the comment. Work around it by proactively removing the socket file
before the server starts.

Signed-off-by: John Mulligan <[email protected]>
To be more consistent across all the objects and errors, rename "entry"
to "name". It was always the name. When the API expects a whole entry
object we should use "entry". "name" is a string.

Signed-off-by: John Mulligan <[email protected]>
Fix an exception raised when trying to override the peer verification
settings on the CLI, where vcfg wouldn't be defined if the previous
term was true. Walrus fail.

Signed-off-by: John Mulligan <[email protected]>
The client.open method is what actually causes the exceptions to be
raised so we need to handle it properly.

Signed-off-by: John Mulligan <[email protected]>
Add a new more catch-all error type to the varlink interface definition
and code. In particular this error should be used by a scope when it
can't perform an operation and needs to return something sensible to
the client rather than just blowing up.

Signed-off-by: John Mulligan <[email protected]>
Add a new context manager that converts exceptions from KMIP and
converts them into something keybridge friendly(er).

Signed-off-by: John Mulligan <[email protected]>
@phlogistonjohn phlogistonjohn marked this pull request as ready for review July 21, 2025 21:37
Copy link
Collaborator

@synarete synarete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mergify mergify bot merged commit bc1cdab into samba-in-kubernetes:master Jul 22, 2025
10 checks passed
@phlogistonjohn phlogistonjohn deleted the jjm-keybridge-errors branch August 20, 2025 17:14
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.

3 participants