Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

fix: Revise secret flags for Salesforce (#587) #55

Merged
merged 1 commit into from
Jun 29, 2017

Conversation

zregvart
Copy link
Member

This marks: clientId and userName as non-secret component properties.

@@ -18,10 +18,10 @@
},
"componentProperties": {
"loginUrl": { "kind": "property", "displayName": "Login Url", "group": "security", "label": "common,security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "https://login.salesforce.com", "description": "URL of the Salesforce instance by default set to https://login.salesforce.com" },
"clientId": { "kind": "property", "displayName": "Client Id", "group": "security", "label": "common,security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "description": "OAuth Consumer Key of the connected app configured in the Salesforce instance setup. Typically a connected app needs to be configured but one can be provided by installing a package." },
"clientId": { "kind": "property", "displayName": "Client Id", "group": "security", "label": "common,security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "OAuth Consumer Key of the connected app configured in the Salesforce instance setup. Typically a connected app needs to be configured but one can be provided by installing a package." },
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you update commit message to indicate the clientId field is also now not secret (which I agree with btw)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated to:

fix: Revise secret flags for Salesforce (#587)

This marks: clientId and userName as non-secret component properties.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

This marks: clientId and userName as non-secret component properties.
@zregvart zregvart changed the title fix: Mark Salesforce username as non-secret (#587) fix: Revise secret flags for Salesforce (#587) Jun 29, 2017
@pure-bot
Copy link

pure-bot bot commented Jun 29, 2017

Pull request approved by @jimmidyson - applying approved label

@pure-bot pure-bot bot added the approved label Jun 29, 2017
@pure-bot pure-bot bot merged commit 1739e00 into syndesisio:master Jun 29, 2017
@zregvart zregvart deleted the #587 branch June 29, 2017 12:38
@rhuss
Copy link
Contributor

rhuss commented Jun 30, 2017

@jimmidyson @zregvart It seems that editing the jsons alone is not good enough as although there are checked in, they are autogenerated from somewhere. I.e. when I do a 'mvn install' this changes gets overwritten again.

Any idea where this comes from ? (before I start digging ...)

@zregvart
Copy link
Member Author

@rhuss it could be the combination of annotation processor (camel/tooling/apt) and camel-package-maven-plugin (camel/tooling/maven/camel-package-maven-plugin) that generate JSON files for Camel Catalog. This would mean that a new release of Camel would be needed see CAMEL-11478.

@rhuss
Copy link
Contributor

rhuss commented Jul 3, 2017

Agreed. Should we make the generation of the json somewhat optional in order to decrease the chances that the old version is checked in by accident ?. E.g. we could introduc a profile 'schema-regen' and configure the plugin only for this profile.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants