You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Server] Name the path when the token signing key file is a directory #2364
Is your feature request related to a problem? Please describe.
When server.token-signing-private-key-file points to a directory, the server fails at startup with only:
java.io.IOException: Is a directory
The message doesn't name the path, so it is hard to tell which setting is wrong. The other bad key files do name it: a missing file gives "No token signing key file at ", and an empty, encrypted or malformed file gives "Cannot read the RSA private key in ; …".
This happens because requireFile checks only that the path exists, and the directory then reaches Files.readAllBytes (line 213).
In requireFile, also fail when the path is not a regular file (Files.isRegularFile), with an IllegalStateException that names the absolute path, like the missing-file case.
Add a row for a directory to the existing SecurityConfigurationTest tests of unusable key files.
Plan: make requireFile also reject a path that is not a regular file, with an IllegalStateException naming the absolute path (same wording shape as the missing-file case), and add a directory row to SecurityConfigurationTest. I'll run build/sbt "server/testOnly io.unitycatalog.server.security.SecurityConfigurationTest" and build/sbt javafmtAll; the commit will be DCO signed off.
Transparency: prepared with an AI coding agent (OpenCode, DeepSeek V4.1 Flash) under human supervision; the code and description will be reviewed before submission.
Activity
Verlintas commentedon Nov 27, 2026
take
Plan: make
requireFilealso reject a path that is not a regular file, with anIllegalStateExceptionnaming the absolute path (same wording shape as the missing-file case), and add a directory row toSecurityConfigurationTest. I'll runbuild/sbt "server/testOnly io.unitycatalog.server.security.SecurityConfigurationTest"andbuild/sbt javafmtAll; the commit will be DCO signed off.Transparency: prepared with an AI coding agent (OpenCode, DeepSeek V4.1 Flash) under human supervision; the code and description will be reviewed before submission.
Verlintas commentedon Nov 27, 2026
take
fix(server): name the path when the token signing key is not a file (u…