-
Notifications
You must be signed in to change notification settings - Fork 295
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
refactor(cmd-api-server): clean up configuration parameters #720
Comments
Hello @petermetz , can you assign this to me? Thank you. |
@ruzell22 Done, thank you! |
Hello @petermetz , below are the following outputs of different situational tests that I did for the ticket. Cleaning up based on error log, running npm run configure with successful output but running npm run start: api-server will output an error and it automatically shuts down the API server: options.keyPairPem falsy and possible code related to the error: My question for this part is, should I still remove keyPairPem? Removing the other 3, however, results to a successful npm run configure and npm run start:api-server: |
…er-cacti#720 fixes: hyperledger-cacti#720 Parameters that are cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem Parameter keyPairPem cannot be remove as it results to an error in running the api server. Cleaning the three mentioned parameter are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]>
…er-cacti#720 fixes: hyperledger-cacti#720 Parameters that are cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem Parameter keyPairPem cannot be remove as it results to an error in running the api server. Cleaning the three mentioned parameter are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c The package cleaned is cactus-cmd-api-server Signed-off-by: ruzell22 <[email protected]>
…er-cacti#720 fixes: hyperledger-cacti#720 Parameters that are cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem together with their corresponding environment: CACTUS_NODE_ID, CONSORTIUM_ID, KEYCHAIN_SUFFIX_KEY_PAIR_PEM Parameter keyPairPem cannot be remove as it results to an error in running the api server. Cleaning the three mentioned parameter are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]>
…er-cacti#720 fixes: hyperledger-cacti#720 Parameters that are cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem together with their corresponding environment: CACTUS_NODE_ID, CONSORTIUM_ID, KEYCHAIN_SUFFIX_KEY_PAIR_PEM Parameter keyPairPem cannot be remove as it results to an error in running the api server. Cleaning the three mentioned parameter are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]>
…er-cacti#720 fixes: hyperledger-cacti#720 Parameters that are cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem together with their corresponding environment: CACTUS_NODE_ID, CONSORTIUM_ID, KEYCHAIN_SUFFIX_KEY_PAIR_PEM Parameter keyPairPem cannot be remove as it results to an error in running the api server. Cleaning the three mentioned parameter are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]>
…er-cacti#720 fixes: hyperledger-cacti#720 Parameters that are cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem together with their corresponding environment: CACTUS_NODE_ID, CONSORTIUM_ID, KEYCHAIN_SUFFIX_KEY_PAIR_PEM Parameter keyPairPem cannot be remove as it results to an error in running the api server. Cleaning the three mentioned parameter are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]>
related to hyperledger-cacti#720 this includes gitguardian workflow + configuration file Signed-off-by: ruzell22 <[email protected]>
related to hyperledger-cacti#720 this includes gitguardian workflow + configuration file Signed-off-by: ruzell22 <[email protected]>
related to hyperledger-cacti#720 and hyperledger-cacti#2086 This includes GitGuardian workflow + configuration file To replace the original GitGuardian scanner so it will be configurable. Signed-off-by: ruzell22 <[email protected]>
related to hyperledger-cacti#720 This includes gitguardian workflow + configuration file This change was necessary even if we have stock git guardian workflow action because it was not possible to be configured for exclusions. The scanner was not getting triggered by pull_request_target as expected to access the secrets environment variable so it was returned to the original pull_request. By default, secrets is not possible to be accessed by a pull request from a fork repository unless it is merged to the main repository. Hence, the original pull_request will work after merging. The test tokens used in testing were all deleted to prevent further usage of it. Signed-off-by: ruzell22 <[email protected]>
related to hyperledger-cacti#720 This includes gitguardian workflow + configuration file This change was necessary even if we have stock git guardian workflow action because it was not possible to be configured for exclusions. The scanner was not getting triggered by pull_request_target as expected to access the secrets environment variable so it was returned to the original pull_request. By default, secrets is not possible to be accessed by a pull request from a fork repository unless it is merged to the main repository. Hence, the original pull_request will work after merging. The test tokens used in testing were all deleted to prevent further usage of it. Signed-off-by: ruzell22 <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
related to hyperledger-cacti#720 This includes gitguardian workflow + configuration file This change was necessary even if we have stock git guardian workflow action because it was not possible to be configured for exclusions. The scanner was not getting triggered by pull_request_target as expected to access the secrets environment variable so it was returned to the original pull_request. By default, secrets is not possible to be accessed by a pull request from a fork repository unless it is merged to the main repository. Hence, the original pull_request will work after merging. The test tokens used in testing were all deleted to prevent further usage of it. Signed-off-by: ruzell22 <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
…er-cacti#720 fixes: hyperledger-cacti#720 Parameters cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem Parameter keyPairPem cannot be removed as it results to an error in running the api server. Cleaning the three mentioned parameters are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]>
Hello @petermetz , the clean up configuration parameters part of the ticket is already finished and is just having issue with the gitguardian. Since it will not be used anymore, this ticket is finished and can be closed and fixed by #1996 . Thank you. |
…er-cacti#720 BREAKING CHANGE: Removed the `keyPairPem` parameter from the API server configuration. fixes: hyperledger-cacti#720 Parameters cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem Cleaning the three mentioned parameters are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
…er-cacti#720 BREAKING CHANGE: Removed the `keyPairPem` parameter from the API server configuration. fixes: hyperledger-cacti#720 Parameters cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem Cleaning the three mentioned parameters are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
…er-cacti#720 BREAKING CHANGE: Removed the `keyPairPem` parameter from the API server configuration. fixes: hyperledger-cacti#720 Parameters cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem Cleaning the three mentioned parameters are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
BREAKING CHANGE: Removed the `keyPairPem` parameter from the API server configuration. fixes: #720 Parameters cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem Cleaning the three mentioned parameters are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
…er-cacti#720 BREAKING CHANGE: Removed the `keyPairPem` parameter from the API server configuration. fixes: hyperledger-cacti#720 Parameters cleaned up are: cactusNodeId, consortiumId, keychainSuffixKeyPairPem Cleaning the three mentioned parameters are backwards compatible with tags versions: v1.0.0-rc.3 and v1.0.0 The latest tag being used as of this change is v1.0.0-25-gdda3f00c Signed-off-by: ruzell22 <[email protected]> Signed-off-by: Peter Somogyvari <[email protected]>
Description
As a user of Cactus I don't want to have dangling/zombie configuration parameters in the API server so that I'm not wasting any of my time trying to figure out what they are for or how to use them/provide dummy values to pass the configuration validation mechanism.
Ideally all (or at least most) of the configuration that the API server needs would really just be the configuration that is passed down to the plugin instances so that the API server is kept "dumb" and easily exchangeable.
Acceptance Criteria
ConfigService
is cleaned up so that there are no redundant/unused configuration parameters.npm run start:api-server
script (e.g. no crash)List of configuration parameters to remove (if they are optional)
cactusNodeId
consortiumId
keyPairPem
keychainSuffixKeyPairPem
The text was updated successfully, but these errors were encountered: