Repository navigation
Conversation
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.
Description
The restricted Compile CLI currently hardcodes the production OpenViking endpoint, so a Managed Agent created for STG or another deployment reads and writes the wrong collection even when its Vault API key belongs to that deployment.
After this change,
@openviking/compilereads onlyurlfrom the standardovcli.conf; when no config file exists it keeps the current production endpoint as the default. Authentication remains isolated: the CLI ignores credentials from the file and continues to use only the Vault-providedOPENVIKING_API_KEY.Example: with the same
ov read viking://resources/source/file.mdcommand,{"url":"https://stg.example.com/openviking"}routes the request to STG, while no config file routes it tohttps://api.vikingdb.cn-beijing.volces.com/openviking.This PR also brings the already published restricted CLI source onto current
mainand supplies empty values for newer optional handler arguments, without exposing additional commands or options.Human Involvement
Related Issue
Supports the external Compile integration in PR #4436.
Type of Change
Changes Made
ovcli.conf, with the existing production URL as the fallback.OPENVIKING_API_KEYand ignore authentication fields from the config file.Testing
Checklist
Screenshots (if applicable)
Not applicable.
Additional Notes
The Base Server counterpart writes an URL-only
ovcli.confduring Managed Agent Environment setup and keeps the API key in the Vault credential.