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

Introduce new CUSTOM_LOOKUP and CUSTOM_LOOKUP_FULL Account Resolvers #6435

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ghstahl
Copy link

@ghstahl ghstahl commented Jan 30, 2025

issue

Signed-off-by: Your Name [email protected]

Introduced
type CustomLookupAccResolver struct {
	*DirAccResolver
}
@ghstahl ghstahl requested a review from a team as a code owner January 30, 2025 18:40
@ghstahl ghstahl changed the title https://github.com/nats-io/nats-server/issues/6434 Introduce a new CUSTOM_LOOKUP Account Resolver Jan 30, 2025
Added 2 custom resolver.
CUSTOM_LOOKUP_FULL which is based on the FULL directly resolver
CUSTOM_LOOKUP which always makes an external call.
@ghstahl ghstahl changed the title Introduce a new CUSTOM_LOOKUP Account Resolver Introduce new CUSTOM_LOOKUP and CUSTOM_LOOKUP_FULL Account Resolvers Jan 31, 2025
@aricart
Copy link
Member

aricart commented Feb 4, 2025

I made a proof of concept of implementing dynamic account creation using the callout feature. That would be a simpler mechanism without having to modify the server.

aricart/callout.go#11

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