Skip to content

checks/redisnoauth

import "github.com/nuqs-org/nuqs/checks/redisnoauth"

Package redisnoauth checks if a Redis server allows unauthenticated access.

It sends a harmless PING command without credentials. If the server replies with +PONG, unauthenticated access is possible. If it replies with -NOAUTH or an -ERR containing "authentication required", it needs a password. If it replies with -DENIED, it's in protected mode and only allows localhost. Either way, no finding.

Types

Check

Check reports Redis servers with no password.

type Check struct{}

Defined in checks/redisnoauth/redisnoauth.go:27

Check.Info

Info describes the check.

func (Check) Info() check.Info

Defined in checks/redisnoauth/redisnoauth.go:30

Check.Run

Run sends PING and reports a finding if Redis answers with +PONG.

func (Check) Run(ctx context.Context, t check.Target) (*check.Result, error)

Defined in checks/redisnoauth/redisnoauth.go:42