accounts

command module
v0.0.0-...-b68d871 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: MPL-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Brave Accounts Service

Development setup

  1. Copy .env.example to .env
  2. Run make run

Visit http://localhost:8080/v2/verify/email_viewer to view sent verification emails. Use make clear-emails to delete all sent emails.

Run make test to run the test suites.

View API documentation at http://localhost:8080/swagger/index.html.

Environment variables

Name Required? Description
ENVIRONMENT Yes Must be production, staging, or development
DATABASE_URL Yes PostgreSQL database connection URL
DATABASE_POOL_SIZE No Max open and idle connections in the Postgres pool (default: 100)
EMAIL_FROM_ADDRESS Yes Email address used as sender for verification emails
BASE_URL Yes Base URL of the service
OPAQUE_SECRET_KEY Yes OPAQUE server secret key
OPAQUE_PUBLIC_KEY Yes OPAQUE server public key
RDS_ROLE Yes (if RDS is being used) The AWS IAM role ARN to assume for RDS access
RDS_DATABASE_PORT Yes (if RDS is being used) The port number for the RDS database connection
RDS_WRITER_ENDPOINT Yes (if RDS is being used) The endpoint URL for the RDS writer instance
RDS_USER Yes (if RDS is being used) The username for RDS database authentication
RDS_DATABASE_NAME Yes (if RDS is being used) The name of the RDS database to connect to
AWS_REGION Yes (if RDS is being used) The AWS region where the RDS instance is deployed
AWS_ENDPOINT No Custom AWS endpoint for testing
LOG_PRETTY No Enable pretty logging format if set to 'true'
LOG_LEVEL No Logging level (default: info)
OPAQUE_FAKE_RECORD No Use OPAQUE fake record to prevent client enumeration attacks
VERIFY_FRONTEND_URL No Frontend URL to use in verification emails
BRAVE_SERVICES_KEY No Comma-separated list of services keys to check against (via the BraveServiceKey header) for all requests
DEV_ENDPOINTS_ENABLED No Enable the development-only endpoints
ALLOWED_ORIGINS No List of allowed origins for CORS, separated by comma
SES_CONFIG_SET No Configuration set name to use for SES emails
SES_ROLE No The AWS IAM role ARN to assume for SES access
ACCOUNT_DELETION_ENABLED No Enables account deletion endpoint
DELETION_WEBHOOK_URLS No Comma-separated list of servicename=url webhooks to call with DELETE before account deletion. Account deletion fails if any webhook does not return a 2xx response
KEY_SERVICE_URL No Use the key service for deriving OPRF seeds and signing JWTs
KEY_SERVICE_SECRET No Secret to use for key service requests
KEY_SERVICE_DATABASE_URL No PostgreSQL database connection URL for key service
TEST_DATABASE_URL No Database URL to use for tests
TEST_KEY_SERVICE_DATABASE_URL No Database URL to use for tests involving the key service

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
misc
ses-v2-local command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址