Skip to content

fix: verify TLS server certificates on monday API calls - #175

Merged
rami-monday merged 1 commit into
mondaycom:masterfrom
dominikko-monday:fix/enforce-tls-certificate-validation
Dec 2, 2026
Merged

rami-monday merged 1 commit into
mondaycom:masterfrom
dominikko-monday:fix/enforce-tls-certificate-validation

Conversation

@dominikko-monday

Copy link
Copy Markdown
Contributor

Item link: https://monday.monday.com/boards/8441268359/views/180502999/pulses/13644100068

Summary

  • api-service.ts and pbb-schema-manager.ts built an HTTPS agent with rejectUnauthorized: false (plus SSL_OP_LEGACY_SERVER_CONNECT). So every authenticated mapps request sent the developer's access token without checking the server certificate, and anyone in the network path could intercept it. A customer reported this.
  • The setting began as an Okteto dev-cert workaround (d38c9a9, Jan 2023). support PBB app feature types in manifest and prompts #165 later copied it into the PBB schema fetch.
  • Remove the custom agent so axios uses Node's default, which verifies certificates. Production endpoints serve valid certs over TLS 1.3, so the legacy renegotiation option did nothing.
  • Add a regression test asserting execute() passes no custom agent, and bump the version to 4.11.3.

Behaviour change: users behind TLS-inspecting corporate proxies may now get certificate errors. They should add their proxy CA via NODE_EXTRA_CA_CERTS, the standard Node mechanism. Worth a line in the release notes.

Test plan

  • yarn build, yarn lint (0 errors), yarn prettier:check pass on Node 18.12.1
  • jest: 52 passed, 1 skipped. The new test fails on the old code.
  • Live request to https://monday-apps-ms.monday.com succeeds with certificate verification on
  • Smoke test mapps init and mapps code:push against prod after release

🤖 Generated with Claude Code

The HTTPS agent in api-service and pbb-schema-manager set
rejectUnauthorized: false (plus SSL_OP_LEGACY_SERVER_CONNECT). This was a
workaround for an Okteto dev certificate (d38c9a9, 2023). With it, every
authenticated CLI request sent the developer's access token without
checking the server certificate, so anyone in the network path could
intercept it.

Drop the custom agent so axios uses Node's default, which verifies
certificates. Production endpoints serve valid certificates over TLS 1.3,
so the legacy renegotiation option was a no-op. Users behind
TLS-inspecting proxies can trust their CA via NODE_EXTRA_CA_CERTS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rami-monday
rami-monday merged commit 273d07e into mondaycom:master Dec 2, 2026
3 checks passed
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.

3 participants