Skip to content

feat(k8s): add bootstrap-mattermost command to configure team webhooks and secrets #2945

Description

@dan-petty

Problem

Setting up Mattermost integrations currently requires manual steps in the web interface:

  • Create the team and channels (alerts and deploys).
  • Create incoming webhooks with "Lock to this channel" for Alertmanager and Argo CD.
  • Create the /roadmap custom slash command.
  • Extract tokens and store them into the workstation keyring (mattermost.alerts_hook, mattermost.deploys_hook, mattermost.command_token).
  • Push secrets to the cluster (monitoring/alertmanager-mattermost, argocd/argocd-notifications-secret, devops/devops-cli).

The homelab needs a deterministic CLI command to apply project configuration to Mattermost and automate onboarding, matching devops k8s bootstrap-openwebui.

Proposal

  1. Add devops k8s bootstrap-mattermost CLI command:
    • Target namespace mattermost and pod deploy/mattermost.
    • Run mmctl --local through kubectl exec to verify or create:
      • Team (homelab or --team)
      • Channels (alerts, deploys)
      • Incoming webhooks for Alertmanager and Argo CD
      • Slash command for /roadmap
    • Store webhook tokens and command token in the OS keyring.
    • Automatically push updated cluster secrets with --push-secrets (default true).
    • Support --dry-run with @dry_run_class("request-plan").
    • Support --context to target specified clusters.
  2. Verify all Mattermost Kubernetes manifests in k8s/mattermost/ for homelab configuration.
  3. Add unit and invariant tests covering dry run, command execution, and error handling.

Activity

  1. added
    source/agent
    type/feature
    scope/k8s
    status/new
    value/medium
    effort/medium
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. It automates manual steps, but manual setup already works, so it is not blocking.
    • Value: Medium. It removes repetitive manual configuration for new Mattermost environments.
    • Effort: Medium. It requires mmctl via kubectl exec, keyring writes, secret pushes, dry-run support, and tests.
    • Related: feat(k8s): auto-mint and synchronize argocd.token and grafana.token in deploy-stack #764, which asks for a different change. Both mint tokens into the OS keyring and push cluster secrets, but #764 targets ArgoCD and Grafana in deploy-stack while the candidate targets Mattermost webhooks in a new bootstrap command.
  3. added
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Oct 31, 2026
  4. removed
    status/in-progress
    on Oct 31, 2026
  5. added
    status/in-progress
    on Oct 31, 2026
  6. removed
    status/in-progress
    on Oct 31, 2026
  7. added a commit that references this issue on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions