DMGT-TECH / DMGT-TECH/authenticated-cloud-docs

Robust fix needed for non-interactive cloudfront-auth

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The main issue is that the cloudfront-auth repo code is interactive only, doesn't support non-interactive CLI usage or loading all settings from a preconfigured file.

The tool we are using to build the CloudFront authentication lambda (https://github.com/Widen/cloudfront-auth) - Connect to preview only supports interactive mode. Even with a saved out configuration file, it continues to interactively prompt — it just uses the saved configuration for the prompt defaults. This does not lend itself to automation.
However, I was able to add a single line of code to enable command line-based automation for our use case. That's how this action is currently working -- it is patching in that line prior to run. But we're going to need something more robust/less hackish.

Options:
* PR to Widen/cloudfront-auth ?
* Fork Widen/cloudfront-auth ?

I noticed there's already a PR dated Mar 1 in Widen/cloudfront-auth to address our use case and more (https://github.com/Widen/cloudfront-auth/pull/84). But it's much more than a one-line change. If that gets merged that will resolve our issues. Just not sure when that'll happen.

**Rob has suggested either:**

* I suggest fork and apply the pull request(84), and then track and revert to main when fixed.
* Also fine with leaving with your patch for now, if arkadiy reviews.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.