mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
Merge branch 'v2' of https://github.com/certd/certd into v2
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.39.5](https://github.com/certd/certd/compare/v1.39.4...v1.39.5) (2026-03-18)
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* 移除passkey的counter递增校验 ([68b669d](https://github.com/certd/certd/commit/68b669d3ff3e13b931939093320ce7237bb02b1b))
|
||||
* passkey 支持Bitwarden ([29f44c6](https://github.com/certd/certd/commit/29f44c67c808bed9ff1c9d4884d39a1a62d043a7))
|
||||
* passkey登录放到下方其他登录位置 ([1413e1a](https://github.com/certd/certd/commit/1413e1aff4aabcfd471716338c210fbcfd76c8f9))
|
||||
|
||||
## [1.39.4](https://github.com/certd/certd/compare/v1.39.3...v1.39.4) (2026-03-17)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@certd/ui-server",
|
||||
"version": "1.39.4",
|
||||
"version": "1.39.5",
|
||||
"description": "fast-server base midway",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@@ -50,20 +50,20 @@
|
||||
"@aws-sdk/client-route-53": "^3.964.0",
|
||||
"@aws-sdk/client-s3": "^3.964.0",
|
||||
"@aws-sdk/client-sts": "^3.990.0",
|
||||
"@certd/acme-client": "^1.39.4",
|
||||
"@certd/basic": "^1.39.4",
|
||||
"@certd/commercial-core": "^1.39.4",
|
||||
"@certd/acme-client": "^1.39.5",
|
||||
"@certd/basic": "^1.39.5",
|
||||
"@certd/commercial-core": "^1.39.5",
|
||||
"@certd/cv4pve-api-javascript": "^8.4.2",
|
||||
"@certd/jdcloud": "^1.39.4",
|
||||
"@certd/lib-huawei": "^1.39.4",
|
||||
"@certd/lib-k8s": "^1.39.4",
|
||||
"@certd/lib-server": "^1.39.4",
|
||||
"@certd/midway-flyway-js": "^1.39.4",
|
||||
"@certd/pipeline": "^1.39.4",
|
||||
"@certd/plugin-cert": "^1.39.4",
|
||||
"@certd/plugin-lib": "^1.39.4",
|
||||
"@certd/plugin-plus": "^1.39.4",
|
||||
"@certd/plus-core": "^1.39.4",
|
||||
"@certd/jdcloud": "^1.39.5",
|
||||
"@certd/lib-huawei": "^1.39.5",
|
||||
"@certd/lib-k8s": "^1.39.5",
|
||||
"@certd/lib-server": "^1.39.5",
|
||||
"@certd/midway-flyway-js": "^1.39.5",
|
||||
"@certd/pipeline": "^1.39.5",
|
||||
"@certd/plugin-cert": "^1.39.5",
|
||||
"@certd/plugin-lib": "^1.39.5",
|
||||
"@certd/plugin-plus": "^1.39.5",
|
||||
"@certd/plus-core": "^1.39.5",
|
||||
"@google-cloud/publicca": "^1.3.0",
|
||||
"@huaweicloud/huaweicloud-sdk-cdn": "^3.1.185",
|
||||
"@huaweicloud/huaweicloud-sdk-core": "^3.1.185",
|
||||
|
||||
@@ -190,8 +190,10 @@ export class PipelineController extends CrudController<PipelineService> {
|
||||
}
|
||||
|
||||
@Post('/update', { description: Constants.per.authOnly })
|
||||
async update(@Body(ALL) bean) {
|
||||
return await this.save(bean);
|
||||
async update(@Body(ALL) bean:PipelineEntity) {
|
||||
await this.checkOwner(this.getService(), bean.id,"write",true);
|
||||
await this.service.update(bean as any);
|
||||
return this.ok({});
|
||||
}
|
||||
|
||||
@Post('/save', { description: Constants.per.authOnly, summary: '新增/更新流水线' })
|
||||
|
||||
@@ -230,9 +230,10 @@ export class PasskeyService extends BaseService<PasskeyEntity> {
|
||||
throw new AuthException("Passkey不存在");
|
||||
}
|
||||
|
||||
if (verification.counter <= passkey.counter) {
|
||||
throw new AuthException("认证失败:计数器异常");
|
||||
}
|
||||
// 可同步密钥 各个客户端的计数器不是单调递增的,此规范基本上都不遵守了
|
||||
// if (verification.counter <= passkey.counter && passkey.counter > 0) {
|
||||
// throw new AuthException("认证失败:计数器异常");
|
||||
// }
|
||||
|
||||
passkey.counter = verification.counter;
|
||||
passkey.updateTime = new Date();
|
||||
|
||||
@@ -259,6 +259,9 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
||||
bean.order = old.order;
|
||||
bean.userId = old.userId;
|
||||
bean.projectId = old.projectId;
|
||||
if (bean.content == null) {
|
||||
bean.content = old.content;
|
||||
}
|
||||
}
|
||||
if (!old || !old.webhookKey) {
|
||||
bean.webhookKey = await this.genWebhookKey();
|
||||
|
||||
Reference in New Issue
Block a user