Repository navigation
Persist the managed config machine-wide at /etc/unitygateway - #1223
Closed
billiam-wang wants to merge 1 commit into
Closed
billiam-wang wants to merge 1 commit into
billiam-wang wants to merge 1 commit into
Conversation
When ug configure makes an authoritative read of a published managed config, it also writes /etc/unitygateway/managed-config.json (Linux and macOS): the ~/.ucode/managed-config.json format (workspace, raw config, retrieved_at, outcome) plus a ug_state listing the managed agents that configured successfully and their managed provider_services and model_locations. Nothing comes from the administrator's own state.json. - Written through the existing lazy sudo session (path added to both allowlists); root needs no terminal. The replace script resets ug's file to root 0644 in a root 0755 directory on every write. - Unchanged content and metadata write nothing; --dry-run prints; UG_SKIP_OS_SETTINGS and Windows skip. - An authoritative removal, disable, or switch to an unmanaged workspace replaces a published copy with a no-policy record; a failed fetch that fell back to the cache neither publishes nor invalidates. - A config that may hold credentials is not published, and an older copy is withdrawn. - A failed privileged write is reported without failing configure. Launches do not read the file yet. Co-authored-by: Isaac <no-reply@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When ug configure makes an authoritative read of a published managed config, it also writes /etc/unitygateway/managed-config.json (Linux and macOS): the ~/.ucode/managed-config.json format (workspace, raw config, retrieved_at, outcome) plus a ug_state listing the managed agents that configured successfully and their managed provider_services and model_locations. Nothing comes from the administrator's own state.json.
Launches do not read the file yet.
Example written file in
/etc/unitygatewa/managed-config.json