{"record":{"id":"5814fc2f8bd7b619","repo":"apache/flink","slug":"bucket-s-both-s3-bucket-s-access-key-and-s","errorCode":null,"errorMessage":"Bucket '%s': both 's3.bucket.%s.access-key' and 's3.bucket.%s.secret-key' must be set together. Found only %s.","messagePattern":"Bucket '(.+?)': both 's3\\.bucket\\.(.+?)\\.access-key' and 's3\\.bucket\\.(.+?)\\.secret-key' must be set together\\. Found only (.+?)\\.","errorType":"validation","errorClass":"IllegalConfigurationException","httpStatus":null,"severity":"error","filePath":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3BucketConfig.java","lineNumber":329,"sourceCode":"            this.assumeRoleSessionName = assumeRoleSessionName;\n            return this;\n        }\n\n        Builder assumeRoleSessionDurationSeconds(int assumeRoleSessionDurationSeconds) {\n            this.assumeRoleSessionDurationSeconds = assumeRoleSessionDurationSeconds;\n            return this;\n        }\n\n        Builder credentialsProvider(String credentialsProvider) {\n            this.credentialsProvider = credentialsProvider;\n            return this;\n        }\n\n        S3BucketConfig build() {\n            boolean hasAccessKey = !StringUtils.isNullOrWhitespaceOnly(accessKey);\n            boolean hasSecretKey = !StringUtils.isNullOrWhitespaceOnly(secretKey);\n            if (hasAccessKey != hasSecretKey) {\n                throw new IllegalConfigurationException(\n                        String.format(\n                                \"Bucket '%s': both 's3.bucket.%s.access-key' and \"\n                                        + \"'s3.bucket.%s.secret-key' must be set together. \"\n                                        + \"Found only %s.\",\n                                bucketName,\n                                bucketName,\n                                bucketName,\n                                hasAccessKey ? \"access-key\" : \"secret-key\"));\n            }\n            return new S3BucketConfig(this);\n        }\n    }\n}\n","sourceCodeStart":311,"sourceCodeEnd":343,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3BucketConfig.java#L311-L343","documentation":"Error \"Bucket '%s': both 's3.bucket.%s.access-key' and 's3.bucket.%s.secret-key' must be set together. Found only %s.\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Bucket 'the reported value': both 's3.bucket.the reported value.access-key' and 's3.bucket.the reported value.secret-key' must be set together. Found only the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Bucket 'the reported value': both 's3.bucket.the reported value.access-key' and 's3.bucket.the reported value.secret-key' must be set together. Found only the reported value.","solutions":["Address the cause reported by the error message: Bucket 'the reported value': both 's3.bucket.the reported value.access-key' and 's3.bucket.the reported value.secret-key' must be set together. Found only the reported value.","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Bucket 'the reported value': both 's3.bucket.the reported value.access-key' and 's3.bucket.the reported value.secret-key' must be set together. Found only 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"}