jarredhj0214 opened a new pull request, #14755: URL: https://github.com/apache/gravitino/pull/14755
### What changes were proposed in this pull request? Generate a default Lance Authorization header from HADOOP_USER_NAME only when spark.sql.gravitino.authType is simple. Apply configured headers to discovery requests and propagate them to automatically registered catalogs. Preserve explicit authentication headers, including case-insensitive Authorization overrides. ### Why are the changes needed? Lance REST catalogs otherwise require manually encoded authentication headers, and discovery requests ignore configured headers. Fixes #14754 ### Does this PR introduce _any_ user-facing change? Automatically discovered Lance catalogs reuse HADOOP_USER_NAME in simple authentication mode. No new configuration keys are introduced. Standalone Lance REST deployments using a different authentication mechanism must configure their headers explicitly. Server-side authentication and authorization are unchanged. ### How was this patch tested? All 82 targeted tests passed across Spark 3.5 and 4.0, covering authentication type gating, header precedence, UTF-8 encoding, missing usernames, and paginated discovery requests. Spark connector formatting completed successfully. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
