mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
remove exposed example passwords from documentation (#779)
* remove exposed example passwords from documentation Replace hardcoded example password (MyPass#123/MyPass%23123) and project-specific Supabase references (postgres.myproject) with generic placeholders in docs. https://claude.ai/code/session_01H5wj3VH1Jh28kzepEwdDCx * remove hardcoded FlightAware AeroAPI key from flights.py https://claude.ai/code/session_01H5wj3VH1Jh28kzepEwdDCx --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
ed64230833
commit
70ad56a258
3 changed files with 7 additions and 7 deletions
|
|
@ -165,7 +165,7 @@ Then set the environment variable before running Plano:
|
|||
./plano
|
||||
|
||||
.. warning::
|
||||
**Special Characters in Passwords**: If your password contains special characters like ``#``, ``@``, or ``&``, you must URL-encode them in the connection string. For example, ``MyPass#123`` becomes ``MyPass%23123``.
|
||||
**Special Characters in Passwords**: If your password contains special characters like ``#``, ``@``, or ``&``, you must URL-encode them in the connection string. For example, ``P@ss#123`` becomes ``P%40ss%23123``.
|
||||
|
||||
Supabase Connection Strings
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -202,14 +202,14 @@ Use the direct connection (port 5432):
|
|||
|
||||
state_storage:
|
||||
type: postgres
|
||||
connection_string: "postgresql://postgres.myproject:$DB_PASSWORD@aws-0-us-west-2.pooler.supabase.com:5432/postgres"
|
||||
connection_string: "postgresql://postgres.[YOUR-PROJECT-REF]:$DB_PASSWORD@aws-0-[REGION].pooler.supabase.com:5432/postgres"
|
||||
|
||||
Then set the environment variable:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# If your password is "MyPass#123", encode it as "MyPass%23123"
|
||||
export DB_PASSWORD="MyPass%23123"
|
||||
# If your password is "P@ss#123", encode it as "P%40ss%23123"
|
||||
export DB_PASSWORD="<your-url-encoded-password>"
|
||||
|
||||
Troubleshooting
|
||||
---------------
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@ After setting up the database table, configure your application to use Supabase
|
|||
|
||||
**Example:**
|
||||
```bash
|
||||
# If your password is "MyPass#123", encode it as "MyPass%23123"
|
||||
export DATABASE_URL="postgresql://postgres.myproject:MyPass%23123@aws-0-us-west-2.pooler.supabase.com:5432/postgres"
|
||||
# If your password is "P@ss#123", encode it as "P%40ss%23123"
|
||||
export DATABASE_URL="postgresql://postgres.[YOUR-PROJECT-REF]:<your-url-encoded-password>@aws-0-[REGION].pooler.supabase.com:5432/postgres"
|
||||
```
|
||||
|
||||
### Testing the Connection
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ EXTRACTION_MODEL = "openai/gpt-4o-mini"
|
|||
|
||||
# FlightAware AeroAPI configuration
|
||||
AEROAPI_BASE_URL = "https://aeroapi.flightaware.com/aeroapi"
|
||||
AEROAPI_KEY = os.getenv("AEROAPI_KEY", "ESVFX7TJLxB7OTuayUv0zTQBryA3tOPr")
|
||||
AEROAPI_KEY = os.getenv("AEROAPI_KEY")
|
||||
|
||||
# HTTP client for API calls
|
||||
http_client = httpx.AsyncClient(timeout=30.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue