Skip to content

dev - #1076

Closed
cgalibern wants to merge 5 commits into
opensvc:mainfrom
cgalibern:dev
Closed

dev#1076
cgalibern wants to merge 5 commits into
opensvc:mainfrom
cgalibern:dev

Conversation

@cgalibern

Copy link
Copy Markdown
Contributor

No description provided.

Fix: Struct CmdObjectCreate has methods on both value and pointer
receivers
…ndling

It defines defaults SSRFWhiteListUrl and SSRFBlockedCIDR from sysconfig like files for opensvc.
With following defaults when OSVC_SSRF_WHITELIST_URL and OSVC_SSRF_BLOCKED_CIDR are not defined.

    SSRFWhiteListUrl = []string{
            "https://raw.githubusercontent.com",
            "https://gitlab.com",
    }

    SSRFBlockedCIDR = []string{
            // RFC 1918 private address ranges
            "10.0.0.0/8",
            "172.16.0.0/12",
            "192.168.0.0/16",

            // RFC 4193 Unique Local IPv6 Unicast Addresses
            "fc00::/7",

            // Loopback ranges
            "127.0.0.0/8", // RFC 1122
            "::1/128",     // RFC 4291
    }
Provide URL validation utility with whitelisting, CIDR blocking, and raw request handling.
Includes comprehensive test coverage.
@cgalibern cgalibern closed this Aug 13, 2026
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.

1 participant