Raise a RuntimeError if secret is nil