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

Make Cloudfront private in CDK code, add key-pair for auth #2060

Merged
merged 42 commits into from
Jan 23, 2025
Merged

Conversation

dubwub
Copy link
Contributor

@dubwub dubwub commented Jan 23, 2025

No description provided.

@dubwub dubwub requested a review from abvthecity as a code owner January 23, 2025 17:46
Copy link

vercel bot commented Jan 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rbac.ferndocs.com ❌ Failed (Inspect) Jan 23, 2025 5:46pm
1 Skipped Deployment
Name Status Preview Updated (UTC)
fern-shell ⬜️ Ignored (Inspect) Jan 23, 2025 5:46pm

@dubwub dubwub had a problem deploying to Preview - app.buildwithfern.com January 23, 2025 22:48 — with GitHub Actions Error
@dubwub dubwub had a problem deploying to Preview - app-dev.buildwithfern.com January 23, 2025 22:48 — with GitHub Actions Error
@@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dd/write-to-s3
Copy link
Member

Choose a reason for hiding this comment

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

lets remove

@dubwub dubwub had a problem deploying to Preview - app.buildwithfern.com January 23, 2025 22:50 — with GitHub Actions Failure
@dubwub dubwub had a problem deploying to Preview - app-dev.buildwithfern.com January 23, 2025 22:50 — with GitHub Actions Failure
@@ -146,7 +147,7 @@ export class S3ServiceImpl implements S3Service {
}): Promise<PutObjectCommandOutput> {
const command = new PutObjectCommand({
Bucket: this.config.dbDocsDefinitionS3.bucketName,
Key: `${domain}.json`,
Key: `${domain}/${docsDefinitionVersion()}.json`,
Copy link
Member

Choose a reason for hiding this comment

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

should be entirely replaced with getS3KeyForV1DocsDefinition

@@ -10,7 +11,7 @@ export async function loadDocsDefinitionFromS3({
}): Promise<FdrAPI.docs.v2.read.LoadDocsForUrlResponse | undefined> {
try {
const cleanDomain = domain.replace(/^https?:\/\//, "");
const dbDocsDefUrl = `${docsDefinitionUrl}/${cleanDomain}.json`;
const dbDocsDefUrl = `${docsDefinitionUrl}/${cleanDomain}/${docsDefinitionVersion()}.json`;
Copy link
Member

Choose a reason for hiding this comment

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

${docsDefinitionUrl}/${getS3KeyForV1DocsDefinition(domain)}

@dubwub dubwub had a problem deploying to Preview - app-dev.buildwithfern.com January 23, 2025 23:05 — with GitHub Actions Failure
@dubwub dubwub had a problem deploying to Preview - app.buildwithfern.com January 23, 2025 23:05 — with GitHub Actions Failure
@dubwub dubwub merged commit daa6ff8 into main Jan 23, 2025
12 of 18 checks passed
@dubwub dubwub deleted the dd/write-to-s3 branch January 23, 2025 23:05
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.

2 participants