Fix PR review comments on SCIM surfaces

- Return valid JSON (null) in `prb scim view --json` when no
  SCIM configuration exists
- Remove organization ID from MCP not-found error to prevent
  identifier disclosure in multi-tenant paths
- Use nullable GID refs for bridge_id and connector_id in
  MCP specification for correct generated ID typing

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-04 19:30:52 +04:00
parent 3b712273ef
commit f418780dd4
4 changed files with 12 additions and 21 deletions

View File

@@ -149,6 +149,9 @@ func NewCmdView(f *cmdutil.Factory) *cobra.Command {
}
if resp.Node.ScimConfiguration == nil {
if *flagOutput == cmdutil.OutputJSON {
return cmdutil.PrintJSON(f.IOStreams.Out, nil)
}
_, _ = fmt.Fprintln(f.IOStreams.Out, "No SCIM configuration found.")
return nil
}