Skip to main content
Secret management module for handling sensitive data. This module provides classes and types for managing secrets in OpenHands.

class LookupSecret

Bases: SecretSource A secret looked up from some external url

Properties

  • headers: dict[str, str]
  • url: str

Methods

get_value()

Get the value of a secret in plain text

model_config = (configuration object)

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class SecretSource

Bases: DiscriminatedUnionMixin, ABC Source for a named secret which may be obtained dynamically

Properties

  • description: str | None

Methods

abstractmethod get_value()

Get the value of a secret in plain text

model_config = (configuration object)

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class StaticSecret

Bases: SecretSource A secret stored locally

Properties

  • value: SecretStr | None

Methods

get_value()

Get the value of a secret in plain text

model_config = (configuration object)

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].