Skip to content

Commit b113c12

Browse files
committed
rm private key from rest api
1 parent 8b0adb5 commit b113c12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/com/flowci/core/api/OpenRestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public Secret getSecret(@PathVariable String name) {
7373

7474
if (secret instanceof RSASecret) {
7575
RSASecret rsa = (RSASecret) secret;
76-
rsa.setPublicKey(null);
76+
rsa.setPrivateKey(null);
7777
}
7878

7979
return secret;

core/src/main/resources/default/smtp-demo-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kind: smtp
2-
name: sendgrid-demo
2+
name: sendgrid_demo
33
smtp:
44
server: smtp.sendgrid.net
55
port: 587

0 commit comments

Comments
 (0)