about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-10-09 05:59:16 +0000
committerPjotr <wrk@bosa.lan>2026-10-09 05:59:16 +0000
commit167eee5551a8d60490797bccec2baa833e1ae2e5 (patch)
treeb9d620fd95034c199e54b90cc9a61416300e5b6c /scripts
parentcf32f16a1c7bcc850c21051bcd4b27e90f7182cf (diff)
downloadgn-guile-main.tar.gz
data: require a public, non-confidential PublishFreeze for BXD publish data HEAD main
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')
0 files changed, 0 insertions, 0 deletions