You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option to the nats resolver to hard delete the jwt instead of renaming them to .deleted.
I'll propose and MR to implement the option listed bellow.
Use Case:
We manage the accounts in our database so if we want to recover them we can use the database so we don't need the copy on disk.
We can do some manual (or cron) cleanup but as the nats code already has an HardDelete option internally, why not expose it to the configuration.
Proposed Change:
Add an option in the resolver config, for instance: hard_delete: bool.
Who Benefits From The Change(s)?
Any user that do not need the .deleted files.
Alternative Approaches
Overloading allow_delete: hard_delete but that may be problematic for the parser and backward compatibility
The text was updated successfully, but these errors were encountered:
- [x] Link to issue, e.g. `Resolves #NNN`
- [ ] Documentation added (if applicable)
- [ ] Tests added
- [x] Branch rebased on top of current main (`git pull --rebase origin
main`)
- [x] Changes squashed to a single commit (described
[here](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
- [x] Build is green in Travis CI
- [x] You have certified that the contribution is your original work and
that you license the work to the project under the [Apache 2
license](https://github.com/nats-io/nats-server/blob/main/LICENSE)
Resolves#3782
### Changes proposed in this pull request:
- Add hard_delete option in the resolver config and use it to set the
deleteType in NewDirAccResolver
/cc @nats-io/core
Feature Request
Add option to the nats resolver to hard delete the jwt instead of renaming them to
.deleted
.I'll propose and MR to implement the option listed bellow.
Use Case:
We manage the accounts in our database so if we want to recover them we can use the database so we don't need the copy on disk.
We can do some manual (or cron) cleanup but as the nats code already has an HardDelete option internally, why not expose it to the configuration.
Proposed Change:
Add an option in the resolver config, for instance:
hard_delete: bool
.Who Benefits From The Change(s)?
Any user that do not need the
.deleted
files.Alternative Approaches
Overloading
allow_delete: hard_delete
but that may be problematic for the parser and backward compatibilityThe text was updated successfully, but these errors were encountered: