Skip to content

feat(ocm): Strengthen OCM client security - #5389

Closed
MahdiBaghbani wants to merge 22 commits into
cs3org:masterfrom
MahdiBaghbani:reva/feature-ocm-security
Closed

MahdiBaghbani wants to merge 22 commits into
cs3org:masterfrom
MahdiBaghbani:reva/feature-ocm-security

Conversation

@MahdiBaghbani

Copy link
Copy Markdown
Member

This PR is a part of cs3org/OCM-STA#1
This PR depends on the #5385 to be merged first.

Description

This PR introduces security measures to the OCM client to prevent common attack vectors such as SSRF, DNS rebinding, and resource exhaustion attacks. The implementation provides configurable security controls while maintaining backward compatibility with existing code.

@MahdiBaghbani

MahdiBaghbani commented Nov 1, 2025 •

Copy link
Copy Markdown
Member Author

This could be extended to:

ocmClient: ocmd.NewClient(time.Duration(c.OCMClientTimeout)*time.Second, c.OCMClientInsecure),

ocmcl := ocmd.NewClient(time.Duration(c.ClientTimeout)*time.Second, c.ClientInsecure)

ocmClient := NewClient(time.Duration(10)*time.Second, true)

so everything can use same defaults or same config

@MahdiBaghbani
MahdiBaghbani force-pushed the reva/feature-ocm-security branch from c7a2579 to 1e16ce4 Compare August 14, 2026 16:53
@glpatcern

Copy link
Copy Markdown
Member

Superseded by #5833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCM Open Cloud Mesh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants