[Bug] gemini-enterprise: gem4gov says Knowledge Graph must be disabled for FedRAMP High, IL4, and IL5, but leaves Private Knowledge Graph on
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 56/100
Línea de trabajo
Start by reading blueprints/gemini-enterprise/gem4gov-cli/gem4gov.py, especially configure_gemini_enterprise_for_regime and its engine patch, then compare the FedRAMP High, IL4, IL5, and FedRAMP Moderate paths with the linked Google deployment guidance. Check whether the Terraform engine resource in discovery-engine.tf also needs the setting for new deployments. Done means the applicable compliance paths explicitly disable Private Knowledge Graph and the CLI guidance matches the supported settings.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
gem4gov onboard and gem4gov app update-compliance tell the operator that Knowledge Graph must be disabled, and neither one disables it.
Before it applies the FedRAMP High profile, gem4gov.py prints this list. The IL4 and IL5 paths print the same line:
Gemini Enterprise contains default features that are not yet authorized for FedRAMP High and must be disabled. These features are currently:
...
- Knowledge Graph / People Connectors
The profile it then applies does not include that setting. knowledgeGraphConfig appears nowhere in gem4gov.py, engine_features.yaml, or gemini-stage-0, and the google_discovery_engine_search_engine resource in discovery-engine.tf sets no knowledge_graph_config. So the engine keeps the value the API gave it, and Private Knowledge Graph stays on.
Google's Deployment guidance for Gemini for Government lists Private Knowledge Graph under Unauthorized features that you should disable manually, and its Turn off Private Knowledge Graph section gives the API call.
Environment and Deployment Context
- Stellar Engine Version/Commit: Read on engines deployed at
v4.0.0(6d7d08c0). The code is the same atv5.2.0(82153050) andmain@2267b973, but no engine was deployed at those versions.blueprints/gemini-enterprise/gem4gov-cli/gem4gov.pyatv5.2.0: the message at lines 1146, 1190, 1220, 1418, 1450, and 1480; the engine patch at lines 3290-3291. - Deployment Type:
- US Region Restricted (e.g., Access Policy constraint)
- FedRAMP Moderate
- FedRAMP High
- DoD IL4
- DoD IL5
- Stand-alone / Custom
- FAST Stage (if applicable): Not applicable.
blueprints/gemini-enterprise.
Steps to Reproduce
- Deploy
gemini-stage-0withcompliance_regime = "FEDRAMP_HIGH". - Apply the profile:
gem4gov app update-compliance --project-id <project> --engine-id <engine> --compliance-regime FEDRAMP_HIGH - Read the engine:
curl -s -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "x-goog-user-project: <project>" \ "https://us-discoveryengine.googleapis.com/v1alpha/projects/<project>/locations/us/collections/default_collection/engines/<engine>" \ | jq .knowledgeGraphConfig
Expected Behavior
After the profile is applied for FedRAMP High, IL4, or IL5, enablePrivateKnowledgeGraph reads false, as the CLI's message says it must.
Actual Behavior
{
"enablePrivateKnowledgeGraph": true,
"featureConfig": {}
}
Four engines deployed with FEDRAMP_HIGH read this way after update-compliance ran. At v4.0.0 that command's engine patch was rejected (#259), but the patch has never carried this field, so the fix for #259 does not change the result.
Relevant Logs and Errors
None. The run prints the message above and finishes, and nothing reports that the setting was left on.
Additional Context
- Leaving the field out does not turn it off. An engine created with
POST .../enginesand noknowledgeGraphConfigin the body also readsenablePrivateKnowledgeGraph: true, although the API reference says "Defaults to false if not specified." Google's Knowledge Graph page says "Knowledge Graph configurations are enabled for all Gemini Enterprise apps." The value has to be set explicitly. - Effect on a fresh deployment. The same page says "Without connecting people data, these features don't function properly," and the blueprint configures no People connector, so the practical effect may be small until someone adds one. The setting is on either way, and an assessor reading the engine sees it on.
- Suggested fix, not tested. Add the field to the engine patch in
configure_gemini_enterprise_for_regime(gem4gov.pylines 3290-3291), using the same mask Google's guidance shows:
FedRAMP Moderate calls the same function and prints no such list, so this may need to depend on the regime. Settingengine_patch_body = { "features": engine_features.get("features"), "knowledgeGraphConfig": { "enablePrivateKnowledgeGraph": False, "enableCloudKnowledgeGraph": False, }, } engine_update_mask = "features,knowledgeGraphConfig"knowledge_graph_configingemini-stage-0would cover new engines, but not engines that already exist. - Side effect to expect. Google's page says "Disabling it deletes internal derived data and removes query annotations, reducing search accuracy and richness."
- The message itself may need a look. It also lists Model Armor, which Google's guidance now shows as Authorized for FedRAMP High, so the two lists have drifted apart.
- Lenguaje dominante
- HCL
- Estrellas
- 61
- Forks
- 28
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 74
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de google/stellar-engine
-
Documentation Gemini - Enterprise Level of Effort - Low Priority - Low Scope - Blueprint Scope - Module
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
google/stellar-engine#401 ·
Los mantenedores suelen responder en 1 día
-
[Documentation] docs/ddg.md: the header and Variables tables use inline HTML, which Google Docs now shows as raw textPosiblemente ocupada @pulsingSignal la tomó hace 1 día. AbiertoDocumentation Level of Effort - Low Priority - Low
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
google/stellar-engine#397 ·
Los mantenedores suelen responder en 1 día
-
Bug Framework - FedRAMP High Framework - FedRAMP Moderate Gemini - Enterprise Level of Effort - Low Priority - High Scope - Blueprint Scope - Fast Scope - Module
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
google/stellar-engine#396 ·
Los mantenedores suelen responder en 1 día
-
[Documentation] 0-bootstrap: document Google producer organization ID inline for compute.restrictVpcPeeringPosiblemente ocupada @Hariharan18092006 la tomó hace 4 días. AbiertoDocumentation Level of Effort - Low Priority - Low Scope - Fast
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
google/stellar-engine#385 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Enhancement Framework - FedRAMP High Level of Effort - Low Priority - Low Scope - Blueprint Scope - Module
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
google/stellar-engine#320 ·
Los mantenedores suelen responder en 1 día
Todos los issues de google/stellar-engine
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NethermindEth/nethermind#15684 ·
Los mantenedores suelen responder en 1 día
-
bug(bufdelete): all()/other() abort with "Invalid buffer id" when a buffer is wiped during the loopAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
folke/snacks.nvim#2986 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
OCA/l10n-brazil#5602 ·
Los mantenedores suelen responder en 1 día
-
documentation review-2.0.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
dkuenzel/meshcore-home-gateway#98 ·
Los mantenedores suelen responder en 1 día
-
mp4box.js — 20-byte `sgpd` box with large `entry_count` causes unbounded loop and heap OOM abortAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día