Rubric Grader icon

1-Page District & School Review Brief · Google Workspace for Education™

Rubric Grader — IT Admin Security & Privacy Summary

Prepared by Marginalia Software for school, district, and university IT administrators evaluating Rubric Grader for Domain-Wide Install or Organizational Unit (OU) approval.

Executive Summary

Rubric Grader is a multi-surface Google Workspace™ add-on enabling educators to grade handwritten or typed worksheets in Google Sheets™, open-ended quiz responses in Google Forms™, written essays in Google Docs™, and individual files from Google Drive™ or Gmail™ against their own rubric.

1. Exact OAuth Scopes Requested

Rubric Grader requests exclusively non-restricted, least-privilege scopes—no broad drive, drive.readonly, spreadsheets, or gmail.readonly scopes.

OAuth Scope Why It Is Needed What It Cannot Access
https://www.googleapis.com/auth/spreadsheets.currentonly Appends graded rows exclusively to the active Google Sheets™ file when run from Sheets. Cannot access arbitrary or other existing spreadsheets.
https://www.googleapis.com/auth/forms.currentonly Reads open-ended quiz responses and writes rubric scores + feedback exclusively on the active Google Forms™ quiz. Cannot access any other Google Forms™ or Drive files.
https://www.googleapis.com/auth/documents.currentonly Reads text and optionally appends a rubric evaluation summary exclusively on the active Google Docs™ file. Cannot access any other Google Docs™ or Drive files.
https://www.googleapis.com/auth/drive.file Reads only the specific worksheet file(s) a teacher explicitly authorizes via Drive requestFileScope or Drive "Open with", and appends to the app-created Rubric Grader Gradebook Sheet. Cannot list, search, or read any other files or folders in Google Drive™.
https://www.googleapis.com/auth/drive.addons.metadata.readonly Displays the filename and MIME type of the file currently selected in the Google Drive™ side panel. Cannot read file contents until the teacher grants per-file drive.file access.
https://www.googleapis.com/auth/gmail.addons.execute
https://www.googleapis.com/auth/gmail.addons.current.message.readonly
Reads worksheet attachments strictly on the single email currently open when the teacher clicks Grade in Gmail™. Cannot search, list, or read any other email in the mailbox (Sensitive add-on scope, not Restricted).
https://www.googleapis.com/auth/workspace.linkpreview Renders interactive Rubric Grader Smart Chip hover cards in Google Docs™ / Sheets™. Only triggers on Rubric Grader Smart Chip URLs matching the manifest pattern.
script.container.ui, script.external_request, script.locale, userinfo.email Renders sidebar/cards, sends transient grading requests to Cloud Run, detects UI locale, and tracks teacher credit balance. No access to contacts, domain directory listings, or student accounts.

2. Data Flow & Zero-Retention Architecture

  1. In-Browser Preparation: Teacher selects rubric text/PDF and student worksheet photos/PDFs inside the sidebar. Oversized phone photos are resized locally in browser memory before upload.
  2. Encrypted Transit & Verification: Files travel over HTTPS/TLS (Strict-Transport-Security enforced) to our stateless Google Cloud Run backend. Each request authenticates via Google's oauth2.googleapis.com/tokeninfo endpoint with strict OAuth Client ID audience enforcement and strict *.googleusercontent.com CORS rules.
  3. In-Memory Processing & Buffer Zeroing: Uploaded files remain strictly in volatile RAM, are sent to the paid Gemini API via inlineData (never the Gemini Files API), and raw memory buffers are explicitly zeroed (buf.fill(0)) in finally blocks immediately after each request finishes or fails.
  4. Defense-in-Depth Log Redaction: Structured server logs redact authorization headers, cookies, tokens, student names, rubrics, transcriptions, and feedback—logging only opaque request IDs, HTTP status codes, and latency.
  5. Safe Sheet Output: Graded results return directly to the teacher's active Google Sheet, with spreadsheet formula-injection escaping (=, +, -, @) applied to all untrusted strings before writing cells.

3. What Data Is (and Is Not) Stored

Category Stored? Details
Student worksheet photos / PDFs No Processed in volatile RAM and zeroed immediately.
Student names, answers, scores, feedback, rubrics No Returned to the teacher's Workspace file and discarded from server memory.
Teacher email & credit balance Yes (minimal) Stored in Google Cloud Firestore solely to track remaining credits (users/{email}.apps.grades).
Payment card details No Optional credit packs are processed exclusively by Stripe; card data never touches Marginalia Software servers.

4. Subprocessors & Infrastructure

Subprocessor Role Data Handled
Google Cloud Run & Cloud Firestore Stateless grading API & teacher credit counter Teacher email + numeric credit balance; worksheet media processed transiently in RAM only.
Google Gemini API (Paid Tier) Multimodal rubric grading Transient inline rubric + worksheet payload per request; not retained for model training under Paid Services terms.
Stripe Optional one-time credit pack checkout Teacher email + billing details (only if a teacher purchases credits).

5. Domain-Wide Install & IT Administrator Contacts