Config/Posh-SecretRotation.sample.json

{
  "version": "1.0",
  "Logging": {
    "Enabled": false,
    "MinimumLevel": "Information",
    "Mode": "File",
    "File": {
      "Path": "%USERPROFILE%\\Documents\\Logs",
      "FileName": "Posh-SecretRotation-{yyyyMMdd}.log"
    },
    "EventLog": {
      "LogName": "Application",
      "Source": "Posh-SecretRotation",
      "EventIdInformation": 1000,
      "EventIdWarning": 2000,
      "EventIdError": 3000
    }
  },
  "targets": {
    "example-ad-target": {
      "description": "Example AD target - rename and update for your environment.",
      "backend": "ActiveDirectory",
      "passwordRepresentation": "SecureString",
      "entropy": 128,
      "shamir": {
        "groupThreshold": 1,
        "groups": [
          { "threshold": 3, "count": 5 }
        ]
      },
      "backendConfig": {
        "forest": "corp.local",
        "identity": "svc-account1"
      }
    },
    "example-entra-target": {
      "description": "Example Entra ID target - rename and update for your environment.",
      "backend": "EntraID",
      "passwordRepresentation": "String",
      "entropy": 256,
      "shamir": {
        "groupThreshold": 1,
        "groups": [
          { "threshold": 2, "count": 3 }
        ]
      },
      "backendConfig": {
        "tenantId": "00000000-0000-0000-0000-000000000000",
        "identity": "svc-account2@corp.onmicrosoft.com",
        "forceChangePasswordNextSignIn": false
      }
    },
    "example-custom-target": {
      "description": "Example custom-backend target - rename and update for your environment.",
      "backend": "Custom",
      "passwordRepresentation": "SecureString",
      "entropy": 256,
      "shamir": {
        "groupThreshold": 1,
        "groups": [
          { "threshold": 3, "count": 5 }
        ]
      },
      "backendConfig": {
        "identity": "vault-secret-1"
      },
      "customHandler": {
        "scriptPath": ".\\Backends\\Set-VaultPassword.ps1",
        "functionName": "Set-VaultAccountPassword"
      }
    }
  }
}