Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[proposal] Plugin system #13278

Closed
gjalves opened this issue Jul 13, 2022 · 1 comment
Closed

[proposal] Plugin system #13278

gjalves opened this issue Jul 13, 2022 · 1 comment
Assignees
Labels
type: proposal Proposals and design documents

Comments

@gjalves
Copy link
Contributor

gjalves commented Jul 13, 2022

Problem

Integrations or extensions are very hard to mantain if not embedded on mainstream codebase. Sometimes this code does not make sense to be used in the community, or not intended to be shared.

Solution

The idea is to create event hooks in similar fashion of those used on PostgreSQL database, and a configuration entry with a ordered loadable extensions. Those extensions are just ELF libraries with some exported functions to be triggered on specific events.

These hooks will be triggered on the main events of a session, like attach, detach or authentication.

Non-goals

It's not objetive of this proposal to transform the already written codebase into extensions integrated by this hook system

@gjalves gjalves added the type: proposal Proposals and design documents label Jul 13, 2022
@gjalves
Copy link
Contributor Author

gjalves commented Jul 18, 2022

This is the sketch of the changes to be made:

gjalves@b8002c0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: proposal Proposals and design documents
Projects
None yet
Development

No branches or pull requests

4 participants