Giter Club home page Giter Club logo

Comments (6)

prai01 avatar prai01 commented on June 11, 2024 1

Thanks @amtrack for the fix. It works like a charm.

Any tips if its possible to read the filePath and password from outside the project to secure them?

from sfdx-browserforce-plugin.

jwalke avatar jwalke commented on June 11, 2024

I was able to reproduce this issue. I've attached the .json file I used plus the dummy keystore I created. I followed these steps to create the password protected keystore file.

config.zip

from sfdx-browserforce-plugin.

amtrack avatar amtrack commented on June 11, 2024

🎉 This issue has been resolved in version 1.7.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

from sfdx-browserforce-plugin.

amtrack avatar amtrack commented on June 11, 2024

@prai01 @jwalke Thanks for reporting!
I've published a new version, please update and try again.

Note: You only need to specify the name property when you want to change the case of the certificate name.
By default Salesforce reads the name from the JKS file but unfortunately this is all lowercase.

from sfdx-browserforce-plugin.

amtrack avatar amtrack commented on June 11, 2024

@prai01 Great to hear!
At the moment, I don't have any convenient solution to achieve this.
You could generate the JSON file temporary for now.

export BF_CERT_PASSWORD="*****"
echo "{ \"settings\": { \"security\": { \"certificateAndKeyManagement\": { \"importFromKeystore\": [ { \"filePath\": \"./data/config/certificates/google_cloud.jks\", \"name\": \"google_cloud\", \"password\": \"${BF_CERT_PASSWORD}\" } ] } } } }" > /tmp/browserforce-config.json
sfdx browserforce:apply -f /tmp/browserforce-config.json ...
rm -f /tmp/browserforce-config.json
unset BF_CERT_PASSWORD

For the future I'm thinking about generally allowing the config to be specified without having to write any file, but I haven't started yet.

from sfdx-browserforce-plugin.

prai01 avatar prai01 commented on June 11, 2024

Thanks @amtrack for the workaround.

from sfdx-browserforce-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.