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
ADDED hard_delete option on resolver configuration #3783
Conversation
8317a4f
to
6d3abdf
Compare
Need to fix test failure.. |
on my computer it fails event on main before my changes :( |
The tests pass on main proper, and on your branch when I kept restarting yours it kept failing on the same test. We do have some flappers but I think there is something legit here. |
OK, Thanks for checking I'm going to retry and fix that ;) |
6d3abdf
to
0255c59
Compare
559a534
to
c5cfb87
Compare
Any updates? We are starting prep for a 2.9.12 release. |
No sorry I don't get why it fails: I though it would be just a config change but there might be strange side effects. |
ok, and FYI we will be moving away from the NATS resolver in the near future for a JetStream KV based resolver. |
oh nice, thanks ! |
Is there a doc/ADR for this? Would like to know more about this. |
There is not as of yet, but in the simple form you would store account claims in a KV that the server would be configured to use to resolve accounts through KV gets and watchers. KVs today can already be set up with as many mirrors as you want and KV gets will use the closest replica to respond to the request. We will convert our own global network NGS to it once complete. |
Thanks for the info. Good to see the JetStream KV store being used in interesting ways! |
dde355e
to
5111820
Compare
We are prepping for 2.9.16 release, do you want this reviewed again for possible inclusion? |
c87bec3
to
5111820
Compare
Signed-off-by: Julien Viard de Galbert <jviarddegalbert@scaleway.com>
5111820
to
1b1610f
Compare
Yes please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the behavior enforced?
The behavior was already present in the DirJWTStore implementation (it's used for the caching resolver: NewCacheDirAccResolver hardcode the delete parameter to So this PR only allows to use this parameter when creating the DirJWTStore via NewDirAccResolver and does the necessary checks on the configuration options (with hopefully clear enough error messages). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Resolves #NNN
git pull --rebase origin main
)Resolves #3782
Changes proposed in this pull request:
/cc @nats-io/core