{"record":{"id":"12fb32f7d9c53323","repo":"apache/flink","slug":"invalid-character-in-entropy-injection-key","errorCode":null,"errorMessage":"Invalid character in entropy injection key: {}","messagePattern":"Invalid character in entropy injection key: (.+?)","errorType":"validation","errorClass":"IllegalConfigurationException","httpStatus":null,"severity":"error","filePath":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java","lineNumber":485,"sourceCode":"                }\n                if (overrides.getAssumeRoleSessionDurationSeconds() != null) {\n                    assumeRoleSessionDuration = overrides.getAssumeRoleSessionDurationSeconds();\n                }\n            }\n        }\n\n        S3EncryptionConfig encryptionConfig =\n                S3EncryptionConfig.fromConfig(\n                        sseType,\n                        sseKmsKeyId,\n                        config.getOptional(SSE_KMS_ENCRYPTION_CONTEXT)\n                                .orElse(Collections.emptyMap()));\n\n        String entropyInjectionKey = config.get(ENTROPY_INJECT_KEY_OPTION);\n        int numEntropyChars = -1;\n        if (entropyInjectionKey != null) {\n            if (entropyInjectionKey.matches(INVALID_ENTROPY_KEY_CHARS)) {\n                throw new IllegalConfigurationException(\n                        \"Invalid character in entropy injection key: \" + entropyInjectionKey);\n            }\n            numEntropyChars = config.get(ENTROPY_INJECT_LENGTH_OPTION);\n            if (numEntropyChars <= 0) {\n                throw new IllegalConfigurationException(\n                        ENTROPY_INJECT_LENGTH_OPTION.key() + \" must be > 0\");\n            }\n        }\n\n        final String[] localTmpDirectories = ConfigurationUtils.parseTempDirectories(config);\n        Preconditions.checkArgument(\n                localTmpDirectories.length > 0,\n                \"No temporary directories configured. \"\n                        + \"Please configure at least one temp directory via 'io.tmp.dirs' or similar.\");\n        final String localTmpDirectory = localTmpDirectories[0];\n\n        final long s3minPartSize = config.get(PART_UPLOAD_MIN_SIZE);\n        final int maxConcurrentUploads = config.get(MAX_CONCURRENT_UPLOADS);","sourceCodeStart":467,"sourceCodeEnd":503,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java#L467-L503","documentation":"Error \"Invalid character in entropy injection key: {}\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Invalid character in entropy injection key: the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Invalid character in entropy injection key: the reported value.","solutions":["Address the cause reported by the error message: Invalid character in entropy injection key: the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Invalid character in entropy injection key: the reported value\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}