-
Notifications
You must be signed in to change notification settings - Fork 4
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
Sync secrets for local use #412
Conversation
Created multidev environment pr-412 for yalesites-platform. |
@vinmassaro - I'm getting some errors on local when loading pages that have the webform about |
@codechefmarc Yes, this PR is still in draft because it is dependent on this PR: pantheon-systems/customer-secrets-php-sdk#13 |
@codechefmarc I'm getting this same error as well and I'm pulling my hair out trying to track down what's going on with this... have you had any luck? |
@dpagini Terminus Secrets Manager currently does not sync secrets for local development. There is a new |
Hi @vinmassaro - Sorry to comment on your repo here, I know it's a little unrelated, but it's where I found the My
So I guess I see why this PR helps for your site... and maybe @codechefmarc is hitting that error b/c he doesn't have the file at |
j/w, is |
@dpagini the command comes from v1.2.2 of Terminus Secrets Manager Plugin Edit: unsure about the format of your secrets.json, but mine using that command has some additional info.
For further support, you can try the |
Yup, I think once this PR has been merged (no rush from me), I'll be solved with the error messages on my local. |
Sorry again, @vinmassaro... figured I would throw a comment here in case anyone else ends up here like I did b/c of the error message... I'll have to give Pantheon the feedback that it would be nice to configure where Drupal is looking for that local secrets file. |
1fe4dc4
to
39031f9
Compare
c97493b
to
cf4ccc1
Compare
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.
Locally, I had to revert the HTML element patch that @codechefmarc did to get it to complete; I believe this is due to his changes being accepted into the main repo. I have a couple of PRs with that fix in there.
With that modified, it did work, although I am seeing that it couldn't apply the add-php-c-format.patch
; I can't see where that would be related to this PR, but first time I ran into that so I thought I'd mention it. I did have some lando/Docker build issues this afternoon, which took up quite a bit of time. The solution was to reset the lando docker virtual network, so I doubt it would affect the patch. I'll be curious if anyone else has this issue.
But as far as the changes in this are concerned, it all looks good and I was able to see the captchas without issue.
Just FYI, I removed the |
Ah, gotcha! I won't worry about that patch then. Usually it patches just fine though. haha I merged a PR that included the revert on the HTML element filter, so updating the branch should help it build now. |
Description of work
secret:site:local-generate
terminus secrets manager commandCUSTOMER_SECRETS_FAKE_FILE
lando env var now supported by customer-secrets-php-sdkFunctional testing steps:
npm run setup
, or delete.lando.local.yml
and re-runnpm run setup
on an existing local setupsecrets.json
exists locally and is gitignore'd/admin/config/people/captcha/examples
and verify that the recaptcha v2 example loads. If it loads with no error, secrets are being loaded correctly.