mirror of
https://github.com/openziti/zrok.git
synced 2025-08-14 18:18:30 +02:00
14 lines
249 B
Go
14 lines
249 B
Go
package canary
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func AcknowledgeDangerousCanary() error {
|
|
if _, ok := os.LookupEnv("ZROK_DANGEROUS_CANARY"); !ok {
|
|
return fmt.Errorf("this is a dangerous canary; see canary docs for details on enabling")
|
|
}
|
|
return nil
|
|
}
|