Skip to content

Commit

Permalink
feat:接入审计中心 TencentBlueKing#9414
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Nov 17, 2023
1 parent 7e9a65a commit 595d4e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion scripts/bkenv.properties
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ BK_CI_OPENAPI_API_PUB_OUTER=
BK_CI_OPENAPI_API_AUTH=true
# BK_CI_OPENAPI_VERIFY_PROJECT 在 blueking api filter 中使用,是否开启projectId强校验。
BK_CI_OPENAPI_VERIFY_PROJECT=false

# 是否开启审计,默认不开启
BK_CI_AUDIT_ENABLED=false

##########
# 4-微服务依赖
Expand Down
18 changes: 11 additions & 7 deletions support-files/templates/#etc#ci#common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spring:
metrics:
servo:
enabled: false
datasource:
datasource:
# 数据库表规则配置
tableRuleConfigs:
- index: 0
Expand Down Expand Up @@ -219,7 +219,7 @@ spring:
- index: 52
name: T_PIPELINE_BUILD_RECORD_TASK
databaseShardingStrategy: SHARDING


endpoints:
metrics:
Expand Down Expand Up @@ -252,7 +252,7 @@ devopsGateway:
ossProxy: __BK_CI_PRIVATE_URL__ # not used yet. keep it same as `host' property.
fileDevnetGateway: __BK_CI_PRIVATE_URL__ # not used yet. keep it same as `host' property.
fileIdcGateway: __BK_CI_PRIVATE_URL__ # not used yet. keep it same as `host' property.

# certificate server 配置
certificate:
server: __BK_LICENSE_PRIVATE_URL__/certificate
Expand Down Expand Up @@ -326,7 +326,7 @@ bkci:
enable: false
defaultLocale: __BK_CI_DEFAULT_LOCALE__
supportLanguages: __BK_CI_SUPPORT_LANGUAGES__

process:
clearBaseBuildData: true # 是否开启清理【被彻底删除的流水线】的基础构建流水数据(建议开启)5672
deletedPipelineStoreDays: 30 # 回收站已删除流水线保存天数
Expand Down Expand Up @@ -358,13 +358,13 @@ sharding:
cluster:
tag: __BK_CI_CLUSTER_TAG__

# bkrepo仓库配置
# bkrepo仓库配置
bkrepo:
bkrepoApiUrl: __BK_HTTP_SCHEMA__://__BK_REPO_HOST__/api/generic
staticRepoPrefixUrl: __BK_HTTP_SCHEMA__://__BK_REPO_HOST__/generic/{0}/{1}
staticUserName: __BK_REPO_USERNAME__
staticPassword: __BK_REPO_PASSWORD__
staticPassword: __BK_REPO_PASSWORD__

# 企业微信api配置
wechatWork:
corpId: __BK_CI_WECHATWORK_CORPID__
Expand All @@ -373,3 +373,7 @@ wechatWork:
token: __BK_CI_WECHATWORK_TOKEN__
aesKey: __BK_CI_WECHATWORK_AESKEY__
url: __BK_CI_WECHATWORK_URL__

# 是否开启审计
audit:
enabled: __BK_CI_AUDIT_ENABLED__

0 comments on commit 595d4e4

Please sign in to comment.