API sandbox added to our documentation website
We've made a significant new upgrade to our documentation website, adding an API sandbox where you get hands-on with all of our API endpoints…
You can now use the upstream publish date in Cloudsmith policies for Python, NuGet, Docker, Ruby, Go, Rust (Cargo), Conda, and Maven packages, expanding on the npm support added earlier this year. This enables you to define policies that automatically quarantine new packages for a specific time period (e.g., three days) after release.
Implementing policies that delay package usage is an effective safeguard against zero-day attacks. Enforcing a time lag before consuming a new package version gives the community time to discover vulnerabilities and allows intelligence feeds to update.
When used alongside a Cloudsmith policy that blocks known malicious packages, this "soak period" ensures a robust defense for your software supply chain.
For more information on how we source publish date metadata for each format, see our documentation here.
package cloudsmith
default match := false
# A package is matched if its upstream publish date is within the past N days.
within_past_days := 3
supported_formats := {"npm", "python", "nuget","maven","docker", "ruby", "go", "cargo", "conda"}
match if count(reason) != 0
reason contains msg if {
pkg := input.v0.package
within_past_days_date := time.add_date(time.now_ns(), 0, 0, 0 - within_past_days)
publish_date := time.parse_rfc3339_ns(pkg.upstream_metadata.published_at)
# Match if the publish date comes after the date of the set number of days ago.
publish_date >= within_past_days_date
pkg.format in supported_formats
msg := sprintf("Package upstream publish date is %v (falls within the past %v days)", [pkg.upstream_metadata.published_at, within_past_days])
}
Package publish date is now available for npm, Python, NuGet, Docker, Ruby, Go, Rust, Conda, and Maven. Policy as code is an early access feature; check the docs to learn more and contact us to get access today.
We've made a significant new upgrade to our documentation website, adding an API sandbox where you get hands-on with all of our API endpoints…
We’ve added support for generic upstreams to the Cloudsmith Terraform provider. This update allows customers to automate the proxying and caching of any file-based asset - such as raw binaries or scripts - directly via Infrastructure as Code…
We’ve updated the Cloudsmith web app with several improvements to streamline your daily workflow and provide better visibility into your account usage…
We are deprecating the Client Logs, Client Statistics, and Package Statistics views within the classic Cloudsmith web app. Users navigating to these pages will now see a notice directing them to our new web application to view their data…
We have added the edge_response field to our automated S3 and Azure client log exports…
We’ve rolled out a suite of updates to Broadcasts to help you deliver a more professional, secure, and transparent experience to your end users…