Skip to content

security: lots of secret contents should be hidden #9

@TangliziGit

Description

@TangliziGit

Security Vulnerability Report

缺陷描述 / Describe the vulnerability
Lots of secret content like database passwords, OAuth secret keys, etc. should be hidden from the public repo.
For example, the database host, username and password in dop-server/application-server/src/main/resources/application-production.yml:

  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://172.29.7.157:3306/db_dop_application
    username: xxxxxxxxxxxx
    password: xxxxxxxxxxxx

and email secrets in message-server/src/main/resources/application-local.yml

  mail:
    host: smtp.qq.com
    username: [email protected]
    password: xxxxxxxxxxxxxx

解决方案 / Describe the solution you'd like

  • use Jenkins credentials
  • move secrets contents to private repo

其他 / Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions