Skip to content

[ISSUE #4651] Document WeChat connector event mapping, precautions and references - #5439

Open
Labu1 wants to merge 1 commit into
apache:developfrom
Labu1:repodestek/issue-4651
Open

Labu1 wants to merge 1 commit into
apache:developfrom
Labu1:repodestek/issue-4651

Conversation

@Labu1

@Labu1 Labu1 commented Nov 23, 2026

Copy link
Copy Markdown

Fixes #4651

Motivation

Issue #4651 asks for documentation of eventmesh-connector-wechat covering its functions, configuration items, precautions and official reference links. docs/feature/connectors/wechat.md already listed the classes and -D configuration keys, but had no precautions or reference links, and its Running section was a prose sentence inside a bash block rather than a usable command.

Note: there is a related docs PR on eventmesh-site (apache/eventmesh-site#259) that documents the WeChat sink for the site. This PR updates the in-repo connector page under docs/feature/connectors/, which is where this repository now keeps per-connector docs, and describes the current WechatSourceConnector/WechatSinkConnector behaviour (connector.* properties).

Modifications

Docs only, docs/feature/connectors/wechat.md:

  • CloudEvent mapping (source): how MsgId, MsgType, FromUserName and the raw XML body map onto CloudEvent attributes.
  • Precautions, all derived from the current code:
    • Source: only the GET verification is signature-checked (POSTs are not), only plaintext/compatible encryption mode is supported, the default token eventmesh should be changed, WeChat requires port 80/443 (reverse proxy needed), the HTTP server starts on the first poll(), event pushes have no MsgId and so share the id wechat-, and messages are buffered in memory with a no-op commit.
    • Sink: a plain JSON webhook POST of the event data, no access_token acquisition or refresh, failures/HTTP status are logged and swallowed (no redelivery), and WeChatSinkConfig in eventmesh-common is not used by this connector.
  • Running: replaced the prose with a real CONNECTOR_OPTS=... bin/start-connector.sh example matching the connectors README.
  • References: links to the WeChat Official Account developer docs (access overview, receiving messages, event pushes, access token).

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable
  • If a feature is not applicable for documentation, explain why? This PR is itself a documentation change.
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Testing

Ran gradle test in a clean Linux container: passed.


This PR was prepared with AI assistance (Claude) and reviewed by me before submitting.

…ons and references

The WeChat connector page listed classes and configuration keys but
lacked the precautions and official reference links requested in the
issue, and its Running section was prose inside a bash block.

Add a CloudEvent mapping table for the source, a precautions section
derived from the current source/sink implementation (POST signature
not verified, plaintext mode only, default token, port 80/443
requirement, missing MsgId on event pushes, in-memory buffering, sink
swallowing failures, no access_token handling), a runnable
start-connector example and links to the WeChat developer docs.

Fixes apache#4651.

Signed-off-by: Toprak Arda Akbulut <[email protected]>
@Labu1
Labu1 force-pushed the repodestek/issue-4651 branch from 9fc5598 to e2178de Compare November 23, 2026 21:48

This branch has not been deployed

No deployments
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.

[Doc] Documentation Needed for eventmesh-connector-wechat

1 participant