Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1whm82-000PbN-1t for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jul 2026 10:37:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whm7z-00CSrH-0K for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jul 2026 10:37:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1whm7y-00CSr9-2g for pgsql-hackers@lists.postgresql.org; Thu, 09 Jul 2026 10:37:11 +0000 Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1whm7x-00000000IuC-2edX for pgsql-hackers@postgresql.org; Thu, 09 Jul 2026 10:37:10 +0000 Received: by mail-vs1-xe2d.google.com with SMTP id ada2fe7eead31-737de525d2eso1829813137.2 for ; Thu, 09 Jul 2026 03:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783593429; cv=none; d=google.com; s=arc-20260327; b=KC9NWD5M6VCWJnDG3bHoyZnuYPt+xFWO9gQ9KYmddfRzkScaBYl84xpaHxoa9xEocV L2HtTtx0lvfaQ9S2JvSSqSoDw4EDdVZSosP7I63IiNbLKpgKngMqlQ4EAwjKdjRBY3Ba M3c4dYrR0Bc/FxGQcuc99hP4HZQxpz3YwjDtRjnxSAc7QFqXb42Zj+ixFPnpAmOkUjZT +YfZUyXwz14PDu+WvQc1mNvg8AP0ShUQGxZ8qsSYA/QmfPHBP3+suJS+7/ssZOqgTJso FLM2NhlGSpjlHFAYzHu+LidSwi7oyhbLvm8OkT5sgN95OVUujlJHVkx1fNQmdOi4//fe GdSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=WmMO/hJYJ2u1jqRp2WG4Ypp0L/L/GNBZw39z3PpfOqo=; fh=33OU7BWuulPFH378PdKTnpeW+jw3IP20DTmpLDeQ3pE=; b=C9D5zotX82HYd8UTPnk5kS21ZNqRiywUva88NGguqicyLu4ZasbIqYlNn//vWg91A5 UBV00twXruYuPt9uu2xxGhmV+TQHbN28u/jShHTM9K5+K+tMEkm67ifaxX5VUE5R5g0e pcHzMYB2nA6uTAkDoyyUKs7gkcigZW2fXWJ2u19HX12TTbhRUhz4EweV/17+Q9kL1mvA XtXIuoO3UQ/0orPM0HkXPnbiSElikmvfG4JGKNbchV3czr3vc54cuETfrfzUgVsi95iA sXsBXlvagaY6/M7kEWSe3G12f4hS83cE5Q9J9CVNgH0hxCiZozebCMPcpTS8jf8dmZK3 Cm3g==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783593429; x=1784198229; darn=postgresql.org; h=content-type:to:subject:message-id:date:from:mime-version:from:to :cc:subject:date:message-id:reply-to:content-type; bh=WmMO/hJYJ2u1jqRp2WG4Ypp0L/L/GNBZw39z3PpfOqo=; b=GbGaw8HevLDlbsPu64b4/4dwiK9alpDaqyoCRkFyAM0gRfbnZ4kiiuaSkiJvp0/JeU atxmPLvcZCCdU82yusTi7S5yUID3g/wzx8FP/MLnPK2lEKUs/wwN6puCuVtJCKjs+9yB 46/v0oH2RDuZ/ucMW239LLq6gyBQ1oHfcJkgNB6GULpqAQv76hJJpbvqWV/2CWF8qGhP kHpT5claV1lD2u2PtzSoeckg8W6vLbMk8tbOfVgx8qmLfoUgVgRYaydL4ajG9Vp4WsqS v/PnwgJysvLvAYNT6I+L5DuE2TPH2yHPBWTy/jdesi39mDe+p3YRM1pX9e9Nm3+oMFoa yfrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783593429; x=1784198229; h=content-type:to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=WmMO/hJYJ2u1jqRp2WG4Ypp0L/L/GNBZw39z3PpfOqo=; b=EOJjUZXmu21xYFztxK6COcyXah7HsDGCZdia8UePXWi9Lit0elhNN3BNm1PlYF090y PT6cqJ3eqKLBJr4cANfUzhmsKlMOnaP0Y3jiL5bcfy7hWwMMPNvIprcWX7pDIRhNta8k TEolCnI9h2fg0PVfGG2BqvoVtxMR5Iu6up+G6P+05x31TswnFdlc5/YV53OjHhHwAxp9 0VIKMD0kVrpdVH64v+HLoJZrYlv7i0pTtrTK3r8vhCu97ITCJkLejM0HFIdQcKZ2RMSa cCTJrJutjJIfakd0w4VZVNnI8Gu4w1RNbDMFoEjaVmW6sUSAXRugINYctEV60rq2SEQt gy5g== X-Gm-Message-State: AOJu0Yz8AA8t3GGvfDyPsIbc0hq9YKUO12XFaj4volGbNToLOpYArDZk 4DfrCd65j//b6nhC05jZl2QAnpC3HphiZ25Cp2ptd9q+qov4OtwkKEDq8e0+tKl/77NkY7KwzMw L+Lf+A+0HK2hSpz/rRTDq+fQaiPgtE+e0EZtmYxI= X-Gm-Gg: AfdE7cmJnpIti2p69CDY8c8s476XgKCON2ZZO524nshfOtyN6tX0XTk6IUHg92xJE5R rChuyCFfxDNHNTfQvWlapVKS65qd6zr0LJ8A4yygreYqtmnyy+wtL0f5KL7i+6DFoM0ZfmC9wtl 0GhVKi2MXGcsP8catVWHEMZyfbcxoxe2EY9eY4v07dCWAHrVNlurAz17kXUPj6S83PR7Yh0yhwH Qi+rx+xqzG+8yFe5LhuJjtjymQe5Ii64tKzrzvGziHyijJtgITRA8Oct5F9wI1DVCrYpg== X-Received: by 2002:a05:6102:1620:b0:738:133f:8d5e with SMTP id ada2fe7eead31-744dfd968a2mr4434495137.12.1783593429061; Thu, 09 Jul 2026 03:37:09 -0700 (PDT) MIME-Version: 1.0 From: vaibhave postgres Date: Thu, 9 Jul 2026 16:06:58 +0530 X-Gm-Features: AUfX_mw4GxDv4kEokUScv7pCzwfjHa8ENtFkPwIYiRuBVour3icF9EoPBMaiFMY Message-ID: Subject: Rendezvous variables: safe to pass an access token between two extensions? To: pgsql-hackers@postgresql.org Content-Type: multipart/alternative; boundary="000000000000c355ce06562b34a2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c355ce06562b34a2 Content-Type: text/plain; charset="UTF-8" Hi all, Extension A receives an access token and needs to hand it to extension B, which publishes a handler function via a rendezvous variable (find_rendezvous_variable). Since rendezvous variables are just a global, name-keyed void * with no notion of who populated the slot, is it safe to pass a sensitive value (the token) this way? My worry is that another loaded module could register the same name and receive the token instead of the intended extension B. Is there a supported way to verify the publisher of a rendezvous variable, or is there a better way to do this? Any prior art would help. Thanks. --000000000000c355ce06562b34a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,=C2=A0

Extension A receives an a= ccess token and needs to hand it to extension B, which publishes a handler = function via a rendezvous variable (find_rendezvous_variable).
Since rendezvous variables are just a global, name-keyed void = * with no notion of who populated the slot, is it safe to pass a sensitive = value (the token) this way? My worry is that another loaded module could re= gister the same name and receive the token instead of the intended extensio= n B.=C2=A0

Is there a supported way to verify the = publisher of a rendezvous variable, or is there a better way to do this? An= y prior art would help.

Thanks.
--000000000000c355ce06562b34a2--