def get_password(config):
    """Return the Juju environment password (admin-secret).

    Receive the jenv file YAML decoded bootstrap configuration.
    Raise a ValueError is the password cannot be found.
    """
    password = config.get('admin-secret')
    if not password:
        raise ValueError('unable to find the environment password')
    return password
