Swap ServiceRadar's local policy copies for the palisade package #3278
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar#3278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
Palisade was extracted from ServiceRadar in #3277 — Apache-2.0
shared library at
elixir/palisade/housing the trust-boundaryprimitives that CRM and ServiceRadar previously kept as drifting
verbatim copies (
NetworkAddressPolicy,OutboundURLPolicy,OutboundFetch).That PR adds the package but does NOT yet migrate ServiceRadar's
own apps off their local copies. This issue tracks the followup.
Files to swap
serviceradar_core/lib/serviceradar/policies/network_address_policy.ex— delete; consumers usePalisade.NetworkAddressPolicy.outbound_url_policy.ex— delete; consumers usePalisade.OutboundURLPolicy.web-ng/lib/serviceradar_web_ng_web/auth/outbound_url_policy.ex(thin wrapper around the policiesmodule) — delete; replace call sites with direct
Palisade.OutboundURLPolicycalls.outbound_fetch.ex— delete; consumers usePalisade.OutboundFetch.Call-site updates
web-ng/lib/serviceradar_web_ng_web/auth/oidc_client.ex—swap alias from
ServiceRadarWebNGWeb.Auth.OutboundFetchtoPalisade.OutboundFetch. Sameget/2/post/2signature.serviceradar_core//serviceradar_agent_gateway/that import the policymodules — grep + swap.
Tests
serviceradar_core/test/serviceradar/policies/*— delete(now in
elixir/palisade/test/palisade/).ServiceRadar.Policies.*namespace.Dep declaration
Each consuming app adds:
```elixir
{:palisade, path: "../palisade"}
```
Same sibling-path pattern as `serviceradar_srql`, `connection`,
`elixir_uuid`.
Acceptance criteria
or `ServiceRadar.Policies.OutboundURLPolicy` references.
`OutboundURLPolicy` references.
(skip file may need fingerprint refresh since deletions
shift line numbers).
Out of scope (separate issues)
`config_cache.ex` into `Palisade.OIDC.*` — palisade v0.2.0
work, separate issue.
`Palisade.SAML.*` — palisade v0.3.0 work, separate issue.
(`migrate-auth-to-ueberauth`); CRM's PR #179 already swaps
its own copies for the palisade dep.
Sequencing note
Land #3277 first. Then this issue's PR can proceed knowing the
package exists.