kenaflow Change Log

kenaflow Changelog

All notable changes to kenaflow will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Added

  • New email workflow SubType EXCHANGEONLINE_GRAPH — Microsoft Graph app-only mail receive (and optional send) for Exchange Online, replacing EWS ahead of Microsoft's retirement of EWS for Exchange Online. Existing EXCHANGEONLINE (EWS) SubType is left intact for tenants that still need it during migration, and the EXCHANGE/EXCHANGE20xx (EWS) SubTypes remain the canonical path for on-premises Exchange (where Graph does not reach).
    • Auth: app-only (client credentials) via MSAL. Certificate (recommended) or client secret, mutually exclusive.
    • Delta polling: /messages/delta with per-mailbox cursor persisted to _wfdata\_wfconfig-graphdelta.<mailboxHash>.txt. Only messages changed since the last poll are transferred.
    • Body fidelity: both HTML and server-generated plain-text bodies are populated on $item, matching the EWS path.
    • Attachments up to 150 MB via /attachments/{id}/$value when Graph's inline contentBytes limit (3 MB) is exceeded.
    • Optional send path (EmailGraphUseForSend): Send-KFMail and internal send routes go via POST /users/{mailbox}/sendMail when enabled. Attachments >3 MB fall through to a clear error in this first iteration; use SMTP for those.
    • Existing SMTP/MailKit send path is unchanged when EmailGraphUseForSend is $false or absent.
    • Configuration reference: Email Workflow Configuration (requires an Azure AD app registration with Microsoft Graph Mail.ReadWrite application permission and admin consent; restricting the app to dedicated mailboxes via ApplicationAccessPolicy is recommended).
    • Verified end-to-end against a Microsoft 365 developer tenant, both via Invoke-Kenaflow and via kenaflow.exe --execperm.
  • New WFConfig fields: EmailGraphTenantId, EmailGraphClientId, EmailGraphClientSecret, EmailGraphCertificateThumbprint, EmailGraphMailbox, EmailGraphAuthority, EmailGraphIncludeInlineAttachments, EmailGraphUseForSend.

fixed

  • --installschedtask and --installcleanuperrorlisttask were not compiled into kenaflow since 2022 (preprocessor symbol Windows instead of WINDOWS, and the TaskScheduler COM reference was bound to a non-existent MSBuild property IsWindows instead of IsOnWindows). Both switches are available again. Side effect: on Windows --activate now also restarts kenaflow with elevated privileges, as originally intended.
  • Admin cmdlet Test-KFAWFConfig (announced in 5.0.27) was never compiled into kenaflow.runtime. It is available now.

[5.0.31] - 2026-06-17

changes

  • Update NuGet packages across all projects. Microsoft.Extensions.*, Microsoft.Maui.Graphics and the System.* family bumped to 10.0.x (the .NET 10 release alignment). kenaflow still targets net8.0; the 10.x packages must resolve net8.0-compatible assets at restore time. Routine bumps for Cronos, MessagePack, MailKit, MimeKit, Newtonsoft.Json, Serilog and the PowerShell SDK as well.
  • Update bundled PowerShell to 7.4.17
  • When kenaflow is hosted in an out-of-process PowerShell (e.g. standalone pwsh importing the runtime module) the AssemblyLoadContext.Default.Resolving event is now registered alongside AppDomain.AssemblyResolve. A [ModuleInitializer] in kenaflow.runtime ensures the resolver is in place before the first cmdlet method runs.

removed

  • Serilog Sink for Grafana Loki. The PackageReference, the wire-up code, the useSerilogLoki / serilogLokiAddress configuration entries and the Embedded.Serilog.Sinks.Grafana.Loki.dll install resource are all gone.

fixed

  • Tight error loops (e.g. when a corrupt RER file was repeatedly retried) could produce thousands of "Change session correlation from X to X" Debug log lines per second and grow an in-memory correlation stack without bound. The setter now treats a same-value assignment as a no-op.

[5.0.30] - 2026-06-15

Added

  • SP config list value caching: workflow config values are now serialised (MessagePack, encrypted) to _wfdata and only re-fetched from SharePoint when the list's LastItemModifiedDate indicates a change.

changes

  • Update bundled PowerShell to 7.4.16 and VSCode to 1.123.0
  • Update HARMONY

fixed

  • WFConfig file parsing for dynamic values

[5.0.29] - 2026-06-05

Added

  • Desktop variants of kenaflow.logserver based on WebView2
  • Embedded GlobalConfig documentation in kenaflow.Release.conf plus a generator for the documentation project
  • DT-MMS specific projects ported from v4, including DT-MMS Excel cmdlets
  • New "SPON" binaries

changes

  • Switch code signing to Azure Code Signing via a shared sign.ps1 wrapper; old _Tools/AzureSignTool removed; setup is documented in _project/areas/build
  • Update PnP stack: pnp-core 1.14, pnp-framework 1.17, pnp-powershell 3.0
  • pdbonly in project files for RELEASE build config
  • Removed Analogy.LogViewer
  • Re-enable parallel workflows

fixed

  • Memory leak bug fix in the RER runner (IABG scenario)

[5.0.28] - 2025-07-31

Added

  • New --norestart switch for permanent workflows
  • PowerShell binder cache: now configurable in global config; added clear powershell binder cache action

changes

  • Update bundled PowerShell to 7.4.11 and VSCode to 1.102.3
  • New SSL dev cert (kenaro wildcard 2025)
  • Memory watchdog: report at "error" level instead of "critical"
  • Normalize web URL
  • Open Source License Overview added

fixed

  • Several LOCK related fixes
  • Improvements to graceful stop
  • Bugfix in latest global config change
  • Multiple Log Server improvements and bugfixes

[5.0.27] - 2025-07-29

Added

  • New admin cmdlet Test-KFAWFConfig and a --checkwfconfig switch
  • Workflow templates: New-Workflow now supports templates with a global-config controlled template root
  • "FileBrowser" service host
  • Allow using SPON certificates from the certificate store

changes

  • Logging improvements, including execution client id logging to help identify deadlocks
  • Improve OAuth2proxy host for kenaflow hosting; multiple other service host adjustments
  • Output binaries of kenaflow.editconfig and kenaflow.patch to bin1
  • In Debug builds an environment variable can override the fixed Activation Code
  • Demo plugins are no longer shipped in Release
  • Log Server refactoring, build pipeline now uses Publish after Release

fixed

  • Bugfix in New-Workflow
  • Bugfix logging

[5.0.26] - 2025-04-07

Added

  • "New Serializer"

changes

  • Allow --vscode and --ulsviewer to be used even when kenaflow is disabled
  • Prevent SMTP protocol from being written to the log all the time
  • Hosting setup adjustments (test002.kenaflowonline.com)
  • Removed Log Server from dev-5-0

fixed

  • Bugfix in New-KFExcelFile

[5.0.25] - 2025-02-03

Added

  • PDF function: PDF with Background

changes

  • Removed app.config copy from installer projects
  • Removed Installer Resources that were copied during build

fixed

  • Bug fixes for the new PDF function

[5.0.24] - 2025-01-16

Added

  • Memory Protector

changes

  • Disable parallel RER (temporarily; re-enabled later in 5.0.29)

fixed

  • Bugfix RerListener (cherry-pick)
  • Bug fixes in upload tools
  • Improvement to New-KFExcelFile

[5.0.23] - 2024-10-29

fixed

  • bug in Send-KFMail: While sending file attachments using the "new sender" (MailKit) there was a bug where we did not set the attachments file name correctly
  • when shutting down kenaflow in some cases there was an endless loop waiting for all child processes to finish but they are already dead at that moment

[5.0.22] - 2024-10-01

changes

  • Improve Serilog based logging as alternative to kenaflow internal log provider
  • Add Serilog Sink for Grafana Loki
  • Add kenaflow internal logging to JSON files

[5.0.21] - 2024-09-18

changes

  • Remove Chromium Linux
  • Change to PuppeteerSharp 20.0
  • Change to Chromium 128
  • Just using Chromium Headless with Puppeteer
  • Allow in-process PDF creation with New-KFPDF

fixed

  • Convertfrom-KFJson

[5.0.20] - 2024-09-16

changes

  • Some changes for kenaflow hosting
  • New versions of Powershell modules for Microsoft 365 services (Teams, Graph, Pnp, ...)

Added

  • Enable/Disable single remote event endpoints in global configuration
  • for New-KFPDF: Option to embedd HTML fragments in a globally or locally defined HTML page frame for easier PDF conversation (using Chromium and PuppeteerSharp)

[5.0.19] - 2024-09-06

changes

  • Some changes for kenaflow hosting

[5.0.18] - 2024-09-05

changes

  • Some changes for kenaflow hosting

[5.0.17] - 2024-09-02

Changed

  • Improved service management using native Windows API to install and uninstall kenaflow service.

[5.0.0] - [5.0.16]

Prerelease versions...

[5.0.0] - 2022-05-08

NEW MAJOR VERSION.

Added

  • New SMTP client: we use open source library MailKit that supports STARTTLS. It's not activated by default but can be activated in global configuration: set parameter useLegacySmtpSender to false.
  • New program mode --installcleanuperrorlisttask to install a Windows Scheduled Task for cleaning up workflow error lists.
  • New settings OrderedStates and RepeatStates for SharePoint State Machine workflows
  • For Send-KFMail there is a new switch parameter: If not 1 recipient for TO and/or CC and/or BCC was specified you normally get an terminating error. With the new switch you only will get a warning.
  • "Main Mode Monitor": Can be enabled by global config. The main mode (--run) will provide an http(s) endpoint with some basic information that can be monitored.
  • Run kenaflow as Windows service instead as scheduled task.
  • Intregrate M365 related PowerShell modules... AzureAD, MS Teams, Exchange Online, SharePoint Online, PnP PowerShell. See cmdlet "Import-KFModule"

Changed

  • We fixed a nasty typo in global configuration where all SMTP related parameters were started smpt. Starting with version 4.0.26 we rename the parameters and move the values from the old parameters during update. The old parameters are removed.
  • We changed the content of the template files for new workflows to contain less technical names, like Workflow Config (new) instead WFconfig (old)
  • Also in the template files for new workflows we added default names for the SharePoint permission sets, like kenaflow Create.
  • kenaflow is normally started by Windows Task Scheduler. It's a long running task with a single instance. It's not started twice. But the Task Scheduler checks every x minutes that kenaflow runs. We changed the check time from 5 minutes to 1 minute. This is not an impact to the performance of the machine!
  • Because Exchange Online Basic Authentication is deprecated we changed the authentication to "app-only" credentials using ClientID and ClientSecret.
  • Write workflow config file full path to log in case of reading/parsing errors

Fixed

  • Bug fix in Send-KFMail
  • Bug fix for Set-KFFinalCheckin
  • kenaflow does restart after global config change (--editconfig) when running as Windows service
  • Bug fix in feature "Hash based flood protection for error mails."