diff options
| author | Pjotr <wrk@bosa.lan> | 2026-10-09 05:59:16 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-09 05:59:16 +0000 |
| commit | 167eee5551a8d60490797bccec2baa833e1ae2e5 (patch) | |
| tree | b9d620fd95034c199e54b90cc9a61416300e5b6c /scripts/precompute | |
| parent | cf32f16a1c7bcc850c21051bcd4b27e90f7182cf (diff) | |
| download | gn-guile-main.tar.gz | |
get-bxd-publish-dataid-name-value-dict queried PublishData by
PublishData.Id alone, with no check at all on InbredSetId or on
PublishFreeze.public/confidentiality. It is reachable directly from
GET /dataset/bxd-publish/dataid/values/{id}.json, bypassing the
InbredSetId=1 scoping that get-dataid-from-publishxrefid applies on
the other BXD routes, so any PublishData.Id could be read regardless
of group or confidentiality.
Join through PublishXRef to PublishFreeze and require
public>0 AND confidentiality<1 in that function and in
get-bxd-publish-values-list (same query, unused elsewhere). Also add
the same PublishFreeze check to get-dataid-from-publishxrefid and
get-bxd-publish-list, which were already scoped to InbredSetId=1, for
defense in depth.
Checked with a plain Guile reader pass only (parens balance, 8
top-level forms); this project's guix.scm/manifest.scm need a channel
package (gemma-gn2) not available here, so modules were not resolved
and the SQL was not run.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/precompute')
0 files changed, 0 insertions, 0 deletions
