|
Some checks are pending
Check Python Version Consistency / Check Python Version (push) Waiting to run
- Add a private helper that performs an authenticated, read-only GET for the configured opax-mcp Cloud Run v2 service. - Return only generation, observedGeneration, and updateTime on success, with sanitized reason codes for token, HTTP, network, timeout, and parsing errors. - Add mocked unit coverage for successful responses and handled failure paths. |
||
|---|---|---|
| .gemini | ||
| .github | ||
| agents | ||
| architecture | ||
| auth | ||
| ci | ||
| data | ||
| docs | ||
| emma | ||
| gitea-chat-bridge | ||
| infrastructure | ||
| master_hub | ||
| memory_bank | ||
| ml | ||
| opax-mcp | ||
| opax-web | ||
| project | ||
| protocols | ||
| scripts | ||
| spire-1.15.3 | ||
| static | ||
| test | ||
| tyr | ||
| .env.example | ||
| .gcloudignore | ||
| .gdrive-mirror-state | ||
| .geminiignore | ||
| .gitignore | ||
| .python-version | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| cloud-build-a2h2a-test.yaml | ||
| cloudbuild.base.yaml | ||
| cloudbuild.build-only.yaml | ||
| cloudbuild.deploy.yaml | ||
| cloudbuild.yaml | ||
| CNAME | ||
| cosign.pub | ||
| debug_output.txt | ||
| deploy.sh | ||
| dev-start.sh | ||
| dev-startup.sh | ||
| jonen publiserer | ||
| k lyttes på | ||
| main.py | ||
| opax-mcp.yaml | ||
| opax.sh | ||
| policy.txt | ||
| pricing.html | ||
| README.md | ||
| remove_cron.sh | ||
| requirements.txt | ||
| test_pusher.py | ||
| test.txt | ||
OSVauco — GCP Agent Master Repo
Prosjekt: propane-will-491900-m5 | Region: us-central1
Status
| Komponent | Status |
|---|---|
| Cloud Run Agent | ✅ Live |
| Service URL | https://osvauco-agent-357036551735.us-central1.run.app |
| CI/CD Trigger | ✅ Auto-deploy ved push til main |
| ADK Versjon | 1.x (google-adk>=1.0.0,<2.0.0) |
| Siste revisjon | osvauco-agent-00006-mvb |
Hurtigtest
TOKEN=$(gcloud auth print-identity-token)
curl -s -X POST -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"user_id":"chris","session_id":"test-1","message":"Hei, hvem er du?"}' \
https://osvauco-agent-357036551735.us-central1.run.app/run | jq
Repo-struktur
├── agents/
│ └── core-logic/ # Live agent: app.py (FastAPI + ADK Runner)
├── infrastructure/
│ ├── 01-setupenv.sh # ✅ Ferdig
│ ├── 05-cloudrun-deploy.sh # ✅ Ferdig
│ ├── 06-cicd-setup.sh # ✅ Ferdig
│ ├── 07-rag-setup.sh # ⏳ Neste
│ └── 08-memorybank-setup.sh # ⏳ Planlagt
├── docs/
├── scripts/
├── cloudbuild.yaml # CI/CD pipeline
└── .env.example
Service Account roller (osvauco-agent-sa)
| Rolle | Formål |
|---|---|
| roles/aiplatform.user | Vertex AI / Gemini |
| roles/secretmanager.secretAccessor | Secrets |
| roles/logging.logWriter | Logging |
| roles/cloudtrace.agent | Tracing |
| roles/monitoring.metricWriter | Monitoring |
| roles/run.invoker | Cloud Run kall |
| roles/iam.serviceAccountUser | Deploy |
| roles/artifactregistry.writer | Docker push |
| roles/run.developer | Cloud Run deploy |
Cloud Scheduler for Daglig Fakturering
For å automatisk generere daglige kostnads-snapshots, må en Cloud Scheduler-jobb konfigureres til å kalle /billing/snapshot-endepunktet.
Oppsett med gcloud:
- Service URL:
https://osvauco-agent-357036551735.us-central1.run.app - Service Account:
osvauco-agent-sa@propane-will-491900-m5.iam.gserviceaccount.com
gcloud scheduler jobs create http daily-billing-snapshot \
--schedule="0 5 * * *" \
--uri="https://osvauco-agent-357036551735.us-central1.run.app/billing/snapshot" \
--http-method=POST \
--oidc-service-account-email="osvauco-agent-sa@propane-will-491900-m5.iam.gserviceaccount.com" \
--oidc-token-audience="https://osvauco-agent-357036551735.us-central1.run.app" \
--location="us-central1" \
--time-zone="Etc/UTC" \
--description="Kaller /billing/snapshot for å lagre daglig kostnadsdata."
Denne kommandoen oppretter en jobb som kjører hver dag kl. 05:00 UTC.