Config Object Members for SuiteScript 2.1 PGP Module
Config object members in SuiteScript 2.1 support secure decryption, message integrity, and signature parsing adjustments.
TL;DR Opening
The Config object in SuiteScript 2.1 provides various properties for managing cryptographic configurations related to the PGP module. This functionality is crucial for ensuring secure messaging and data integrity within applications.
Overview of Config Object Members
The Config object members are essential properties used within the PGP module in SuiteScript 2.1. They enable developers to fine-tune security settings associated with encryption and message integrity. Below are the details of each member:
| Member Name | Return Type | Supported Script Types | Description |
|---|---|---|---|
Config.allowInsecureDecryptionWithSigningKeys | boolean | Server scripts | Enables decryption that is not secured with signing keys. |
Config.allowMessagesWithoutIntegrityProtection | boolean | Server scripts | Allows messages without integrity protection. |
Config.useRelaxedSignatureParsing | boolean | Server scripts | Relaxed signature parsing for configuration objects. |
Detailed Member Descriptions
Config.allowInsecureDecryptionWithSigningKeys
- Type:
boolean - Description: This property enables the decryption process for messages that do not utilize signing keys for security.
- Error Handling: Attempting to set this property will trigger the
READ_ONLY_PROPERTYerror.
Code Sample:
1// Add additional code2...3const config = pgp.createConfig({4 allowInsecureDecryptionWithSigningKeys: true5});6...7// Add additional codeConfig.allowMessagesWithoutIntegrityProtection
- Type:
boolean - Description: This property permits sending messages even if they lack integrity protection, which may be useful in certain scenarios.
- Error Handling: Similar to the previous property, attempting to modify it results in a
READ_ONLY_PROPERTYerror.
Code Sample:
1// Add additional code2...3const config = pgp.createConfig({4 allowMessagesWithoutIntegrityProtection: true5});6...7// Add additional codeConfig.useRelaxedSignatureParsing
- Type:
boolean - Description: This configuration setting relaxes the strictness of signature parsing, potentially enhancing compatibility with various signature structures.
Conclusion
Understanding the properties within the Config object allows developers to effectively manage cryptographic operations within SuiteScript, ensuring that security protocols align with their specific application needs.
Key Takeaways
- The Config object in SuiteScript 2.1 allows for advanced PGP configuration.
- Properties can adjust security measures around decryption and message integrity.
- Certain properties are read-only, resulting in specific error codes if modified improperly.
Frequently Asked Questions (4)
Can the properties of the Config object in the SuiteScript 2.1 PGP module, such as allowInsecureDecryptionWithSigningKeys, be modified?
What happens if I enable allowMessagesWithoutIntegrityProtection in SuiteScript 2.1?
Are the Config object properties applicable to both client and server scripts?
Does the useRelaxedSignatureParsing property in the SuiteScript 2.1 PGP module support different signature structures?
Was this article helpful?
More in Security
- Enable Token-Based Authentication in NetSuite Developer Tools
Token-based authentication is now required for all NetSuite developer tools, enhancing security compliance and aligning with Two-Factor Authentication...
- Login Audit Trail Features for User Activity Tracking
The Login Audit Trail allows tracking user login/logout activity in NetSuite, filtering by date, user, and IP address.
- Security, Privacy, and Compliance Updates in SuiteCloud
Explore the latest updates on security, privacy, and compliance practices in SuiteCloud to enhance developer safety.
- Restricting Role Access to Subsidiaries in NetSuite
Restrict user role access to subsidiaries in NetSuite OneWorld, ensuring data privacy and security for different business units.
Advertising
Reach Security Professionals
Put your product in front of NetSuite experts who work with Security every day.
Sponsor This Category