Commit Graph
100 Commits
Author SHA1 Message Date
Fang-Pen Lin 2026fcd628 Isolate vars 2025-11-20 09:38:11 -08:00
Fang-Pen Lin 022c3802e3 Add unique constraint for public key under the same profile 2025-11-20 09:38:10 -08:00
Fang-Pen Lin d9d6d3b3d9 Add test to ensure that we don't create duplicate account 2025-11-20 09:38:09 -08:00
Fang-Pen Lin d341dd0fb7 Return existing even if onlyReturnExisting is not set to ture while creating the new one 2025-11-20 09:38:08 -08:00
Fang-Pen Lin b50f03d4fb Add test case for both jwk and kid provided 2025-11-20 09:38:07 -08:00
Fang-Pen Lin 9ae862fc1f Fix find existing account 2025-11-20 09:38:06 -08:00
Fang-Pen Lin a668822e19 Only check EAB when creating a new account 2025-11-20 09:38:05 -08:00
Fang-Pen Lin d190fb15c9 Add test to reproduce the problem 2025-11-20 09:38:04 -08:00
Fang-Pen Lin b251cf4802 Update BDD test to ensure external account required value is returned 2025-11-20 09:38:03 -08:00
Fang-Pen Lin ae48787834 Return external account required 2025-11-20 09:38:02 -08:00
Fang-Pen Lin d272a5e0e5 Merge pull request #4874 from Infisical/dynamic-import-nock
Move nock to dev deps and include the route only for dev/test builds
2025-11-20 09:35:27 -08:00
Fang-Pen Lin c5802c645c Fix import order 2025-11-20 09:19:54 -08:00
Fang-Pen Lin c3fdb10b3e Fix broken tests 2025-11-20 09:10:00 -08:00
Fang-Pen Lin af40e15cb7 Revert "Address comments"
This reverts commit 57d204c3cd80f005cc0c673efbaee438e2cab6e8.
2025-11-20 08:57:23 -08:00
Fang-Pen Lin c342650ac6 Address comments 2025-11-20 08:57:22 -08:00
Fang-Pen Lin 0edf3c8b15 Fix ems build 2025-11-20 08:57:21 -08:00
Fang-Pen Lin df395076f9 Try to fix tsup as well 2025-11-20 08:57:20 -08:00
Fang-Pen Lin 2bd904b8af Add comment 2025-11-20 08:57:19 -08:00
Fang-Pen Lin bd8a417e56 Fix bdd tests 2025-11-20 08:57:18 -08:00
Fang-Pen Lin 855bc6cd73 Linter issue 2025-11-20 08:57:17 -08:00
Fang-Pen Lin 142316db80 Do not enable in production 2025-11-20 08:57:16 -08:00
Fang-Pen Lin 877d7780f6 Better assert msg 2025-11-20 08:57:15 -08:00
Fang-Pen Lin 8e1a04206f Tryt to fix tests 2025-11-20 08:57:14 -08:00
Fang-Pen Lin 5623c666b8 Fix nock import 2025-11-20 08:57:13 -08:00
Fang-Pen Lin f23884ab12 It needs to have api prefix otherwise nginx won't even route it to the backend 2025-11-20 08:57:12 -08:00
Fang-Pen Lin ea8de6e2fc Fix configs 2025-11-20 08:57:11 -08:00
Fang-Pen Lin da41eeb2be Add debugger as well 2025-11-20 08:57:10 -08:00
Fang-Pen Lin 9a36b55f5f Rename 2025-11-20 08:57:09 -08:00
Fang-Pen Lin 2ac739a6aa Use a different build for prod and dev 2025-11-20 08:57:08 -08:00
Fang-Pen Lin 7da6929c0c Import 2025-11-20 08:57:07 -08:00
Fang-Pen Lin fbaf8d37a3 Let the import throw error instead 2025-11-20 08:57:06 -08:00
Fang-Pen Lin f5936cad7e Bring back nock route 2025-11-20 08:57:06 -08:00
Fang-Pen Lin c5f5e329e8 TS linter issue 2025-11-20 08:57:05 -08:00
Fang-Pen Lin 889fb8b7e0 Fix rebase 2025-11-20 08:57:04 -08:00
Fang-Pen Lin 8c3699b437 Move nock to dev deps and load it lazily
# Conflicts:
#	backend/src/server/routes/v1/bdd-nock-router.ts
2025-11-20 08:56:59 -08:00
Fang-Pen Lin 6b30c9faef Merge pull request #4853 from Infisical/PKI-30-acme-external-ca
[PKI-30] Acme external ca support
2025-11-13 13:11:35 -08:00
Fang-Pen Lin 95e2d70781 Fix BDD test caused by strict SANs only rule of Pebble 2025-11-13 12:29:41 -08:00
Fang-Pen Lin 698986080d Fix wrong arg 2025-11-13 12:18:17 -08:00
Fang-Pen Lin c510d841b8 Fix wrong CSR format 2025-11-13 12:02:05 -08:00
Fang-Pen Lin 8895c52031 Passing CSR 2025-11-13 11:50:30 -08:00
Fang-Pen Lin c183d91257 Fix upstream skip validation 2025-11-13 11:36:51 -08:00
Fang-Pen Lin 73a3ee6b61 Fix BDD 2025-11-13 09:38:18 -08:00
Fang-Pen Lin 5d3a730443 Fix bdd tests 2025-11-13 09:22:19 -08:00
Fang-Pen Lin a7c785f168 Fix BDD 2025-11-13 09:22:18 -08:00
Fang-Pen Lin 25102757e8 Return more msg in challenge 2025-11-13 09:22:17 -08:00
Fang-Pen Lin 0b7f691f08 Fix linter issues 2025-11-13 09:22:16 -08:00
Fang-Pen Lin d4f15a3931 Do not enforce empty payload as some client somehow may not follow it and it's probably not defined in the RFC 2025-11-13 09:22:15 -08:00
Fang-Pen Lin 48601a5e8f BDD nock enabled on CI 2025-11-13 09:22:14 -08:00
Fang-Pen Lin 58963b8185 Lint 2025-11-13 09:22:13 -08:00
Fang-Pen Lin 3a3a6f3152 Keep the domain for now 2025-11-13 09:22:12 -08:00
Fang-Pen Lin edd9fa3eef Fix assert 2025-11-13 09:22:11 -08:00
Fang-Pen Lin 839fe9fa6b Fix import 2025-11-13 09:22:10 -08:00
Fang-Pen Lin 40532290f8 Skip challenge verification 2025-11-13 09:22:09 -08:00
Fang-Pen Lin 2f8700fdcd Allow regex for path 2025-11-13 09:22:08 -08:00
Fang-Pen Lin 3b9c881586 Add missing env 2025-11-13 09:22:07 -08:00
Fang-Pen Lin 833061f080 Ext ca bdd 2025-11-13 09:22:06 -08:00
Fang-Pen Lin 95f909ebc2 More ext bdd tests 2025-11-13 09:22:05 -08:00
Fang-Pen Lin 4f17e23a95 Add todo 2025-11-13 09:22:04 -08:00
Fang-Pen Lin 7d97f3263b Create ext ca 2025-11-13 09:22:03 -08:00
Fang-Pen Lin 668abeb47b Activate 2025-11-13 09:22:02 -08:00
Fang-Pen Lin 907cdd94c5 activate... 2025-11-13 09:22:01 -08:00
Fang-Pen Lin 4b70f73362 Clean all 2025-11-13 09:22:00 -08:00
Fang-Pen Lin 3742d23d60 order 2025-11-13 09:21:59 -08:00
Fang-Pen Lin 1b90a1dca0 Use mock api call 2025-11-13 09:21:58 -08:00
Fang-Pen Lin 146524ac2d More mock 2025-11-13 09:21:57 -08:00
Fang-Pen Lin 89baed638d Provide nock api 2025-11-13 09:21:56 -08:00
Fang-Pen Lin 79ddc8465c Move files 2025-11-13 09:21:55 -08:00
Fang-Pen Lin 873deff71b more mock 2025-11-13 09:21:54 -08:00
Fang-Pen Lin 1a18096ac8 Mock third party calls 2025-11-13 09:21:53 -08:00
Fang-Pen Lin 8246483e8a Use NODE_EXTRA_CA_CERTS to fix the problem 2025-11-13 09:21:52 -08:00
Fang-Pen Lin d20373e840 Add pebble config and certs 2025-11-13 09:21:51 -08:00
Fang-Pen Lin 6ff590e633 Add pebble for BDD tests 2025-11-13 09:21:50 -08:00
Fang-Pen Lin 41725add64 Fix test cases 2025-11-13 09:21:50 -08:00
Fang-Pen Lin 5c69f3bbcc Add x509 asserts 2025-11-13 09:21:49 -08:00
Fang-Pen Lin dda9c26c10 Add more bdd tests 2025-11-13 09:21:48 -08:00
Fang-Pen Lin 8838700cf1 Fix imports 2025-11-13 09:21:47 -08:00
Fang-Pen Lin 35c30d4062 Fix imports 2025-11-13 09:21:46 -08:00
Fang-Pen Lin f14df38eaa Fix challenge bdd tests 2025-11-13 09:21:45 -08:00
Fang-Pen Lin a19c840060 More tests 2025-11-13 09:21:44 -08:00
Fang-Pen Lin f7c76abe82 Fix web server cleanup 2025-11-13 09:21:43 -08:00
Fang-Pen Lin d7cf08790b More tests 2025-11-13 09:21:41 -08:00
Fang-Pen Lin 771b026175 More test cases 2025-11-13 09:21:40 -08:00
Fang-Pen Lin e31c8c364c Fix broken stuff 2025-11-13 09:21:39 -08:00
Fang-Pen Lin 0593c71d43 Fix the compare logic, isSubsetOf seems like not available 2025-11-13 09:21:38 -08:00
Fang-Pen Lin d70fa8f406 Fix match logic 2025-11-13 09:21:37 -08:00
Fang-Pen Lin 204bf59b22 Add TODO 2025-11-13 09:21:36 -08:00
Fang-Pen Lin d80d3365ba Add missing deps 2025-11-13 09:21:35 -08:00
Fang-Pen Lin 01b6c52788 Call order cert 2025-11-13 09:21:34 -08:00
Fang-Pen Lin b2297a3ecd Check more for the CSR 2025-11-13 09:21:33 -08:00
Fang-Pen Lin 8f199fecb8 Refactor 2025-11-13 09:21:32 -08:00
Fang-Pen Lin 490087dd90 extract common func 2025-11-13 09:21:31 -08:00
Fang-Pen Lin d559d48e7e Handle external ca
# Conflicts:
#	backend/src/ee/services/pki-acme/pki-acme-service.ts

# Conflicts:
#	backend/src/ee/services/pki-acme/pki-acme-service.ts
2025-11-13 09:21:30 -08:00
Fang-Pen Lin acc357e7e3 Merge pull request #4848 from Infisical/PKI-34-pki-acme-license-check
[PKI-34] Add license check for PKI ACME feature
2025-11-12 12:31:42 -08:00
Fang-Pen Lin 2b3418c85f Add missing license server 2025-11-12 11:57:38 -08:00
Fang-Pen Lin a424954d7e Check profile creation as well 2025-11-12 11:53:32 -08:00
Fang-Pen Lin a26b13e517 Change error msg 2025-11-12 11:42:18 -08:00
Fang-Pen Lin 45941b4cc8 Fix import issue 2025-11-12 10:59:42 -08:00
Fang-Pen Lin c1938e6787 Try to fix bdd tests with flag 2025-11-12 10:55:37 -08:00
Fang-Pen Lin 1ef6ae440c Remove unused stuff 2025-11-12 10:48:04 -08:00
Fang-Pen Lin 49370399ac Revert not needed changes 2025-11-12 10:48:03 -08:00