@@ -60,22 +60,6 @@ func ExtractAccessTypeChar(accessId string) (string, error) {
6060 return string (idPart [len (idPart )- 2 ]), nil
6161}
6262
63- // validateAccessTypeChar validates the extracted access type character against a list of allowed types.
64- // It returns true if the extracted access type is in the allowed list, false otherwise.
65- func ValidateAccessTypeChar (accessId string , allowedTypes []string ) bool {
66- typeChar , err := ExtractAccessTypeChar (accessId )
67- if err != nil {
68- return false // Invalid ID format
69- }
70-
71- for _ , allowedType := range allowedTypes {
72- if typeChar == allowedType {
73- return true
74- }
75- }
76- return false
77- }
78-
7963// getAccessTypeDisplayName gets the full display name of the access type from the character.
8064// It returns the display name (e.g., 'api_key') or an error if the type character is unknown.
8165func GetAccessTypeDisplayName (typeChar string ) (string , error ) {
@@ -216,7 +200,7 @@ func isSecretActive(secret akeyless.Item, logger logger.Logger) bool {
216200 secret .ItemGeneralInfo .RotatedSecretDetails != nil &&
217201 secret .ItemGeneralInfo .RotatedSecretDetails .RotatorStatus != nil {
218202 status := * secret .ItemGeneralInfo .RotatedSecretDetails .RotatorStatus
219- if status == "RotationSucceeded" {
203+ if status == "RotationSucceeded" || status == "RotationInitialStatus" {
220204 isActive = true
221205 } else {
222206 logger .Debugf ("rotated secret '%s' rotation status is '%s', skipping..." , * secret .ItemName , status )
0 commit comments