From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=irif.fr (client-ip=2001:660:3301:8000::1:2; helo=korolev.univ-paris7.fr; envelope-from=jch@irif.fr; receiver=) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=irif.fr header.i=@irif.fr header.a=rsa-sha256 header.s=dkim-irif header.b=KNlhikBd Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) by mail.toke.dk (Postfix) with ESMTPS id 3A027A63FED for ; Thu, 11 Apr 2024 18:18:09 +0200 (CEST) Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/82085) with ESMTP id 43BGI8UP025693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 11 Apr 2024 18:18:08 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/82085) with ESMTP id 43BGI8l5021114 for ; Thu, 11 Apr 2024 18:18:08 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 81DAF3B5CA for ; Thu, 11 Apr 2024 18:18:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=irif.fr; h= content-type:content-type:mime-version:user-agent:subject :subject:from:from:message-id:date:date:received:received; s= dkim-irif; t=1712852287; x=1713716288; bh=owG0yo1J/36HKfAtBCvdra vFWMzt1z3SvUzRzLEfaso=; b=KNlhikBdpkOgvyHZ86opKO62YgrVGqzBgfvAP6 YBPQ6VJF39MdeedKccpg6GYH3OrERxhg5juRIxCQlY775Hpy7IvOf5FQeRfiEk4x n/6rsqevkY939mi3F+7MaHMQmj5OKfYNLiIcN1Nzh8YLf78oM/+uU729Y/cXsu40 cJCGrjDxFn7VC8z9M/Z2yhlw2eJcikxqO3FNiAzU/Elgul+pUKdMLMjKCWTTER4X jxiv1CLkATc3q4QuS01Jt2Zx7f16JFqmJsLEiAUm629wDhYTT2ijhGkTYsyGzRv6 h4iBdN53RE9uz9NPCF5Ct7tzJnNfYxkIdY8NZpq+1s+fC5xg== X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id jTxHKklBdaFr for ; Thu, 11 Apr 2024 18:18:07 +0200 (CEST) Received: from pirx.irif.fr (unknown [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id D601C3B55F for ; Thu, 11 Apr 2024 18:18:06 +0200 (CEST) Date: Thu, 11 Apr 2024 18:18:06 +0200 Message-ID: <87ttk7c1q9.wl-jch@irif.fr> From: Juliusz Chroboczek To: galene@lists.galene.org User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/29.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Thu, 11 Apr 2024 18:18:08 +0200 (CEST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Thu, 11 Apr 2024 18:18:08 +0200 (CEST) X-Miltered: at korolev with ID 66180D40.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-Miltered: at potemkin with ID 66180D40.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 66180D40.000 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/ X-j-chkmail-Enveloppe: 66180D40.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 66180D40.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Score: MSGID : 66180D40.000 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-j-chkmail-Status: Ham Message-ID-Hash: OZAUTRYOWQSVITDRL2I27RN5Y4PR6OMW X-Message-ID-Hash: OZAUTRYOWQSVITDRL2I27RN5Y4PR6OMW X-MailFrom: jch@irif.fr X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Subject: [Galene] Galene API merged into master List-Id: =?utf-8?q?Gal=C3=A8ne_videoconferencing_server_discussion_list?= Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi, I've just merged the "api" branch into master. If you choose to upgrade, please check your log file for warnings, they may indicate that you are using features of the old group file format that cannot be converted to the new format. In order to use the API: 0. Upgrade to current master. 1. Set a "users" and "writableGroups" "users": {"root": {"permissions": "admin", "password": ...}}, "writableGroups": true The value of the password field can be either a plain-text password, or a hashed password entry as generated by "galene-password-generator". 2. Log into a group with password authentication (not with a token), open the side menu, choose "change password", and notice that you can now change your password without editing any JSON files. 3. Say: curl -i -u root -X PUT -d '{}' -H 'Content-Type: application/json' -H 'If-None-Match: *' https://galene.org:8443/galene-api/0/.groups/test/ curl -i -u root -X PUT -d '{"permissions":"present"}' -H 'Content-Type: application/json' -H 'If-None-Match: *' https://galene.example.org:8443/galene-api/0/.groups/test/.users/jch curl -i -u root -X POST -d 'topsecret' -H 'Content-Type: text/plain' https://galene.example.org:8443/galene-api/0/.groups/test/.users/jch/.password Next steps: 1. Write a simple management UI, just enough to create groups and users. 2. Add token management to the API. -- Juliusz