Skip to content

Commit

Permalink
Get ageKey from backend
Browse files Browse the repository at this point in the history
  • Loading branch information
frikkha committed Jul 26, 2024
1 parent c671752 commit 4221b64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ class CryptoController(
@GetMapping("/decrypt")
fun decrypt(
@RequestHeader gcpAccessToken: String,
@RequestHeader ageKey: String,
@RequestBody cipherText: String,
): ResponseEntity<String> {

val decryptedString = decryptionService.decrypt(cipherText, GCPAccessToken(gcpAccessToken))
val decryptedString = decryptionService.decrypt(cipherText, GCPAccessToken(gcpAccessToken), ageKey)

return ResponseEntity.ok().body(decryptedString)
}
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ management.endpoint.prometheus.enabled=true
management.endpoints.web.exposure.include=prometheus,health

server.port=8084
sops.age-key=password

0 comments on commit 4221b64

Please sign in to comment.