GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [fix][admin] PIP-478: PulsarAdminBuilderImpl.build() shares its configuration, so a second admin can inherit the first's OAuth2 IdP trust material · Issue #26398 · apache/pulsar Closed DescriptionMotivation
// PulsarAdminBuilderImpl:49 public PulsarAdmin build() throws PulsarClientException { return new PulsarAdminImpl(conf.getServiceUrl(), conf, clientBuilderClassLoader, acceptGzipCompression, sharedResources); } and // PulsarAdminImpl:514 oauth2.idpTlsPolicy(clientDefault.jsseProvider(), clientDefault.jcaProvider()).ifPresent(policy -> { Map<TlsPurpose, TlsPolicy> policies = conf.getTlsPolicyMap(); if (policies == null) { policies = new LinkedHashMap<>(); conf.setTlsPolicyMap(policies); } policies.putIfAbsent(TlsPurpose.CLIENT_OAUTH2, policy); }); The first PulsarAdmin a = builder.authentication(oauth2ForIdpA).build(); PulsarAdmin b = builder.authentication(oauth2ForIdpB).build(); // b resolves against IdP A's policy Admin b then fetches its token against IdP B while trusting IdP A's material — the wrong private CA, or ScopeNarrower than the client-side version of this bug. The admin never stores a composed Suggested fixThe same one-line change the two client builders received in #26326 — hand the admin a copy: return new PulsarAdminImpl(conf.getServiceUrl(), conf.clone(), ...);
ContextReported by @david-streamlio reviewing #26326, alongside the same defect on Verified against Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |