kingfisher/crates/kingfisher-rules/build.rs
Mick Grove ec44d9b60b - Added kingfisher.temporal.1 rule for Temporal Cloud API keys (namespace-scoped and user-scoped JWT formats) with Temporal-specific pattern matching.
- Added Temporal Cloud active credential validation via GET https://saas-api.tmprl.cloud/cloud/current-identity using bearer auth, so Temporal keys validate against provider APIs instead of generic OIDC discovery.
- Fixed JWT issuer normalization to treat bare host issuers (e.g. iss: temporal.io) as HTTPS URLs during discovery, avoiding low-level URL builder failures.
- Added crates/kingfisher-rules/build.rs to ensure embedded rule assets rebuild when files under crates/kingfisher-rules/data change.
2026-02-11 23:27:05 -08:00

24 lines
525 B
Rust

use std::fs;
use std::path::Path;
fn main() {
let data_dir = Path::new("data");
println!("cargo:rerun-if-changed={}", data_dir.display());
emit_rerun_for_tree(data_dir);
}
fn emit_rerun_for_tree(path: &Path) {
let Ok(entries) = fs::read_dir(path) else {
return;
};
for entry in entries.flatten() {
let p = entry.path();
if p.is_dir() {
emit_rerun_for_tree(&p);
continue;
}
println!("cargo:rerun-if-changed={}", p.display());
}
}