Skip to content

[INFRA] Deploy Flask API to Azure App Service F1 #29

@Vishnu2707

Description

@Vishnu2707

Objective

Deploy the OpenShield Flask API to Render free tier
so the frontend has a live backend to connect to.

Why Render instead of Azure App Service F1

Azure App Service F1 sleeps after 20 minutes of inactivity
and has only 60 CPU minutes per day. Render free tier
provides a more reliable environment for demo and testing
purposes.

Tasks

  • Create a Render account at render.com
  • Create a new Web Service on Render
  • Connect it to the openshield-org/openshield GitHub repo
  • Set up environment variables in Render dashboard
  • Configure PostgreSQL using Render free PostgreSQL instance
  • Deploy the Flask API
  • Document the live API URL in README.md
  • Test all endpoints against the deployed instance

Acceptance Criteria

  • API accessible at a public Render URL
  • GET /api/findings returns correct JSON
  • GET /api/score returns correct JSON
  • POST /api/scans/trigger works end to end
  • Health check endpoint returns 200

Known Limitations

  • Render free tier spins down after 15 minutes of inactivity
  • First request after spin down takes 30 to 60 seconds
  • Suitable for demo and testing purposes only

Branch

feat/api-deployment

Depends on

Issue #1 must be merged to dev first

Metadata

Metadata

Assignees

Labels

coreCore team ownership not for students

Type

No type
No fields configured for issues without a type.

Projects

Status

🔨 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions