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

Unable to update authn configuration during plugin load #11340

Closed
jcosentino11 opened this issue Jul 25, 2023 · 2 comments
Closed

Unable to update authn configuration during plugin load #11340

jcosentino11 opened this issue Jul 25, 2023 · 2 comments

Comments

@jcosentino11
Copy link

What happened?

Hello, I'm developing an emqx plugin which performs emqx configuration updates, among other things. I noticed that if I try to execute emqx_conf:update_conf for the authentication key, within the plugin's start function, the update fails.

The issue was due to authn providers not being registered before the aforementioned update, because emqx_authn wasn't loaded at this point.

I was able to workaround the issue by adding emqx_authn as an application dependency in emqx_plugins.app.src.

Wanted to report this issue, in case there may be similar situations; maybe it would make sense to load plugins after most other emqx apps have loaded

What did you expect to happen?

See above

How can we reproduce it (as minimally and precisely as possible)?

No response

Anything else we need to know?

No response

EMQX version

5.1.1

OS version

windows

Log files

@id
Copy link
Collaborator

id commented Jul 25, 2023

@jcosentino11 could you test it with 5.1.2?
In #11309 we fixed a few issues with application load and start order.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants