Skip to content

feat(appconfig): support private cross-owner appconfig remotes - #618

Merged
bluekeyes merged 3 commits into
palantir:developfrom
clarkemn:feat/private-remotes
Sep 2, 2026
Merged

feat(appconfig): support private cross-owner appconfig remotes#618
bluekeyes merged 3 commits into
palantir:developfrom
clarkemn:feat/private-remotes

Conversation

@clarkemn

Copy link
Copy Markdown
Contributor

Before this PR

Coming from palantir/policy-bot#1359 - please review for some additional context on this change.

appconfig.Loader can follow remote configuration references, but it always uses the client passed to LoadConfig. This prevents an app installation in one organization from reading a private remote configuration repository owned by another organization, even when the app is installed on both.

After this PR

appconfig.WithPrivateRemotes now enables cross-owner private remote configuration. For a remote owned by a different user or organization, the loader resolves that owner’s app installation and uses an installation-scoped client to fetch the remote file.

Same-owner remotes remain unchanged. If no target installation exists or its client cannot be created, the loader logs the failure and falls back to the original client, preserving support for public remotes.

Possible downsides?

Cross-owner remote loads with this option enabled make an additional installation lookup and may create an additional client. Callers with high configuration load volume should use the existing caching InstallationsService and ClientCreator implementations.

@changelog-app

changelog-app Bot commented Aug 28, 2026

Copy link
Copy Markdown

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

Support loading configuration from private repositories in other organizations

Check the box to generate changelog(s)

  • Generate changelog entry

@clarkemn
clarkemn marked this pull request as ready for review August 28, 2026 14:23
@changelog-app

changelog-app Bot commented Sep 1, 2026

Copy link
Copy Markdown

Successfully generated changelog entry!

Need to regenerate?

Simply interact with the changelog bot comment again to regenerate these entries.


📋Changelog Preview

✨ Features

  • Support loading configuration from private repositories in other organizations (#618)

@bluekeyes bluekeyes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I had a few minor comments but overall I think this makes sense.

Comment thread appconfig/appconfig.go Outdated
Comment thread appconfig/options.go
Comment thread appconfig/appconfig_test.go
@bluekeyes
bluekeyes merged commit e8d4893 into palantir:develop Sep 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants