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

security: disable plugin in default and persist file in specified dir #7094

Closed
HuSharp opened this issue Sep 14, 2023 · 1 comment · Fixed by #7087
Closed

security: disable plugin in default and persist file in specified dir #7094

HuSharp opened this issue Sep 14, 2023 · 1 comment · Fixed by #7087
Labels
affects-6.5 affects-7.1 severity/minor The issue's severity is minor. type/bug The issue is confirmed as a bug.

Comments

@HuSharp
Copy link
Member

HuSharp commented Sep 14, 2023

Bug Report

There are some leaks to inject errors.

  • load mistake plugin anywhere
  • no need to expose the persist interface, we just use it in DR_STATS

What did you do?

What did you expect to see?

  • Load plugin and persist file in specified dir [config data dir]
  • Judge persist file name rather than delete this interface to keep compatible
  • support a config to decide whether to enable the plugin

What did you see instead?

some leaks

What version of PD are you using (pd-server -V)?

master

@jebter
Copy link
Collaborator

jebter commented Sep 21, 2023

/severit major

@HuSharp HuSharp added severity/minor The issue's severity is minor. affects-6.5 affects-7.1 labels Sep 21, 2023
Questions and Bug Reports automation moved this from Need Triage to Closed Sep 22, 2023
ti-chi-bot bot added a commit that referenced this issue Sep 22, 2023
…#7087)

close #7094

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Sep 22, 2023
close tikv#7094

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Sep 22, 2023
close tikv#7094

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this issue Sep 25, 2023
…#7087) (#7141)

close #7094

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: husharp <jinhao.hu@pingcap.com>
Co-authored-by: Hu# <jinhao.hu@pingcap.com>
ti-chi-bot bot added a commit that referenced this issue Sep 28, 2023
…#7087) (#7142)

close #7094

Signed-off-by: husharp <jinhao.hu@pingcap.com>

Co-authored-by: husharp <jinhao.hu@pingcap.com>
Co-authored-by: Hu# <jinhao.hu@pingcap.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 affects-7.1 severity/minor The issue's severity is minor. type/bug The issue is confirmed as a bug.
Projects
Development

Successfully merging a pull request may close this issue.

2 participants