Repository navigation
Add SECURITY.md and harden LDAP, XML, UI, and configuration handling - #180
Merged
Merged
Conversation
- Add root SECURITY.md documenting reporting guidelines and component trust boundaries - Consolidate RFC 4514/4515 LDAP escaping in framework/core LdapEscaper and apply literal filter replacement in LDAPAuthority, LDAPMapper, and LdapAuthenticator - Add XMLParserFactory helper and apply hardened JAXP/SAXSource configuration across GenericConnector, GenericAuthority, OpenSearchServerConnection, XMLDoc, and XMLStream - Add per-session request token validation, POST-only enforcement, HttpOnly/SameSite session cookie configuration, session ID rotation on login, and relative redirect validation in Crawler-UI and Combined Service - Modernize authority-service web.xml.external to Jakarta EE 6.0 - Mask obfuscated connection parameters in REST API read responses (preserving stored values on masked PUT round-trips) and support configurable obfuscation key/salt properties with legacy fallback - Add unit tests covering LDAP escaping, XML parser configuration, request tokens, and parameter obfuscation/masking
…tegy for Linux 7.0 kernels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This pull request adds
SECURITY.mddocumenting Apache ManifoldCF's reporting process and component trust boundaries, along with routine hardening improvements across the framework and connectors:SECURITY.mdwith reporting guidelines and architectural trust boundaries for Crawler-UI, REST API, Authority Service, connectors, and credential storage.org.apache.manifoldcf.core.util.LdapEscaper(keepingconnector-common'sLdapEscaperas a backward-compatible delegate) and updatedLDAPAuthority,LDAPMapper, andLdapAuthenticatorto use literal placeholder replacement with appropriate filter/DN escaping.org.apache.manifoldcf.core.common.XMLParserFactoryand updatedGenericConnector,GenericAuthority,OpenSearchServerConnection,XMLDoc, andXMLStreamto use hardened JAXP /SAXSourceconfigurations.AdminProfile, automatic token submission inmcf.js,POST-only and token enforcement inexecute.jsp, session ID rotation and relative redirect validation insetupAdminProfile.jsp,HttpOnly/SameSite=Laxcookie configuration incrawler-uiandcombined-service, and updatedauthority-service/WEB-INF/web.xml.externalto Jakarta EE 6.0.ConfigParamsnodes, masked obfuscated parameters in REST API read responses while preserving stored values when masked placeholders are submitted onPUT, and added optionalorg.apache.manifoldcf.obfuscation.passcode/salt(andMCF_OBFUSCATION_*env var) configuration with legacy fallback.LdapEscaperTest,XMLParserFactoryTest,ConfigParamsObfuscationTest,AdminProfileTest,ConfigParamsApiMaskingTest,GenericConnectorXMLTest).Verification
mvn -o packageacross all 12 modified modules (mcf-core,mcf-connector-common,mcf-ui-core,mcf-agents,mcf-pull-agent,mcf-authority-service,mcf-crawler-ui,mcf-combined-service,mcf-ldap-connector,mcf-ldapmapper-connector,mcf-generic-connector,mcf-opensearchserver-connector): BUILD SUCCESS (17/17 unit tests passing).ant deliver-framework+ Ant connector builds (ldap,ldapmapper,generic,opensearchserver): BUILD SUCCESSFUL.