Commit Graph
100 Commits
Author SHA1 Message Date
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
Fang-Pen Lin 8efc245268 Revert "Add missing changes"
This reverts commit be8683fec1484edc182abf0353d5f3a23a81d37f.
2025-11-12 10:48:02 -08:00
Fang-Pen Lin ff77130c65 Add missing changes 2025-11-12 10:48:01 -08:00
Fang-Pen Lin c687cbc131 Set pki acme flag type as false to avoid committing them to true by accident 2025-11-12 10:48:01 -08:00
Fang-Pen Lin 40be1ac9d9 Remove unused stuff 2025-11-12 10:48:00 -08:00
Fang-Pen Lin c3d5169f63 Remove env 2025-11-12 10:47:59 -08:00
Fang-Pen Lin 7c6b704fae Remove ACME global feature flag 2025-11-12 10:47:58 -08:00
Fang-Pen Lin 0f5fa785a6 Bring changes back 2025-11-12 10:47:57 -08:00
Fang-Pen Lin 192cf5a8f9 Revert stuff 2025-11-12 10:47:56 -08:00
Fang-Pen Lin cb750c8c13 Fix broken tests 2025-11-12 10:47:55 -08:00
Fang-Pen Lin 8fcdce19aa Fix type error 2025-11-12 10:47:54 -08:00
Fang-Pen Lin 07cfb6dd54 Check license when creating profile 2025-11-12 10:47:53 -08:00
Fang-Pen Lin bb46eac8ea Syntax error 2025-11-12 10:47:52 -08:00
Fang-Pen Lin bb16d5fcd5 Add missing stuff 2025-11-12 10:47:51 -08:00
Fang-Pen Lin 33b1ee0247 Gate PKI feature
# Conflicts:
#	backend/src/ee/services/pki-acme/pki-acme-service.ts
2025-11-12 10:47:50 -08:00
Fang-Pen Lin 2767ff5c2d Remove unused stuff 2025-11-12 10:47:03 -08:00
Fang-Pen Lin ce6727460f Block user if they don't have the feature in their plan 2025-11-12 10:47:02 -08:00
Fang-Pen Lin e4a38e4ba8 Add PKI acme license feature flag 2025-11-12 10:47:01 -08:00
Fang-Pen Lin 3f68ec8016 Merge pull request #4829 from Infisical/PKI-33-pki-acme-corner-cases
[PKI-33] Add more automatic tests to cover the PKI ACME security focused corner cases
2025-11-12 09:42:08 -08:00
Fang-Pen Lin 5ecbeb0232 lint 2025-11-12 09:13:18 -08:00
Fang-Pen Lin 5aaa0ea67f Remove unused stuff 2025-11-12 09:13:17 -08:00