    def list(self, search: str | None = None) -> t.List[Secret]:
        """
        List all secrets.

        Args:
            search (str | None): Optional search string to filter secrets.

        Returns:
            List[SecretInfo]: A list of SecretInfo objects representing the secrets.
        """
        secrets = self._client.v1.list_secrets(search=search)
        return [Secret.from_secret_schema(secret) for secret in secrets.items]
List all secrets.

Args:
search (str | None): Optional search string to filter secrets.

Returns:
List[SecretInfo]: A list of SecretInfo objects representing the secrets.
src/bentoml/_internal/cloud/secret.py