File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
core/src/main/java/com/flowci/core/api Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 2626import com .flowci .core .job .domain .JobCache ;
2727import com .flowci .core .job .service .CacheService ;
2828import com .flowci .core .job .service .LoggingService ;
29- import com .flowci .core .secret .domain .RSASecret ;
3029import com .flowci .core .secret .domain .Secret ;
3130import com .flowci .core .user .domain .User ;
3231import com .flowci .exception .ArgumentException ;
@@ -65,14 +64,7 @@ public class OpenRestController {
6564
6665 @ GetMapping ("/secret/{name}" )
6766 public Secret getSecret (@ PathVariable String name ) {
68- Secret secret = openRestService .getSecret (name );
69-
70- if (secret instanceof RSASecret ) {
71- RSASecret rsa = (RSASecret ) secret ;
72- rsa .setPrivateKey (null );
73- }
74-
75- return secret ;
67+ return openRestService .getSecret (name );
7668 }
7769
7870 @ GetMapping ("/secret/{name}/download/{file:.+}" )
You can’t perform that action at this time.
0 commit comments