-
Notifications
You must be signed in to change notification settings - Fork 97
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
S3 Peer UI #668
Merged
Merged
S3 Peer UI #668
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9917a36
s3 peer boilerplate
Amogh-Bharadwaj 314a164
s3 peer ui v0
Amogh-Bharadwaj 408d20d
adds more peer validation for s3
Amogh-Bharadwaj ceb40f6
fix log and style
Amogh-Bharadwaj 15537e4
change required params
Amogh-Bharadwaj d766599
changes
Amogh-Bharadwaj b3535e1
case change
Amogh-Bharadwaj c2f406c
bucketUrl case change
Amogh-Bharadwaj 4b831cd
prettier handlers.ts
Amogh-Bharadwaj 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,63 @@ | ||
import { S3Config } from '@/grpc_generated/peers'; | ||
import { PeerSetting } from './common'; | ||
|
||
export const s3Setting: PeerSetting[] = [ | ||
{ | ||
label: 'Bucket URL', | ||
stateHandler: (value, setter) => | ||
setter((curr) => ({ ...curr, url: value })), | ||
tips: 'The URL of your existing S3/GCS bucket along with a prefix of your choice. It begins with s3://', | ||
helpfulLink: | ||
'https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-bucket-intro.html#accessing-a-bucket-using-S3-format', | ||
default: 's3://<bucket_name>/<prefix_name>', | ||
}, | ||
{ | ||
label: 'Access Key ID', | ||
stateHandler: (value, setter) => | ||
setter((curr) => ({ ...curr, accessKeyId: value })), | ||
tips: 'The AWS access key ID associated with your account. In case of GCS, this is the HMAC access key ID.', | ||
helpfulLink: | ||
'https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html', | ||
}, | ||
{ | ||
label: 'Secret Access Key', | ||
stateHandler: (value, setter) => | ||
setter((curr) => ({ ...curr, secretAccessKey: value })), | ||
tips: 'The AWS secret access key associated with your account. In case of GCS, this is the HMAC secret.', | ||
helpfulLink: | ||
'https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html', | ||
}, | ||
{ | ||
label: 'Region', | ||
stateHandler: (value, setter) => | ||
setter((curr) => ({ ...curr, region: value })), | ||
tips: 'The region where your bucket is located. For example, us-east-1. In case of GCS, this will be set to auto, which detects where your bucket it.', | ||
}, | ||
{ | ||
label: 'Role ARN', | ||
stateHandler: (value, setter) => | ||
setter((curr) => ({ ...curr, roleArn: value })), | ||
type: 'password', | ||
tips: 'If set, the role ARN will be used to assume the role before accessing the bucket.', | ||
helpfulLink: | ||
'https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns', | ||
optional: true, | ||
}, | ||
]; | ||
|
||
export const blankS3Setting: S3Config = { | ||
url: 's3://<bucket_name>/<prefix_name>', | ||
accessKeyId: undefined, | ||
secretAccessKey: undefined, | ||
roleArn: undefined, | ||
region: undefined, | ||
endpoint: '', | ||
metadataDb: { | ||
host: '', | ||
port: 5432, | ||
user: 'postgres', | ||
password: '', | ||
database: 'postgres', | ||
transactionSnapshot: '', | ||
}, | ||
}; |
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't expose metadata db to the user, just use catalog.