[Bug] gemini-enterprise: gem4gov says Knowledge Graph must be disabled for FedRAMP High, IL4, and IL5, but leaves Private Knowledge Graph on
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 56/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- HCL
- Stelle
- 61
- Fork
- 28
- Merge medio
- 1g 17h
- PR unite (30g)
- 74
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di google/stellar-engine
-
Documentation Gemini - Enterprise Level of Effort - Low Priority - Low Scope - Blueprint Scope - Module
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
google/stellar-engine#401 ·
I maintainer di solito rispondono entro 1 giorno
-
[Documentation] docs/ddg.md: the header and Variables tables use inline HTML, which Google Docs now shows as raw textForse già presa @pulsingSignal l’ha presa oggi. ApertaDocumentation Level of Effort - Low Priority - Low
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
google/stellar-engine#397 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug Framework - FedRAMP High Framework - FedRAMP Moderate Gemini - Enterprise Level of Effort - Low Priority - High Scope - Blueprint Scope - Fast Scope - Module
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google/stellar-engine#396 ·
I maintainer di solito rispondono entro 1 giorno
-
[Documentation] 0-bootstrap: document Google producer organization ID inline for compute.restrictVpcPeeringForse già presa @Hariharan18092006 l’ha presa 4 giorni fa. ApertaDocumentation Level of Effort - Low Priority - Low Scope - Fast
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
google/stellar-engine#385 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Enhancement Framework - FedRAMP High Level of Effort - Low Priority - Low Scope - Blueprint Scope - Module
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
google/stellar-engine#320 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di google/stellar-engine
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Huber-group-EMBL/Rarr#294 ·
I maintainer di solito rispondono entro 1 giorno
-
needs attention untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#3666 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
punitarani/fli#270 ·
-
🐛 Bug 🔔 Pending processing
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
jumpserver/jumpserver#17980 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-butler-finding bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
jordansmall/spindrift#6414 ·
I maintainer di solito rispondono entro 1 giorno