x509policy.WithPermittedDNSDomains(allowed.DNSDomains),// TODO(hs): be a bit more lenient w.r.t. the format of domains? I.e. allow "*.localhost" instead of the ".localhost", which is what Name Constraints do.
x509policy.WithPermittedCIDRs(allowed.IPRanges),// TODO(hs): support IPs in addition to ranges
x509policy.WithExcludedDNSDomains(denied.DNSDomains),// TODO(hs): be a bit more lenient w.r.t. the format of domains? I.e. allow "*.localhost" instead of the ".localhost", which is what Name Constraints do.
x509policy.WithExcludedCIDRs(denied.IPRanges),// TODO(hs): support IPs in addition to ranges
sshpolicy.WithPermittedDNSDomains(allowed.DNSDomains),// TODO(hs): be a bit more lenient w.r.t. the format of domains? I.e. allow "*.localhost" instead of the ".localhost", which is what Name Constraints do.
sshpolicy.WithExcludedDNSDomains(denied.DNSDomains),// TODO(hs): be a bit more lenient w.r.t. the format of domains? I.e. allow "*.localhost" instead of the ".localhost", which is what Name Constraints do.