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

Move admin username and password to secrets #2948

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

XBaith
Copy link
Contributor

@XBaith XBaith commented Jun 20, 2024

Why are the changes needed?

Brief change log

  • Raising the security level

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@zhoujinsong
Copy link
Contributor

Thanks for the contribution!

I am curious if the database username and password information is still needed in the configMap as we declare it in the environment.

some codes in amoro-configmap.yaml:

database:
        type: {{ .Values.amoroConf.database.type }}
        jdbc-driver-class: {{ .Values.amoroConf.database.driver | quote }}
        url: {{ .Values.amoroConf.database.url }}
        {{- if or (eq .Values.amoroConf.database.type "mysql") (eq .Values.amoroConf.database.type "postgres") }}
        username: {{ .Values.amoroConf.database.username | quote }}
        password: {{ .Values.amoroConf.database.password | quote }}
        {{- end }}
        connection-pool-max-total: 20
        connection-pool-max-idle: 16
        connection-pool-max-wait-millis: 1000

@XBaith
Copy link
Contributor Author

XBaith commented Jun 20, 2024

I am curious if the database username and password information is still needed in the configMap as we declare it in the environment.

You are right, we don't need to declare database password in ConfigMap

@zhoujinsong
Copy link
Contributor

You are right, we don't need to declare database password in ConfigMap

We can improve this with another PR.

Copy link
Contributor

@zhoujinsong zhoujinsong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@zhoujinsong zhoujinsong merged commit e0dbcdd into apache:master Jun 20, 2024
2 checks passed
@XBaith XBaith deleted the admin-secrect branch June 20, 2024 07:11
@zhoujinsong zhoujinsong mentioned this pull request Jun 25, 2024
66 tasks
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