Skip to content

fix: handle null IDs and token in virtual heater#39

Merged
matchews merged 1 commit into
haywardomnilogiclocalfrom
codex/fix-null-checks-in-handlecommand
Sep 9, 2025
Merged

fix: handle null IDs and token in virtual heater#39
matchews merged 1 commit into
haywardomnilogiclocalfrom
codex/fix-null-checks-in-handlecommand

Conversation

@matchews

@matchews matchews commented Sep 9, 2025

Copy link
Copy Markdown
Owner

Summary

  • check poolID, systemID and token for null before sending commands
  • use Objects.requireNonNull when building heater commands

Testing


https://chatgpt.com/codex/tasks/task_e_68c0ad052e00832381cd082bc903b8c2

@matchews matchews merged commit 818b281 into haywardomnilogiclocal Sep 9, 2025
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines +127 to +129
if (poolID == null || systemID == null || token == null) {
logger.warn("haywardCommand missing configuration (poolID={}, systemID={}, token={})", poolID,
systemID, token);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Stop logging authentication token

The warning emitted when any of poolID, systemID, or token is null logs the raw token value even when only one of the other fields is missing. The token is an account credential and this statement now leaks it at WARN level whenever misconfiguration occurs. Consider omitting the token entirely or masking it so that secret material is never written to logs.

Useful? React with 👍 / 👎.

@matchews matchews deleted the codex/fix-null-checks-in-handlecommand branch September 10, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant