Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssumeRole Fails for Glue Schema Registry Across Multiple AWS Accounts #44

Open
vr-ms opened this issue Jul 26, 2024 · 2 comments
Open
Assignees
Labels
scope/backend Related to backend changes type/bug Something isn't working

Comments

@vr-ms
Copy link

vr-ms commented Jul 26, 2024

Hello everyone,

I am facing an issue with multiple AWS accounts, each running MSK Kafka along with a Glue Schema Registry. Currently, each account has its own user for the Serde plugin, and this setup works fine.

We would prefer to manage all permissions via IRSA or at least through a single user account with AssumeRole. When we attempt to access an Glue Schema Registry in another account using AssumeRole, it fails, and we only get the message "fallback serde was used". According to the CloudTrail logs, there is no attempt to perform an AssumeRole for the account.

When I manually execute an AssumeRole using the AWS CLI and subsequently run an aws glue get-schema-version command, it works as expected.

Am I missing something? I have attached the configuration for reference.

kafka:
  clusters:
    - name: msk-cluster
      bootstrapServers: XXXXX
      properties:
        security.protocol: SASL_SSL
        sasl.mechanism: SCRAM-SHA-512
        sasl.jaas.config: org.apache.kafka.common.security.scram.ScramLoginModule required username="XXXX" password="XXXX";
      serde:
        - name: GlueSchemaRegistry
          filepath: /glue-serde/kafkaui-serde-glue-v1.0.1-jar-with-dependencies.jar
          classname: io.kafbat.ui.serde.glue.GlueSerde
          properties:
            region: XXXX
            registry: XXXX
            awsaccesskeyid: XXXX
            awssecretaccesskey: XXXX`
@germanosin
Copy link
Member

@iliax Could you please check it?

@Haarolean Haarolean added scope/backend Related to backend changes type/bug Something isn't working labels Jul 26, 2024
@vr-ms
Copy link
Author

vr-ms commented Aug 16, 2024

I did some more research and came across the following ticket at AWS.
awslabs/aws-glue-schema-registry#252

I suspect that this is the problem which is preventing it from working.
To make it work, you would have to implement the method mentioned in the ticket.

Unfortunately, I don't know Java to contribute an MR 😞

@Haarolean Haarolean moved this to Backlog in Housekeeping Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/backend Related to backend changes type/bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

4 participants