Welcome to the Alteryx Knowledge Base
Created/Edited -
Streamline cross-cloud access control by configuring AWS Trusted Identity Propagation for S3 with Azure AD identities. This enables seamless cross-cloud identity management, reducing the need for redundant credentials.
Note: the following example is intended for demonstration purposes only. We recommend engaging your IT and systems team to help you with the configuration. For the detailed configuration details, please refer to the official AWS and Azure AD documentation.
Configuring AWS Trusted Identity Propagation for S3 with Azure AD identities enhances security by leveraging existing Azure AD identities for granular access control while simplifying compliance with unified identity governance. AWS Trusted Identity Propagation improves user experience and operational efficiency by streamlining authentication processes across AWS and Azure environments.
This guide explains how to configure AWS Trusted Identity Propagation to securely authenticate users to access S3 buckets. To achieve this, we will:
1. Register a new Azure AD application;
2. Register a new trusted token issuer in AWS Identity Center;
3. Create a new customer managed application in AWS IDC;
4. Specify trusted applications for Identity Propagation;
5. Create a new AWS policy allowing AWS users exchange Azure AD-issued token for AWS IDC credentials;
6. Create a new IAM user who will be able to perform CreateTokenWithIAM action to exchange Azure AD issued tokens for AWS IDC tokens;
7. Create a new IAM role that will grant users access to requested services (e.g. s3)
8. Assign the user to the role by creating a Trust relationship
Throughout the process, we will need to collect the following inputs required to create a connection between Alteryx and AWS S3:
1. OAuth authorization url;
2. OAuth token url;
3. OAuth redirect url;
4. Client ID;
5. Client secret;
6. AWS Region; -> AWS IDC Region
7. AWS Account ID; -> AWS S3 Access Grants Account ID;
8. IDC SSO application ID; -> IDC SSO Application ARN
9. IAM role name; -> IAM Role for S3 Access Grants ARN
10. Application role credentials - Access Key Id;
11. Application role credentials - Secret Key;
12. Scope
- Azure AD tenant shall be configured to SAML users into AWS Identity Center.
- The UPN value of the Azure AD user shall be mapped to the email attribute of the Identity Center Users.
There are step-by-step instructions below the demo:
Azure AD configuration
Step 1. Register a new Azure AD application
1. Register/create a new application in Azure AD -> select desired application type, e.g. web, and define http://localhost as redirect uri -> save the value, it is your OAuth redirect url.
2. Collect required inputs, specifically:
- client_id -> save the value, this value is your client id;
- client_secret -> this value is your client secret;
- Authorization endpoint -> save the value, it will be known as OAuth authorization url;
- Token endpoint -> save the value, it will be known as OAuth token url
- issuer_url -> in the endpoints tab locate .well-known/openid-configuration endpoint -> open the url in a new browser tab -> locate the issuer value in the JSON object and save it -> we will need it in further configuration;
3. Store these inputs, we will need it in the later steps.
Azure AD configuration
Step 2. Register a new trusted token issuer in AWS Identity Center
1. In AWS console, navigate to IAM Identity Center;
2. Locate the settings menu;
3. In the settings menu, switch to authentication settings and select Create a new Trusted Token Issuer;
4. Specify the issuer uri we've collected in step 1. Next, give the Trusted Token issuer a descriptive name and map identity provider attributes - the token claim containing user's identity, usually upn or sub claim for Azure AD-issued tokens, to the email attribute of the identity center identities.
Step 3. Create a new customer managed application in AWS IDC
1. Return to the AWS Identity Center Home screen, locate the Applications tab and navigate to it;
2. In that view, switch to the Customer managed tab and select Add application;
3. Select "I have an application I want to set up" and "OAuth2.0" for the application type, click Next;
4. Name the application and set "Don't require assignments";
5. In the Authentication with Trusted Token issuer tab, select the token issuer we created in step 2 and specify the value of aud. claim of your Azure AD tokens issued by this issuer. Click Next;
6. For the application credentials, grant the root privileges in the following format: arn:aws:iam::{aws_account_id}:root; - this privilege can be then updated;
7. Save the application
Step 4. Specify trusted applications for Identity Propagation
1. Navigate to the applications tab in AWS Identity Center -> Applications -> Switch to customer managed tab -> Locate and click on the application we created in previous step;
2. Scroll down to Trusted applications for identity propagation;
3. Select Specify Trusted applications;
4. For the setup type, select "All applications for service with same access" and click next;
5. Select services your want to enable for Trusted identity Propagation;
6. Click the next button twice and then click "Trust Application";
Step 5. Create a new AWS policy alowing AWS users exchange Azure AD-issued token for AWS IDC credentials;
1. Navigate to IAM AWS console and locate policies;
2. Click Create policy;
3. In the create policy view, select OIDC service and assign the policy with CreateTokenWithIAM privileges;
5. Provide the policy a descriptive name and click create policy;
Step 6. Create a new IAM role that will grant users access to requested services (e.g. s3, Redshift)
Navigate to IAM AWS console, locate roles and click create role;
2. For Trusted Entities, select AWS services;
3. Select required services, e.g. S3 or Redshift, and click Next;
4. Assign the role with required level of permissions to access the service, click Next;
5. Give the role a descriptive name and Create the role.
Step 7. Create a new IAM user who will be able to perform CreateTokenWithIAM action to exchange Azure AD issued tokens for AWS IDC tokens;
1. Navigate to IAM AWS console and locate users;
2. Create a new user and click next;
3. In the set permission tab, click "Attach policies directly" and locate the policy we created in Step 5;
4. Click next and create the user;
5. Locate the user we have just created, click on the user, copy and save the user's arn.
6. Create a new set of security credentials for the user and save them, we will need them later.
Step 8. Assign the user to the role by creating a Trust relationship
1. Navigate to IAM AWS console, locate roles and select the role we created in step 6;
2. Switch to the Trust relationships tab and click Edit Trust Policy;
3. For the STS actions set "sts:AssumeRole" and "sts:SetContext" permissions;
4. For the principal, specify the user arn we've copied in step 7.
5. Save the trust policy;
With this step, we've completed configuration of our AWS account. To recap, we've:
- Registered a new Azure AD OAuth client application;
- Registered a new Trusted Token issuer in AWS account creating a trust between Azure AD and AWS IDC;
- Registered a new AWS IDC application;
- Created a policy and assigned it with required permissions to perform CreateTokenWithIAM action;
- Created a new role and a user and assigned the user with required permissions to access S3 and / or Redshift services.
Step 9. Access S3 data from Alteryx Designer;
1. Open Alteryx Designer and search for desired S3 tool (download/upload)
2. Drop the tool on canvas and click Setup a Connection;
3. Provide your S3 bucket details;
4. Click connect credentials;
5. Select AWS OAuth Trusted Identity Propagation for S3 as authentication method and select Create new credential;
6. Provide the required inputs we collected earlier
7. Under AWS temporary access credentials, create new credential and specify the name;
8. Click save and connect;
9. Finally, select the file you want to read
You’ve now configured AWS Trusted Identity Propagation authentication for S3. You can now use these configurations to authenticate users and control access to your S3 bucket.