Skip to content

feature: add support for persistent storage#18

Merged
zduey merged 10 commits intomainfrom
feature/persistent-storage
Apr 18, 2026
Merged

feature: add support for persistent storage#18
zduey merged 10 commits intomainfrom
feature/persistent-storage

Conversation

@zduey
Copy link
Copy Markdown
Owner

@zduey zduey commented Apr 11, 2026

No description provided.

zduey and others added 3 commits April 11, 2026 11:59
raise HTTPException(status_code=500, detail=str(error)) from error


@router.post("/me/recipes/from-upload", status_code=201)
Copy link
Copy Markdown
Owner Author

@zduey zduey Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude - This api design has a bad smell to me. Is this a standard way to handle multiple ways to create the same underlying API object? Is there a better way to do this?

extra="ignore",
)

anthropic_api_key: str | None = None
Copy link
Copy Markdown
Owner Author

@zduey zduey Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude - Should this be generalized so that we pair an API key with model provider to it's easier to to swap out model providers?

Comment on lines 46 to 47
supabase_jwt_secret: str | None = None # For HS256 verification (legacy)
supabase_url: str | None = None # For ES256 JWKS verification
Copy link
Copy Markdown
Owner Author

@zduey zduey Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude - Should these also be pulled out into a separate config object so that there is less supabase dependency in the general config?

Comment on lines +56 to +64
# Storage configuration
storage_backend: str = "local" # "local" | "s3"
storage_local_path: str = "uploads"
storage_public_base_url: str | None = None # Required for S3 public buckets; auto-set for local
s3_bucket: str | None = None
s3_endpoint_url: str | None = None # MinIO, R2, B2 override
s3_access_key_id: str | None = None
s3_secret_access_key: str | None = None
s3_region: str = "us-east-1"
Copy link
Copy Markdown
Owner Author

@zduey zduey Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude - Should all of this be pulled out to make it easier to swap config for local storage vs. s3 storage?

@zduey zduey merged commit b5e5e15 into main Apr 18, 2026
12 checks passed
@zduey zduey deleted the feature/persistent-storage branch April 18, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant