This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
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
Related #29 .
The idea behind this PR is to get orgID from dashboard automatically if no
-o
flag is passed to the execution.It also solves some problems with
publish
command, since it wasn't enforcing the orgID given.Testing
Tested using a dump of 1 API and 1 Policy from environment A in environment B ( different orgID's). API with OIDC configured with 2 issuers (related to that policy) and the Policy with that API configured in AccessRights.
sync
specifyingdashboard URL
andsecret
. The API and Policy should be synced and don't throw an error.sync
specifyingdashboard URL
,secret
andorgID
. The API and Policy should be synced and don't throw an error only if the orgID is valid. If not it should throw an error.publish
specifyingdashboard URL
andsecret
. The API and Policy should be published and don't throw an error.publish
specifyingdashboard URL
,secret
andorgID
. The API and Policy should be published and don't throw an error only if the orgID is valid. If not it should throw an error.