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

Move ceremony command to R2 #3648

Merged
merged 2 commits into from
Mar 15, 2023

Conversation

danield9tqh
Copy link
Member

@danield9tqh danield9tqh commented Mar 14, 2023

Summary

For cost saving we are moving future trusted setup ceremonies to use Cloudflare R2 instead of S3

Testing Plan

Locally tested a few contributions

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

@danield9tqh danield9tqh requested a review from a team as a code owner March 14, 2023 21:36
required: false,
description: 'Prefix for contribution download URLs',
// TODO: update this to non-dev endpoint to avoid rate limiting
default: 'https://pub-6a239e04e140459087cf392ffc3245b1.r2.dev',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't the bucket, right? I assume it's like an account name

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its the dev testing url. We will replace it with ironfish.network domain name when close to launch.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea that is basically a link to the bucket

secretAccessKey: credentials.r2SecretAccessKey,
},
})
}
Copy link
Contributor

@NullSoldier NullSoldier Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are binary compatible with S3, so I wouldnt expect this to exist. There is no difference in the client. I would just expect these to be parameters that you pass into getS3Client but we can refactor this later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which things would be parameters?

}

export async function getR2Credentials(): Promise<R2Secret | undefined> {
const client = new SecretsManagerClient({ region: 'us-east-1' })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about this region config. If the ceremony server has terraform config, it prob wont need it.
Maybe try it without region on the github workflow

@danield9tqh danield9tqh merged commit b9263d9 into iron-fish:staging Mar 15, 2023
@danield9tqh danield9tqh deleted the move-ceremony-to-r2 branch March 15, 2023 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants