Bug 277219 - security/xray-core: Update to 1.8.7 overwrite all config files
Summary: security/xray-core: Update to 1.8.7 overwrite all config files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-22 05:43 UTC by Vladimir Boldin
Modified: 2024-05-02 11:13 UTC (History)
2 users (show)

See Also:
jbo: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Boldin 2024-02-22 05:43:21 UTC
After update to 1.8.7 all config files were overwritten

# ll /usr/local/etc/xray-core/
total 40
-rw-r--r--  1 root  wheel  137 Feb 18 07:21 00_log.json
-rw-r--r--  1 root  wheel  105 Feb 18 07:21 01_api.json
-rw-r--r--  1 root  wheel   19 Feb 18 07:21 02_dns.json
-rw-r--r--  1 root  wheel  129 Feb 18 07:21 03_routing.json
-rw-r--r--  1 root  wheel  212 Feb 18 07:21 04_policy.json
-rw-r--r--  1 root  wheel   24 Feb 18 07:21 05_inbounds.json
-rw-r--r--  1 root  wheel   25 Feb 18 07:21 06_outbounds.json
-rw-r--r--  1 root  wheel  186 Feb 18 07:21 07_transport.json
-rw-r--r--  1 root  wheel   18 Feb 18 07:21 08_stats.json
-rw-r--r--  1 root  wheel   70 Feb 18 07:21 09_reverse.json
Comment 1 Kirill Lebedev 2024-02-23 18:39:58 UTC
Ack. Thanks fore reporting. Port make file has bug with config files copy. I will look into it.
Comment 2 Vladimir Boldin 2024-03-17 12:00:33 UTC
Same situation after upgrade to xray-core-1.8.7_2

# ll /usr/local/etc/xray-core/
total 11560
-rw-r--r--  1 root  wheel       137 Mar 11 03:37 00_log.json
-rw-r--r--  1 root  wheel       105 Mar 11 03:37 01_api.json
-rw-r--r--  1 root  wheel        19 Mar 11 03:37 02_dns.json
-rw-r--r--  1 root  wheel       129 Mar 11 03:37 03_routing.json
-rw-r--r--  1 root  wheel       212 Mar 11 03:37 04_policy.json
-rw-r--r--  1 root  wheel        24 Mar 11 03:37 05_inbounds.json
-rw-r--r--  1 root  wheel        25 Mar 11 03:37 06_outbounds.json
-rw-r--r--  1 root  wheel       186 Mar 11 03:37 07_transport.json
-rw-r--r--  1 root  wheel        18 Mar 11 03:37 08_stats.json
-rw-r--r--  1 root  wheel        70 Mar 11 03:37 09_reverse.json
Comment 3 Kirill Lebedev 2024-03-19 02:21:36 UTC
Config files overwrite is fixed in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277798

I will close this bug when patch is merged.
Comment 4 Kirill Lebedev 2024-03-30 00:10:24 UTC
The bug is fixed in the latest port. It should propagate through the standard build cycle.
Comment 5 Vladimir Boldin 2024-04-14 12:58:54 UTC
Again same situation after update. Xray-core-1.8.8_1

# ll /usr/local/etc/xray-core
total 88
drwxr-xr-x  2 root wheel - 1024 Apr 14 15:50 ./
drwxr-xr-x  8 root wheel -  512 Apr  8 01:17 ../
-rw-r--r--  1 root wheel -  137 Apr  8 06:40 00_log.json
-rw-r--r--  1 root wheel -  137 Apr  8 06:40 00_log.json.sample
-rw-r--r--  1 root wheel -  105 Apr  8 06:40 01_api.json
-rw-r--r--  1 root wheel -  105 Apr  8 06:40 01_api.json.sample
-rw-r--r--  1 root wheel -   19 Apr  8 06:40 02_dns.json
-rw-r--r--  1 root wheel -   19 Apr  8 06:40 02_dns.json.sample
-rw-r--r--  1 root wheel -  129 Apr  8 06:40 03_routing.json
-rw-r--r--  1 root wheel -  129 Apr  8 06:40 03_routing.json.sample
-rw-r--r--  1 root wheel -  212 Apr  8 06:40 04_policy.json
-rw-r--r--  1 root wheel -  212 Apr  8 06:40 04_policy.json.sample
-rw-r--r--  1 root wheel -   24 Apr  8 06:40 05_inbounds.json
-rw-r--r--  1 root wheel -   24 Apr  8 06:40 05_inbounds.json.sample
-rw-r--r--  1 root wheel -   25 Apr  8 06:40 06_outbounds.json
-rw-r--r--  1 root wheel -   25 Apr  8 06:40 06_outbounds.json.sample
-rw-r--r--  1 root wheel -  186 Apr  8 06:40 07_transport.json
-rw-r--r--  1 root wheel -  186 Apr  8 06:40 07_transport.json.sample
-rw-r--r--  1 root wheel -   18 Apr  8 06:40 08_stats.json
-rw-r--r--  1 root wheel -   18 Apr  8 06:40 08_stats.json.sample
-rw-r--r--  1 root wheel -   70 Apr  8 06:40 09_reverse.json
-rw-r--r--  1 root wheel -   70 Apr  8 06:40 09_reverse.json.sample
Comment 6 Kirill Lebedev 2024-04-15 02:00:36 UTC
It should be fixed for future updates. I validated that the changed config files are not being overwritten. Sadly, I do not think that fix is working for existing configs before 1.8.8_1
Comment 7 Vladimir Boldin 2024-05-02 11:13:16 UTC
Fized, thanks!