# hewlettpackard/morpheus-msdns-plugin architecture

> Architecture diagram of the GitHub repository hewlettpackard/morpheus-msdns-plugin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hewlettpackard/morpheus-msdns-plugin
- Repository: https://github.com/hewlettpackard/morpheus-msdns-plugin

## Overview

This is a Morpheus plugin for Microsoft Windows DNS. Morpheus configures the integration and syncs zones; during instance provisioning and decommissioning, the DNS provider requests record creation or deletion through the RPC service, which executes PowerShell over WinRM or a Morpheus agent. The README also identifies UI option sources and a custom controller. Source excerpts were not provided, so relationships below rely on README statements; helper and template wiring is not asserted.

Main entry points: [`src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsProvider.groovy`](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsProvider.groovy) (DNS provider), [`src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginRpcService.groovy`](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginRpcService.groovy) (RPC execution), [`src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPlugin.groovy`](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPlugin.groovy) (Plugin entry point), [`src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginController.groovy`](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginController.groovy) (Plugin controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_plugin["Plugin integration"]
  node_plugin["Plugin entry point"]
  node_options["UI option sources"]
  node_controller["Plugin controller"]
end

subgraph group_dns["DNS lifecycle"]
  node_provider["DNS provider"]
  node_helper["Shared helpers"]
end

subgraph group_rpc["RPC and UI"]
  node_rpc["RPC execution"]
  node_template["RPC profile template<br/>[rpcProfile.hbs]"]
  node_ps["PowerShell helper"]
end

node_morpheus(("Morpheus"))
node_windows[("Windows DNS server")]
node_agent(("Morpheus agent"))

node_plugin -->|"registers"| node_provider
node_plugin -->|"registers"| node_options
node_plugin -->|"registers"| node_controller
node_morpheus -->|"configures"| node_provider
node_provider -->|"syncs zones"| node_windows
node_morpheus -->|"triggers lifecycle"| node_provider
node_provider -->|"requests DNS operations"| node_rpc
node_rpc -->|"executes PowerShell"| node_windows
node_rpc -.->|"uses optional transport"| node_agent
node_rpc -.->|"may invoke helper"| node_ps
node_controller -.->|"may render"| node_template

click node_plugin "https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPlugin.groovy"
click node_provider "https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsProvider.groovy"
click node_options "https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsOptionSourceProvider.groovy"
click node_controller "https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginController.groovy"
click node_helper "https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginHelper.groovy"
click node_rpc "https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginRpcService.groovy"
click node_template "https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/resources/hbs/rpcProfile.hbs"
click node_ps "https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/resources/morpheusdnshelper.ps1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_plugin,node_options,node_controller toneBlue
class node_provider,node_helper,node_windows toneAmber
class node_rpc,node_template,node_ps toneMint
class node_morpheus,node_agent toneIndigo
```

## Components

### Plugin integration

- [Plugin entry point](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPlugin.groovy): `src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPlugin.groovy`
- [UI option sources](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsOptionSourceProvider.groovy): `src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsOptionSourceProvider.groovy`
- [Plugin controller](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginController.groovy): `src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginController.groovy`

### DNS lifecycle

- [DNS provider](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsProvider.groovy): `src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsProvider.groovy`
- [Shared helpers](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginHelper.groovy): `src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginHelper.groovy`

### RPC and UI

- [RPC execution](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginRpcService.groovy): `src/main/groovy/com/morpheusdata/msdns/MicrosoftDnsPluginRpcService.groovy`
- [RPC profile template](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/resources/hbs/rpcProfile.hbs): `src/main/resources/hbs/rpcProfile.hbs`
- [PowerShell helper](https://github.com/hewlettpackard/morpheus-msdns-plugin/blob/api-1.1.x/src/main/resources/morpheusdnshelper.ps1): `src/main/resources/morpheusdnshelper.ps1`

### Other components

- **Morpheus**
- **Windows DNS server**
- **Morpheus agent**

## Connections

- Plugin entry point → DNS provider: registers (evidence: `README.md`)
- Plugin entry point → UI option sources: registers (evidence: `README.md`)
- Plugin entry point → Plugin controller: registers (evidence: `README.md`)
- Morpheus → DNS provider: configures (evidence: `README.md`)
- DNS provider → Windows DNS server: syncs zones (evidence: `README.md`)
- Morpheus → DNS provider: triggers lifecycle (evidence: `README.md`)
- DNS provider → RPC execution: requests DNS operations (evidence: `README.md`)
- RPC execution → Windows DNS server: executes PowerShell (evidence: `README.md`)
- RPC execution → Morpheus agent: uses optional transport (evidence: `README.md`)
- RPC execution → PowerShell helper: may invoke helper
- Plugin controller → RPC profile template: may render
