FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Using CEL's now() to enforce dependency cooldown periods - block packages published in the last N hours
How-ToWeb Development

Using CEL's now() to enforce dependency cooldown periods - block packages published in the last N hours

via Reddit Programming/u/BattleRemote315719h ago

Supply chain attacks often rely on speed that is publish a malicious version, let automated builds pull it before detection catches up. One defense is a cooldown period : refuse any dependency published within the last N hours. CEL (Common Expression Language) doesn't expose now() by default since it's designed to be hermetic. This article actually walks through registering a custom now() function binding that returns the current UTC timestamp, using duration arithmetic to compare against package_published_at , and using the has() macro to handle packages so new they haven't been indexed yet - which is the edge case that will bite you if you miss it. submitted by /u/BattleRemote3157 [link] [comments]

Continue reading on Reddit Programming

Opens in a new tab

Read Full Article
0 views

Related Articles

Building DNS query tool from scratch using C
How-To

Building DNS query tool from scratch using C

Reddit Programming • 19h ago

How to build .NET obfuscator - Part I
How-To

How to build .NET obfuscator - Part I

Reddit Programming • 1d ago

How to Use Traceroute and MTR to Diagnose Network Issues
How-To

How to Use Traceroute and MTR to Diagnose Network Issues

DigitalOcean Tutorials • 1w ago

apt-key Deprecation: Add Repositories with GPG on Ubuntu
How-To

apt-key Deprecation: Add Repositories with GPG on Ubuntu

DigitalOcean Tutorials • 1w ago

How To Use Variadic Functions in Go
How-To

How To Use Variadic Functions in Go

DigitalOcean Tutorials • 2w ago

Discover More Articles