Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,32 @@ const AuthenticationMethods: React.FC<{ method: string }> = ({ method }) => {
);
case 'SASL/AWS IAM':
return (
<Input
label="AWS Profile Name"
type="text"
name="auth.props.awsProfileName"
withError
/>
<>
<Input
label="AWS Profile Name"
type="text"
name="auth.props.awsProfileName"
withError
/>
<Input
label="AWS Role Arn"
type="text"
name="auth.props.awsRoleArn"
withError
/>
<Input
label="AWS Role Session Name"
type="text"
name="auth.props.awsRoleSessionName"
withError
/>
<Input
label="AWS STS Region"
type="text"
name="auth.props.awsStsRegion"
withError
/>
</>
);
case 'mTLS':
return <SSLForm prefix="auth.keystore" title="Keystore" />;
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/widgets/ClusterConfigForm/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ const authPropsSchema = lazy((_, { parent }) => {
case 'SASL/AWS IAM':
return object({
awsProfileName: string(),
awsRoleArn: string(),
awsRoleSessionName: string(),
awsStsRegion: string(),
});
case 'SASL/Azure Entra':
case 'SASL/GCP IAM':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ export const transformFormDataToPayload = (data: ClusterConfigFormValues) => {
'software.amazon.msk.auth.iam.IAMClientCallbackHandler',
'sasl.jaas.config': getJaasConfig('SASL/AWS IAM', {
awsProfileName: props.awsProfileName,
awsRoleArn: props.awsRoleArn,
awsRoleSessionName: props.awsRoleSessionName,
awsStsRegion: props.awsStsRegion,
}),
};
break;
Expand Down
Loading