-
Notifications
You must be signed in to change notification settings - Fork 5
W-18929191-Private-Link-Connection-LDS #301
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
Open
luanamulesoft
wants to merge
36
commits into
latest
Choose a base branch
from
W-18929191-Private-Link-Connection-LDS
base: latest
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
2d0d0c9
W-18929191-Private-Link-Connection-LDS
luanamulesoft 68ea0b4
moved file
luanamulesoft 00aa913
fixed format
luanamulesoft d071734
typo
luanamulesoft 8f03212
applied reviews
luanamulesoft 015001b
Update ps-outbound-private-link.adoc
luanamulesoft 7708c2d
Update ps-outbound-private-link.adoc
luanamulesoft d18cbef
Update ps-outbound-private-link.adoc
luanamulesoft c28cf3a
Update ps-outbound-private-link.adoc
luanamulesoft 0eb3c66
Update ps-outbound-private-link.adoc
luanamulesoft fffef60
Update ps-outbound-private-link.adoc
luanamulesoft 071572f
Update ps-outbound-private-link.adoc
luanamulesoft 4064266
Delete .github/copilot-instructions.md
luanamulesoft af270ef
Update ps-outbound-private-link.adoc
luanamulesoft ae8af15
Update ps-outbound-private-link.adoc
luanamulesoft ffd882f
Merge branch 'latest' into W-18929191-Private-Link-Connection-LDS
luanamulesoft 3d7c254
Update ps-outbound-private-link.adoc
luanamulesoft 7c0fa75
Update ps-outbound-private-link.adoc
luanamulesoft b3b5c3e
Merge branch 'latest' into W-18929191-Private-Link-Connection-LDS
luanamulesoft b591080
Integrated content from blog
luanamulesoft d76342b
Update ps-outbound-private-link.adoc
luanamulesoft 1cf7046
capitalization
luanamulesoft 1e28ded
Update ps-outbound-private-link.adoc
luanamulesoft c3df25a
added API parameters
luanamulesoft 0a8421f
Update ps-outbound-private-link.adoc
luanamulesoft e632e58
Update ps-outbound-private-link.adoc
luanamulesoft 1997a74
Update ps-outbound-private-link.adoc
luanamulesoft a756e33
Update ps-outbound-private-link.adoc
luanamulesoft e5955af
Update ps-outbound-private-link.adoc
luanamulesoft 1ac8697
Update ps-outbound-private-link.adoc
luanamulesoft 3672ed2
Update ps-outbound-private-link.adoc
luanamulesoft 9213c0e
Update ps-outbound-private-link.adoc
luanamulesoft 94807bc
Update ps-outbound-private-link.adoc
luanamulesoft 52620ed
Update ps-outbound-private-link.adoc
luanamulesoft c9be8b1
Update ps-outbound-private-link.adoc
luanamulesoft 49dc361
Merge branch 'latest' into W-18929191-Private-Link-Connection-LDS
luanamulesoft 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
There are no files selected for viewing
113 changes: 113 additions & 0 deletions
113
cloudhub-2/modules/ROOT/pages/ps-outbound-private-link.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| = Setting Up an Outbound Private Link Connection | ||
|
|
||
| This document describes the steps to configure and outbbound private link connection from CloudHub 2.0 private spaces. | ||
|
|
||
| // Test in QAX | ||
| // Deploy tf-rtfc-iam to STGX | ||
| // tf issue thread: https://salesforce-internal.slack.com/archives/C03UAEK0TNY/p1752180070663329 - deployed to stgx, need CC for prods | ||
| // CC: https://gus.lightning.force.com/lightning/r/Case/500EE00001ZFcLJYA1/view | ||
| // Test in STGX once RTF API and ARC is ready | ||
|
|
||
| == Before You Begin | ||
|
|
||
| . Provision a xref:ps-create-configure.adoc[private space] in Cloudhub 2.0 | ||
| . Obtain a bearer token to be used below for calling APIs | ||
| + | ||
| Make sure that the owner of the bearer token has permissions to manage private spaces | ||
|
|
||
| == Configure the Outbound Connections | ||
|
|
||
| Follow these steps to set up an outbound private link connection from your CloudHub 2.0 private space: | ||
|
|
||
| . Gather Private Space Availability Zones and AWS Account Id | ||
| .. Retrieve information about Availability Zones (AZs) for a your private space | ||
| + | ||
| [source,curl,linenums] | ||
| ---- | ||
| curl -XGET https://anypoint.mulesoft.com/runtimefabric/api/{orgId}/privatespaces/{spaceId}/azs -H "Authorization:$AUTHTOKEN" | ||
| ---- | ||
| + | ||
| .. Retrieve information about accounts associated with your private space | ||
| + | ||
| [source,curl,linenums] | ||
| ---- | ||
| curl -XGET https://anypoint.mulesoft.com/runtimefabric/api/organizations/{orgId}/privatespaces/{spaceId}/accounts -H "Authorization:$AUTHTOKEN" | ||
| ---- | ||
| + | ||
| . Set up VPC endpoint services (if self-hosted endpoint services) | ||
| .. https://docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html[Create a service powered by AWS PrivateLink] | ||
| .. If the service is hosted the same region as the private space, set up the services in the same availability zone as the private space (obtained in he first step here) | ||
luanamulesoft marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| . Share the VPC endpoint Services with your CloudHub 2.0 private space | ||
| .. https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html[Configure an endpoint service] | ||
| .. In the VPC *Endpoint services*, click *Allow principals* | ||
| ... Add `arn:aws:iam::{accountId}:root` as principal | ||
| + | ||
| The `{accountId}` is obtained in the first step step here | ||
luanamulesoft marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| . Gather this information for the API: | ||
| .. Service Name: the endpoint service name | ||
| + | ||
| For example, customer-hosted endpoint service: `com.amazonaws.vpce.us-east-1.vpce-svc-xxxxxxxxxxxxxxxx` | ||
| + | ||
| For example, AWS hosted service: `com.amazonaws.us-west-2.s3` | ||
| .. Service Region: the region where the VPC endpoint service is located | ||
| .. Service Owner: the owner of the VPC endpoint service | ||
| ... Account id of the endpoint service | ||
| ... “amazon”, if it’s an Amazon service | ||
| .. Availability Zone Ids: the id of the availability zones where you wish to establish the private link. Make sure that the AZ Ids are the ones used by the private space (obtained in the first step here), and the VPC endpoint service is hosted in those AZ Ids. | ||
| . Create a VPC endpoint in Cloudhub 2.0 via API | ||
| + | ||
| [source,curl,linenums] | ||
| ---- | ||
| curl -XPOST https://anypoint.mulesoft.com/runtimefabric/api/{orgId}/privatespaces/{spaceId}/vpces -H "Authorization:$AUTHTOKEN" -H "Content-Type:application/json" -d '{ | ||
| "name": "{any name}", | ||
| "serviceName": "{service name}", | ||
| "serviceRegion": "{service region}", | ||
| "serviceOwner": "{service owner}", | ||
| "azIds": [{aws-az-id1}, {aws-az-id2}] | ||
| }‘ | ||
| ---- | ||
| + | ||
| If the VPC endpoint is successfully created, the API returns a `vpceId`. | ||
| . Get the VPC endpoint status in Cloudhub 2.0 using API | ||
| + | ||
| [source,curl,linenums] | ||
| ---- | ||
| curl -XGET https://anypoint.mulesoft.com/runtimefabric/api/{orgId}/privatespaces/{spaceId}/vpces/{vpceid} -H "Authorization:$AUTHTOKEN" | ||
| ---- | ||
| + | ||
| .. If successful, it returns the DNS names of the VPC endpoint | ||
| .. It also returns the the provisioning status: | ||
| ... `Invalid`: VPCE creation failed | ||
| ... `Valid`: VPCE is being provisioned | ||
| ... `Available` | ||
| ... `PendingAcceptence` | ||
| . Use this command to update a VPC Endpoint: | ||
| + | ||
| [source,curl,linenums] | ||
| ---- | ||
| curl -XPATCH https://anypoint.mulesoft.com/runtimefabric/api/{orgId}/privatespaces/{spaceId}/vpces/{vpceId} -H "Authorization:$AUTHTOKEN" -H "Content-Type:application/json" -d '{ | ||
| "name": "{any name}", | ||
| "serviceName": "{service name}", | ||
| "serviceRegion": "{service region}", | ||
| "serviceOwner": "{service owner}", | ||
| "azIds": [{aws-az-id1}, {aws-az-id2}] | ||
| }‘ | ||
| ---- | ||
| + | ||
| . Use this command to delete a VPC Endpoint: | ||
| [source,curl,linenums] | ||
| ---- | ||
| curl -XDELETE https://anypoint.mulesoft.com/runtimefabric/api/{orgId}/privatespaces/{spaceId}/vpces/{vpceid} -H "Authorization:$AUTHTOKEN" | ||
| ---- | ||
|
|
||
|
|
||
| == Limitations | ||
luanamulesoft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| * This configuration supports interface endpoints only | ||
| * This configuration doesn't support CloudHub VPCs or CloudHub 2.0 migrated private spaces | ||
luanamulesoft marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * You can't perform cross-region validation properly done at the API level. If the endpoint service is invalid, the VPCE provisioning fails. | ||
luanamulesoft marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
luanamulesoft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
luanamulesoft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| == See Also | ||
| * xref:access-management::saml-bearer-token.adoc[] | ||
| * https://help.salesforce.com/s/articleView?id=001115323&type=1[How to generate your Authorization Bearer token for Anypoint Platform] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.