View Issue Details

IDProjectCategoryView StatusLast Update
0010126Talermerchant backendpublic2025-07-05 00:39
Reporterhank Assigned Toschanzen  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionreopened 
Product Version1.0 
Target Version1.1 
Summary0010126: taler.conf can't be symlink of symlink
Descriptiontaler-merchant-httpd can't read taler.conf if it's a symlink pointing to a symlink pointing to the actual file.

the rule in Linux is normally resolving a chain of symlinks recursively until the actual file.

this is a problem e.g. for kubernetes which maps config files as configmaps into the file system using a 2-hop symlink.

https://kubernetes.io/docs/concepts/configuration/configmap/#using-configmaps-as-files-from-a-pod
Steps To Reproducecreate "tmp2" with the actual config contents, and 2 symlinks:

# ls -la
total 20
drwxr-xr-x 2 root root 4096 Jun 23 23:32 .
drwxr-xr-x 153 root root 12288 Jun 23 23:07 ..
lrwxrwxrwx 1 root root 4 Jun 23 23:29 taler.conf -> tmp1
lrwxrwxrwx 1 root root 4 Jun 23 23:29 tmp1 -> tmp2
-rw-r--r-- 1 root root 401 Jun 23 23:07 tmp2
TagsNo tags attached.

Activities

Christian Grothoff

2025-06-30 18:08

manager   ~0025383

@schanzen: this seems strange, but probably something in libgnunetutil -- care to investigate?

hank

2025-06-30 20:17

reporter   ~0025384

thanks for looking into this. I have a working Kubernetes configuration here that I can share once this is fixed.

schanzen

2025-07-01 12:00

administrator   ~0025385

Fix committed to master branch.

hank

2025-07-05 00:39

reporter   ~0025423

apologies but this is still failing on me with latest gnunet master

have you actually tried the two-symlink arrangement from "steps to reproduce"

Related Changesets

gnunet: master e21d59ae

2025-07-01 14:00

schanzen


Details Diff
util: Properly follow symlinks when determining file size. Fixes 0010126 Affected Issues
0010126
mod - src/lib/util/configuration.c Diff File
mod - src/lib/util/disk.c Diff File
mod - src/lib/util/test_disk.c Diff File

Issue History

Date Modified Username Field Change
2025-06-23 23:39 hank New Issue
2025-06-30 18:08 Christian Grothoff Assigned To => schanzen
2025-06-30 18:08 Christian Grothoff Status new => assigned
2025-06-30 18:08 Christian Grothoff Note Added: 0025383
2025-06-30 18:09 Christian Grothoff Target Version => 1.1
2025-06-30 20:17 hank Note Added: 0025384
2025-07-01 12:00 schanzen Changeset attached => gnunet master e21d59ae
2025-07-01 12:00 schanzen Note Added: 0025385
2025-07-01 12:00 schanzen Status assigned => resolved
2025-07-01 12:00 schanzen Resolution open => fixed
2025-07-05 00:39 hank Status resolved => feedback
2025-07-05 00:39 hank Resolution fixed => reopened
2025-07-05 00:39 hank Note Added: 0025423