Repository navigation
Conversation
Another service validating an x-agyn-ref on an app installation needs one boolean, not a record: the caller acts for an admin whose own read permissions on the target are beside the point, and a Get would hand it a resource it would then have to be trusted not to leak. The organization is part of the question rather than a second call, so the check and the scoping cannot disagree. A target in another organization answers false exactly as a nonexistent one does.
The container skipped generation when /opt/app/data/.gen existed, but the sync creates that directory — so generation never ran, go run failed on missing packages, and DevSpace restarted the container until the job hit its 60 minute timeout. The log showed only repeated go downloads and no buf output at all. A directory existing says nothing about whether the packages inside it are the ones the source needs, and adding a proto to the list makes any such guard wrong again.
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.
Adds
ResolveAgentExistsandResolveEnvironmentExists, used by the Apps Service to validate anx-agyn-refproperty on an app installation before persisting it. See Apps Service — Reference Validation.Depends on agynio/api#197.
A dedicated existence check rather than
GetAgent, followingSecrets.ResolveSecretExists: the caller is another service acting for an admin whose own read permissions on the target are beside the point, and it needs one boolean rather than a record it would then have to be trusted not to leak. Internal only, no OpenFGA check.The organization is part of the question rather than a second call, so the check and the scoping cannot disagree. A target in another organization answers
falseexactly as a nonexistent one does — the difference is not something the caller is entitled to learn.Tests run against
AGENTS_TEST_DATABASE_URL; verified locally against a real Postgres.