Skip to content

Commit 78bf7fd

Browse files
committed
metamcp: fix provision auth for __Secure-better-auth.session_token; remove stdioSecretEnv in favor of envFrom for STDIO; fix HPA memory metric duplication; bump to 0.1.20
1 parent 6dccb93 commit 78bf7fd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

charts/metamcp/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: metamcp
33
description: MetaMCP aggregator Helm chart for Kubernetes
44
type: application
5-
version: 0.1.19
5+
version: 0.1.20
66
appVersion: "latest"
77
icon: https://icoretech.github.io/helm/charts/metamcp/logo.png
88
keywords:

charts/metamcp/scripts/provision.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@ def signin(retries=8, delay=1.5):
7575
if not token:
7676
# try to read cookie set by server and mirror it under our in-cluster host
7777
for c in sess.cookies:
78-
if c.name == 'better-auth.session_token' and c.value:
78+
if c.name in ('better-auth.session_token','__Secure-better-auth.session_token') and c.value:
7979
token = c.value
8080
break
8181
if token:
82-
try:
83-
sess.cookies.set('better-auth.session_token', token, domain=host, path='/')
84-
except Exception:
85-
sess.cookies.set('better-auth.session_token', token)
82+
# set both cookie names to maximize compatibility with secure-cookie deployments
83+
for cname in ('better-auth.session_token','__Secure-better-auth.session_token'):
84+
try:
85+
sess.cookies.set(cname, token, domain=host, path='/')
86+
except Exception:
87+
sess.cookies.set(cname, token)
8688
sess.headers['Authorization'] = f"Bearer {token}"
8789
# Persist cookies to mozilla jar and reload next time
8890
try:

0 commit comments

Comments
 (0)