ctrlplane / copilot

Key broker service
GNU General Public License v3.0
1 stars 1 forks source link

28 add support for multiple kms providers add support for file provider type #34

Closed p0dxD closed 1 year ago

ekwisnek commented 1 year ago

@p0dxD could you review and resolve the merge conflicts?

p0dxD commented 1 year ago

I think this version should work, I changed the test key maybe thats the one. Look for these logs when initializing

2023-01-22T21:47:45.417-05:00 INFO 28211 --- [nio-8080-exec-1] io.ctrlplane.copilot.key.DevKeyServer : Retrieving kms response from dev server. 2023-01-22T21:47:45.417-05:00 INFO 28211 --- [nio-8080-exec-1] i.c.copilot.configuration.DevTemplate : Setting test content to [supersecretkey!!]

if not you can try changing it in src/main/resources/sample/kek.pem to a different string

it can initialize both the dev and vault server, based on provider it should pick which one to use.

http://localhost:8080/api/v1/key/ewogICJrZWtfaWQiOiAiYXNkZjEyMzQiLAogICJrbXNfcHJvdmlkZXIiOiAiZGV2IiwKICAia21zX3Byb3ZpZGVyX3BhdGgiOiAiY3RybHBsYW5lL2FzaWEtcGFjaWZpYy9hcGFjLXRva3lvIiwKICAia21zX2FkZGl0aW9uYWxfcGFyYW1zIjogewogICAgICAic2VjcmV0X2lkIjogInRlc3RLZXkxIgogIH0KfQo=