question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support namespacing groups ingested via the GithubOrgReaderProcessor

See original GitHub issue

Feature Suggestion

The current functionality for importing GitHub org data allows for targeting a specific GitHub org and ingesting all users/team as Users/Groups under the default namespace.

Under our use-case, we have a GHE instance that supports having multiple GitHub orgs (usually created per dept. or domain). If we import multiple orgs that contain the same team names then they will both merge under the same Group in the default namespace (I assume, haven’t tested). It would be helpful if we could namespace the imported Group that indicates the GitHub org they reference

For example, I have the following GitHub orgs and teams: FooOrg: team-abc, team-efg BarOrg: team-abc, team-xyz

After importing from both orgs, I would expect the following entities: Group:FooOrg/team-abc, Group:FooOrg/team-efg, Group:BarOrg/team-abc, Group:BarOrg/team-xyz

This would allow components to specify their owner fields to correctly reflect team ownership.

Another thing I would like to note is that users in our GHE may have multi-org memberships so in our use-case it wouldn’t make sense to namespace Users since there will only be one unique set of usernames.

Possible Implementation

Context

There might be related to discussions in https://github.com/backstage/backstage/issues/4089 and I’m not sure how exactly this would fit in with the proposal described there.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewthauercommented, Mar 16, 2021

#4977 is relevant to this as well.

0reactions
benjdlambertcommented, Jun 1, 2021

PR is in progress, @kuangp just hasn’t had time to fix up the work yet. Removing the stale label 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Providide a mechanism to filter groups loaded by the ... - GitHub
The githubOrg processor (aka GithubOrgReaderProcessor) can be ... Support namespacing groups ingested via the GithubOrgReaderProcessor #4982.
Read more >
[RFC] From Identity to Ownership, v2 · Issue #4089 - GitHub
The alternative approach is to make processors namespace aware, ... Support namespacing groups ingested via the GithubOrgReaderProcessor #4982.
Read more >
[RFC] From Identity to Ownership · Issue #3870 - GitHub
The users and groups are typically in the default namespace. Still support running Backstage with no org data ingested in the catalog, ...
Read more >
Merge Entities from multiple Org providers #11406 - GitHub
I tried having my preprocessor rename the entities to be consistent and based on IT data and this failed because The entity kind,...
Read more >
backstage/external-integrations.md at master - GitHub
Background. The catalog has a frontend plugin part, that communicates via a service API to the backend plugin part. The backend continuously ingests...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found