Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

waldur-site-agent-nextcloud

Nextcloud plugin for Waldur Site Agent.

Users purchase storage plans in Waldur and automatically receive access to a shared Nextcloud Group Folder. Login is via Keycloak OIDC.

How it works

  • Each Waldur resource → a Nextcloud Group + Group Folder (with quota from the plan)
  • Users added to the resource → added to the Nextcloud group → can access the folder
  • Usage is reported as Group Folder bytes used

Prerequisites

Install and enable in Nextcloud admin:

  • User OIDC app (user_oidc) — configure to point at your Keycloak realm
  • Group Folders app (groupfolders)

In the OIDC provider settings, set the user ID attribute to preferred_username (matches the Keycloak username that the site-agent uses when calling the OCS API).

Configuration example

offerings:
  - name: "Nextcloud Storage"
    waldur_api_url: "https://sky.sigma2.no/api/"
    waldur_api_token: "${SITE_AGENT_API_TOKEN}"
    waldur_offering_uuid: "${OFFERING_UUID}"
    backend_type: "nextcloud"
    order_processing_backend: "nextcloud"
    membership_sync_backend: "nextcloud"
    reporting_backend: "nextcloud"
    # STOMP is strongly recommended for Nextcloud.  On event-based deployments
    # the agent retries the team-member fetch to avoid a race where the
    # create-order event arrives before Waldur commits the initial membership.
    stomp_enabled: true
    # stomp_membership_sync_enabled: false  # uncomment to keep HTTP polling for
    #                                       # membership sync even with STOMP on
    backend_settings:
      nextcloud_url: "https://nextcloud.example.com"
      admin_username: "admin"
      admin_password: "${NEXTCLOUD_ADMIN_PASSWORD}"
      group_prefix: "waldur-"          # prefix for auto-created groups
      default_storage_quota_gb: 25     # fallback if plan has no storage limit (GiB)
      allow_resharing: false           # allow users to reshare folder contents
    backend_components:
      storage:
        # Quota values are in GiB (1 GiB = 1024³ bytes), consistent with how
        # Nextcloud labels storage in its UI.
        measured_unit: "GiB"
        accounting_type: "limit"
        label: "Storage"
        unit_factor: 1

Backend settings reference

Key Default Description
nextcloud_url (required) Base URL of the Nextcloud instance
admin_username (required) Admin account for OCS API calls
admin_password (required) Admin password (use env var substitution)
group_prefix "waldur-" Prefix prepended to every auto-created group name
default_storage_quota_gb 25 Fallback quota (GiB) when the Waldur plan has no storage limit
allow_resharing false If false, group members cannot reshare folder contents

STOMP settings reference

Key Default Description
stomp_enabled false Enable STOMP event-driven processing
stomp_membership_sync_enabled null Inherits stomp_enabled. Set false to keep HTTP polling for membership.

team_fetch_attempts (backend-level, non-configurable)

The Nextcloud backend sets team_fetch_attempts = 4 internally. On order-processing paths (including STOMP create-order events) the event can arrive before Waldur has committed the initial team membership row. The agent retries the team-member fetch up to 4 times (with a 3 s delay between attempts) if the list comes back empty. Other backends default to 1 (no retry); this higher value is specific to Nextcloud's create-order path.

Note: the retry only helps when the team is entirely absent. A non-empty but stale team (new member not yet committed) breaks on the first attempt.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

waldur_site_agent_nextcloud-1.0.6rc19.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waldur_site_agent_nextcloud-1.0.6rc19-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file waldur_site_agent_nextcloud-1.0.6rc19.tar.gz.

File metadata

  • Download URL: waldur_site_agent_nextcloud-1.0.6rc19.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for waldur_site_agent_nextcloud-1.0.6rc19.tar.gz
Algorithm Hash digest
SHA256 c5f4909230aa4c5d09e8830ae8d9e4f246ad7828879f4ab55c4983f886183d5a
MD5 e629ba6deba4cf1e3143d89016518457
BLAKE2b-256 7776341805ef8a0717d11ac5cac14a821a162dd81ad1efcce021eed0c5087837

See more details on using hashes here.

File details

Details for the file waldur_site_agent_nextcloud-1.0.6rc19-py3-none-any.whl.

File metadata

  • Download URL: waldur_site_agent_nextcloud-1.0.6rc19-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for waldur_site_agent_nextcloud-1.0.6rc19-py3-none-any.whl
Algorithm Hash digest
SHA256 e68cd58e857d8f90e42a1d3020379e2eb0bf0d6d8fc211b0f9494127f5f8fa7e
MD5 cadf3e7668fa115061943ab5712114b1
BLAKE2b-256 300a22dbcc5839d3da911d8f93aed15dac0d94d0542291a1fc337c2576c7540f

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.7

2 files

This release

1.0.6rc19 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page