Skip to content

Feature/119 support dogu v3#120

Open
manoj-cloudogu wants to merge 21 commits into
developfrom
feature/119_support_DoguV3
Open

Feature/119 support dogu v3#120
manoj-cloudogu wants to merge 21 commits into
developfrom
feature/119_support_DoguV3

Conversation

@manoj-cloudogu

Copy link
Copy Markdown

Add dogu v3 support

@kahoona77 kahoona77 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR; it looks very good 💯

I found some smaller issues and one slightly bigger issue regarding the service-accounts

Comment thread k8s/helm/chart-patch-tpl.yaml Outdated
Comment thread k8s/helm/Chart.yaml Outdated
Comment thread docs/development/doguv3.md Outdated
Comment thread k8s/helm/values.yaml Outdated
Comment thread k8s/helm/templates/gotenberg/deployment.yaml
Comment thread resources/dogu_v3/init.sh Outdated
Comment thread resources/startup.sh Outdated
fi
done

EXISTING_USER_ID=$(doguctl config service_accounts/"${CONSUMER}" --default "default")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The service account state marker is never persisted.

The v3 hooks (sa-hook-exists.sh, sa-hook-create.sh) rely on the doguctl key service_accounts/ as the source of truth for whether a SA already exists, but the create-sa.sh/remove-sa.sh never write or remove it (in Nexus, create-sa.sh sets it and remove-sa.sh removes it).

As a result the key is always "default", so:

  • exists always reports "not found" and the operator re-creates the account on every reconcile, piling up orphaned SCM users
  • the rotation logic in create-sa.sh is always skipped (old account never removed on rotation).

Maybe this might be a solution:
Use a fixed name per consumer (e.g. sa-) instead of a random suffix. This makes everything idempotent via the SCM API, no doguctl marker needed:

  • exists: GET /api/v2/users/sa- -> 200 = exists, 404 = not.
  • create: create only on 404, otherwise no-op -> no orphaned users.
  • rotate: just set a new password via PUT /api/v2/users/sa-/password, no delete+recreate.

Trade-off: changes the username scheme (use a prefix to avoid clashing with real users), but removes the duplicate-account problem.

manoj-cloudogu and others added 4 commits July 16, 2026 14:06
Co-authored-by: kahoona77 <benjamin.ernst@cloudogu.com>
Co-authored-by: kahoona77 <benjamin.ernst@cloudogu.com>
Co-authored-by: kahoona77 <benjamin.ernst@cloudogu.com>
Remove todo
Use correct extravolumes for gotenberg
Replace nexus to scm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants