Skip to content

Clean Custom Field Functions#14

Merged
lcarcaramo merged 29 commits into
devfrom
rework-custom-traits
Sep 8, 2023
Merged

Clean Custom Field Functions#14
lcarcaramo merged 29 commits into
devfrom
rework-custom-traits

Conversation

@ElijahSwiftIBM

Copy link
Copy Markdown
Collaborator

-Chance instances of add_field_data to update_existing_segment_traits
-Change instances of overwrite_field_data to overwrite_segment_traits
-Change __add_field_data to __add_additional_valid_segment_traits
-Change __overwrite_field_data to __overwrite_valid_segment_traits

part of cleanup prior to release of pyracf 1.02a

Change all calls to SMO to include option 8 for secrets redaction.
Drop methods that contain potentially sensitive information as soon as they are no longer necessary.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Check to ensure new redaction eliminates password and password phrase information within the result

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-changes the way secrets are redacted on input
-no longer stores copy of secrets for replacement

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-customers can add new secrets to redact
-cannot overwrite existing secrets for security

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-add set_passphrase settr to UserAdmin
-add unit testing for this feature

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-add functionality to redact secrets beyond default
-cannot change defaults as this is security concern, once something is added, a new instance would be necessary
- unit test for this must be run after all other user tests as it redacts UID's and this cannot be reversed for the life of the SecurityAdmin object

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-minor typo fixes and name changes
-convert options parameter to precheck keyword.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Names, and formatting changes
-Addition of docstrings
-Tweak usability and error handling within some functions

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-docstring changes
-convert _secret_traits to __secret_traits

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Move valid_segment_traits to function group constructors
-Move secret_traits to main class constructor
-Move unit testing for additional secret redaction back into logger tests for user_admin
-add input cleanup to generate request only path and remove cleanup on entry to functions
-docstring updates and minor code improvements

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-adjust docstrings
-change file names
-add new unit tests to confirm only secrets are redacted

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-black formatter adjusting formatting

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Fix docstrings
fix typos
update __clear_state function

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Fix docstrings
-Clean up positional/keyword arguments
-Clean unit testing and code bits

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Re-introduce assertNotIn and assertIn unit testing
Add simplified unit testing for "simple" password redaction
Fix docstrings and minor errors

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-clean type hints
-added assertnotin for additional secrets unit testing

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Chance instances of add_field_data to update_existing_segment_traits
-Change instances of overwrite_field_data to overwrite_segment_traits
-Change __add_field_data to __add_additional_valid_segment_traits
-Change __overwrite_field_data to __overwrite_valid_segment_traits

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Comment thread pyracf/access/access_admin.py Outdated
-Change overwrite_segment_traits to overwrite_existing_segment_traits

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
@lcarcaramo lcarcaramo added the enhancement New feature or request label Aug 31, 2023
@lcarcaramo lcarcaramo added this to the Alpha 1.0a2 milestone Aug 31, 2023
-Chance instances of add_field_data to update_existing_segment_traits
-Change instances of overwrite_field_data to overwrite_segment_traits
-Change __add_field_data to __add_additional_valid_segment_traits
-Change __overwrite_field_data to __overwrite_valid_segment_traits

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Change overwrite_segment_traits to overwrite_existing_segment_traits

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Condense Testing to 1 for Overwrite Valid Segment Traits and 1 for Add Additional Valid Segment Traits

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Comment thread pyracf/common/security_admin.py Outdated
Change add_additional_valid_segment_traits to update_valid_segment traits

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Comment thread pyracf/common/security_admin.py Outdated
-Overwrite function is now "Replace"
-"Add additional" is completely translated to update

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Comment thread pyracf/common/security_admin.py Outdated
Comment thread pyracf/common/security_admin.py Outdated
-Update docstrings associated with Customized Segment traits
-Fix issue where Add_Additional_Secret_Traits was renamed

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Update docstrings

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
@lcarcaramo lcarcaramo merged commit 32df754 into dev Sep 8, 2023
@lcarcaramo lcarcaramo deleted the rework-custom-traits branch September 8, 2023 12:08
EmmasBox pushed a commit to EmmasBox/pyracf that referenced this pull request May 18, 2025
…-connection

Add Group and Group Connection documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants