taldir

Directory service to resolve wallet mailboxes by messenger addresses
Log | Files | Refs | Submodules | README | LICENSE

commit 83255b217a9d5f78bc93c9b8c7000b8cdd61f822
parent d9054bf1187c882b8ba1d20f7b2403bda1ce9154
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Sat, 26 Apr 2025 14:34:52 +0200

make codespell happy

Diffstat:
MREADME.md | 2+-
Dcmd/taldir-server/testdata/web/templates/imprint.html | 43-------------------------------------------
Dcmd/taldir-server/testdata/web/templates/privacy.html | 59-----------------------------------------------------------
Dcmd/taldir-server/testdata/web/templates/terms.html | 59-----------------------------------------------------------
Mcmd/taldir-server/testdata/web/templates/validation_landing.html | 2+-
Mcontrib/ci/jobs/0-codespell/job.sh | 1+
Mlocales/en-US/taldir.yml | 2+-
Mpkg/rest/taldir.go | 4++--
Mweb/templates/validation_landing.html | 2+-
9 files changed, 7 insertions(+), 167 deletions(-)

diff --git a/README.md b/README.md @@ -39,7 +39,7 @@ For the `[taldir]` section: * "email_sender" (string): For email validations, what should the sender address be. * "host" (string): For the validation link, which hostname should be used (useful if behind proxy). * "bind_to" (string): Where to bind and listen (HTTP server). - * "salt" (string): The salt to use for identity key hashes in the databse may alternatively be an environment variable `TALDIR_SALT`. + * "salt" (string): The salt to use for identity key hashes in the database may alternatively be an environment variable `TALDIR_SALT`. * "monthly_fee" (string): The monthly fee for a registration (Default: "KUDOS:1") * "default_doc_filetype" (string): The default file type for the terms of service and privacy policy documents (Default: "text/markdown") * "default_doc_lang" (string): The default language for the terms of service and privacy policy documents (Default: "en-US") diff --git a/cmd/taldir-server/testdata/web/templates/imprint.html b/cmd/taldir-server/testdata/web/templates/imprint.html @@ -1,43 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <!-- Required meta tags --> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> - <link href="/css/bootstrap.min.css" rel="stylesheet"> - <link href="/css/style.css" rel="stylesheet"> - <link href="/fontawesome/css/fontawesome.css" rel="stylesheet" /> - <link href="/fontawesome/css/solid.css" rel="stylesheet" /> - <title>{{ call .tr "title" }}</title> - </head> - <body> - {{ template "nav.html" . }} - <div class="card"> - <h2>Impressum</h2> - - <i>[German law demands this]</i><p> - - GNUnet e.V.<br> - 83661 Lenggries - - </p><p> - Email: taldir (at) gnunet (punkt) org - - </p><h2>Datenschutzerklärung</h2> - - <p> - Der Webserver schreibt Logdateien mit den Zugriffen und den IP-Adressen - der Zugreifer. Diese dienen der Fehlersuche im Krisenfall und werden - ansonsten nicht ausgewertet. Da es hier keine Benutzerkonten und keine - Tracking-Cookies o.ä. gibt, betrachte ich diese Logdateien nicht als - personenbezogen. - </p><p> - Abgesehen davon werden keine Daten erhoben, gespeichert oder - ausgewertet. - - - </p> - </div> - {{ template "footer.html" . }} - </body> -</html> diff --git a/cmd/taldir-server/testdata/web/templates/privacy.html b/cmd/taldir-server/testdata/web/templates/privacy.html @@ -1,59 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <!-- Required meta tags --> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> - <link href="/css/bootstrap.min.css" rel="stylesheet"> - <link href="/fontawesome/css/fontawesome.css" rel="stylesheet" /> - <link href="/fontawesome/css/solid.css" rel="stylesheet" /> - <title>{{ call .tr "title" }}</title> - </head> - <body> - {{ template "nav.html" . }} - <div class="card"> - <p>The <strong>TalDir Alias Registration and Lookup</strong> application is designed to allow users to securely store and retrieve bank - account information, accessible via email address and mobile phone number, to facilitate seamless banking - operations.</p> - - <p>This Privacy Policy outlines how we handle the data collected during the use of the service, in compliance with - applicable data protection regulations and legal requirements.</p> - - <h2>1. Types of Data Collected</h2> - <p>In the course of using the service, we collect the following data:</p> - <ul> - <li>A hash of the email or phone number provided by users.</li> - <li>The payment system address.</li> - </ul> - - <h2>2. Purpose of Data Collection</h2> - <p>The collected data is used solely to enable the storage and retrieval of bank account information in a secure and - efficient manner. No data is used for marketing or unsolicited communication purposes.</p> - - <h2>3. Access and Modification of Data</h2> - <p>Users retain full control over their personal data. They can update their information by completing the - registration process again or delete it by selecting the appropriate option during registration.</p> - - <h2>4. Data Sharing</h2> - <p>We do not share personal data with third parties unless required by law.</p> - - <h2>5. Data Storage and Security</h2> - <p>The collected data is stored on secure servers that comply with current data protection regulations. Technical - and organizational measures are in place to protect the data from unauthorized access, loss, or misuse.</p> - - <h2>6. Rights of the Data Subjects</h2> - <p>Users have full control over their personal data. They can access, update, or delete their data themselves - through the registration process.</p> - - <h2>7. Contact</h2> - <p>If you have any questions regarding the collection, processing, or use of your personal data, or if you wish to - exercise your rights as a data subject, please contact us at <a href="mailto:legal@gnunet.org">legal@gnunet.org</a>.</p> - - <h2>8. Scope and Changes</h2> - <p>This Privacy Policy applies to the use of the service and may be updated periodically to reflect - legal requirements or changes in the project. Any changes will be reflected on this page and will not be - announced separately.</p> - - </div> - </body> -</html> diff --git a/cmd/taldir-server/testdata/web/templates/terms.html b/cmd/taldir-server/testdata/web/templates/terms.html @@ -1,59 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <!-- Required meta tags --> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> - <link href="/css/bootstrap.min.css" rel="stylesheet"> - <link href="/fontawesome/css/fontawesome.css" rel="stylesheet" /> - <link href="/fontawesome/css/solid.css" rel="stylesheet" /> - <title>{{ call .tr "title" }}</title> - </head> - <body> - {{ template "nav.html" . }} - <div class="card"> - <p> - The <strong>TalDir Alias Registration and Lookup</strong> service is designed to allow users to securely store and retrieve bank - account information, accessible via email address and mobile phone number, to facilitate seamless banking - operations. - </p> - - <h2>1. General Use</h2> - <p> - TalDir is a public service intended for use by anyone. Users shall only register information about - themselves and must not register information pertaining to other individuals. - </p> - - <h2>2. Data Protection</h2> - <p> - The protection of your data is our top priority. The application strictly adheres to applicable data protection - laws and regulations. For more information, please consult our <a href="privacy.html">Privacy Policy</a>. - </p> - - <h2>3. User Responsibilities</h2> - <p> - Users are responsible for using the application according to the provided guidelines and ensuring that all - input data is accurate and truthful. - </p> - - <h2>4. Disclaimer and Availability</h2> - <p> - The project team assumes no liability for damages resulting from improper use of the application. The application - is provided in its current state, and no guarantee is given for complete error-free operation. - </p> - <div class="alert alert-warning"> - <p><strong>Important Note on Availability:</strong> We strive to keep the application available as much as - possible. However, due to technical maintenance, system updates, or unforeseen issues, occasional downtimes - or maintenance periods may occur.</p> - </div> - - <h2>5. Changes to the Terms of Use</h2> - <p>The project team reserves the right to change these Terms of Use at any time. - Any changes will be reflected on this page and will not be announced separately.</p> - - <h2>6. Contact</h2> - <p>If you have any questions regarding these Terms of Use or the use of the ECB Lookup application, please contact - us at <a href="mailto:legal@gnunet.org">legal@gnunet.org</a>.</p> - </div> - </body> -</html> diff --git a/cmd/taldir-server/testdata/web/templates/validation_landing.html b/cmd/taldir-server/testdata/web/templates/validation_landing.html @@ -15,7 +15,7 @@ {{if .error}} <div class="container pt-5"> <div id="ebanner" class="alert alert-danger" role="alert"> - <h4 class="alert-heading">An error occured!</h4> + <h4 class="alert-heading">An error occurred!</h4> <hr> <p class="mb-0">{{.error}}.</p> </div> diff --git a/contrib/ci/jobs/0-codespell/job.sh b/contrib/ci/jobs/0-codespell/job.sh @@ -86,6 +86,7 @@ ltmain.sh *.xlsx *.zkey */third_party/** +*/locales/** EOF ); diff --git a/locales/en-US/taldir.yml b/locales/en-US/taldir.yml @@ -1,6 +1,6 @@ phone: "Phone" email: "E-mail" -error: "An error occured!" +error: "An error occurred!" title: "Alias Registration and Lookup" selectAliasToLookup: "Select a type of alias that you want to look up:" howtoRegisterOrModify: "In order to register an alias with a Payment System Address or modify an already registered Payment System Address, first look up the respective alias." diff --git a/pkg/rest/taldir.go b/pkg/rest/taldir.go @@ -173,7 +173,7 @@ type Validator struct { LandingPageTpl *template.Template } -// VersionResponse is the JSON response of the /config enpoint +// VersionResponse is the JSON response of the /config endpoint type VersionResponse struct { // libtool-style representation of the Merchant protocol version, see // https://www.gnu.org/software/libtool/manual/html_node/Versioning.html#Versioning @@ -247,7 +247,7 @@ type Entry struct { // Validation is the object created when a registration for an entry is initiated. // The Validation stores the identity key (sha256(identity)) the secret // Validation reference. The Validation reference is sent to the identity -// depending on the out-of-band chennel defined through the identity key type. +// depending on the out-of-band channel defined through the identity key type. type Validation struct { // ORM diff --git a/web/templates/validation_landing.html b/web/templates/validation_landing.html @@ -15,7 +15,7 @@ {{if .error}} <div class="container pt-5"> <div id="ebanner" class="alert alert-danger" role="alert"> - <h4 class="alert-heading">An error occured!</h4> + <h4 class="alert-heading">An error occurred!</h4> <hr> <p class="mb-0">{{.error}}.</p> </div>