Squadbase
Jun 24

API Key Authentication & Official FastAPI Support

Naoto Shibata
Co-founder, CEO

Squadbase now supports API Key authentication for app access, significantly boosting application scalability and development flexibility. This update also enables the deployment and use of server-side applications, leading to official support for FastAPI in squadbase.yml.

Importance of API Key Authentication for App Access

Previously, Squadbase securely authenticated full-stack frameworks like Streamlit and Next.js for publishing secure applications. However, when implementing server-side applications with frameworks such as FastAPI, sharing common backend processes across multiple apps required separate deployments to AWS or Google Cloud. This presented a challenge, as it prevented users from fully leveraging the benefits of Squadbase's deployment experience.

The introduction of API Key authentication resolves this issue. You can now extract common processes into server-side applications, making it easier for teams to manage larger-scale applications. This expands the scope of application development, allowing you to build more complex systems directly on Squadbase.

How to Create and Access API Keys

Creating API Keys is straightforward through the Squadbase dashboard. When you create an API Key, you can specify the teams and projects it can be used with in detail. Since you can issue multiple API Keys for a single account, managing them by project ensures secure inter-app communication.

These API Keys are also used when utilizing LLMs deployed on Squadbase with Ollama.

API Key Authentication

Deploying FastAPI

With official FastAPI support, you can now specify FastAPI as your framework in squadbase.yml. This streamlines the deployment of your FastAPI applications to Squadbase and enables easy application of API Key authentication.

Of course, if you're using a Dockerfile for deployment, you can still deploy other server-side frameworks and enable API Key access.

For more details on FastAPI deployment, refer to the guide below:

# squadbase.yml
version: '1'

build:
  framework: fastapi
  runtime: python3.11
  package_manager: uv
  entrypoint: main:app

Summary

The addition of API Key authentication and official FastAPI support transforms Squadbase into an even more robust development and deployment platform. The ability to centralize server-side application logic will boost team development efficiency, and improved scalability will significantly benefit your projects.

We encourage you to leverage these new features to experience more flexible and powerful application development with Squadbase.