Add DRONE_WEBHOOK_SECRET for GitHub webhook authentication
Fixes webhook signature validation failures causing 400 errors.
This commit is contained in:
parent
da4cf18d6d
commit
9ef4d38d51
3 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ variable "tier" { type = string }
|
|||
variable "github_client_id" {}
|
||||
variable "github_client_secret" {}
|
||||
variable "rpc_secret" {}
|
||||
variable "webhook_secret" {}
|
||||
variable "server_host" {}
|
||||
variable "server_proto" {}
|
||||
variable "rpc_host" {
|
||||
|
|
@ -98,6 +99,10 @@ resource "kubernetes_deployment" "drone_server" {
|
|||
name = "DRONE_RPC_SECRET"
|
||||
value = var.rpc_secret
|
||||
}
|
||||
env {
|
||||
name = "DRONE_WEBHOOK_SECRET"
|
||||
value = var.webhook_secret
|
||||
}
|
||||
env {
|
||||
name = "DRONE_SERVER_HOST"
|
||||
value = var.server_host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue