← Back to Pull requests

strongswan: add empty config #22716

Merged
hgl merged 2 files (8 lines) on Feb 20, 2024 05:52 UTC
View on GitHub
hgl hgl commented on Nov 21, 2023 03:08 UTC
Author

Maintainer: @pprindeville @Thermi
Compile tested: (put here arch, model, OpenWrt version)
Run tested: (put here arch, model, OpenWrt version, tests done)

Description:
Without it, using uci to manipulate ipsec config can result in errors, making it much difficult to use in uci-defaults for example.

Diff: 8 lines (+6 / -2) across 2 files Reviewer: pprindeville Review duration: 131203m
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.41) × (1 − Review Confidence (0.80)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.41 · 8 lines diff across 2 files
0.41
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.76 · 5 substantive comment(s)
0.76
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
79%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.131
Sensitive Paths sensitive_paths
0.041
Real PR Conversation Timeline
9 items
pprindeville pprindeville commented on Nov 27, 2023 04:35 UTC
Contributor

Needs PKG_RELEASE bump.

hgl hgl commented on Nov 27, 2023 06:40 UTC
Author

Done.

pprindeville pprindeville approved these changes on Dec 07, 2023 22:41 UTC
Approved Reviewer

LGTM

pprindeville pprindeville commented on Dec 07, 2023 22:41 UTC
Contributor

Please rebase.

hgl hgl commented on Dec 15, 2023 04:26 UTC
Author

rebased

BKPepe BKPepe commented on code on Dec 19, 2023 08:58 UTC
Code Review
net/strongswan/Makefile:1
@@ -498,6 +498,8 @@ define Package/strongswan/install
 	$(INSTALL_DIR) $(1)/usr/lib/ipsec/plugins
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/libstrongswan.so.* $(1)/usr/lib/ipsec/
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-nonce.so $(1)/usr/lib/ipsec/plugins/
+	$(INSTALL_DIR) $(1)/etc/config
+	$(INSTALL_CONF) ./files/ipsec.config $(1)/etc/config/ipsec

Shouldnt be this set as conffile? :-)

hgl hgl commented on code on Dec 19, 2023 09:11 UTC
Code Review
net/strongswan/Makefile:1
@@ -498,6 +498,8 @@ define Package/strongswan/install
 	$(INSTALL_DIR) $(1)/usr/lib/ipsec/plugins
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/libstrongswan.so.* $(1)/usr/lib/ipsec/
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-nonce.so $(1)/usr/lib/ipsec/plugins/
+	$(INSTALL_DIR) $(1)/etc/config
+	$(INSTALL_CONF) ./files/ipsec.config $(1)/etc/config/ipsec

Good catch, since it's already defined in Package/strongswan-swanctl/conffiles, I moved the commands to Package/strongswan-swanctl/install

hgl hgl commented on Jan 01, 2024 04:29 UTC
Author

@pprindeville any chance getting this merged? Happy New Year.

Reviewers
Assignees
hgl hgl
Labels
risk: low confidence: 79.8% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 40.8% (MEDIUM) · Higher = larger blast radius
40.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 79.8% · Lower = rushed or shallow review
79.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 8.2% · Safe to merge
8.2%