Skip to main content
Malekith
New Member
April 2, 2025
Solved

unable to delete secret in FortiPAM

  • April 2, 2025
  • 1 reply
  • 852 views

Hi there,

 

I am in charge of introducing FortiPAM in our Windows domain environment to manage log and secure the access to our servers.

Testing things out I have created some users, groups, targets and secrets (mostly on the same target). Clearing out some of my tests I ran into a problem: Secret Z with ID=1 gave the answer "Failed to delete some of the secrets or folders" (I can click the delete button). 

I tried to delete everything that could be related to it. The situation now is following: 

 

In my personal Folder and in the secrets folder I can see the entry for the secret Z. I have owner permissions on it. In Targets there is only the asociated Target also called Z. The delete button for this is grey and can not be clicked (obviousliy because there is an dependent objekt). 

I thought I could solve my problem with deleting the secret entry in the "secret database" via cli-command but the answer is this:

"SRV-FPA # config secret database

SRV-FPA (database) # get
== [ 1 ]
id: 1 name: Z

SRV-FPA (database) # delete 1
The entry is used by other 3 entries
Command fail. Return code -23"

including the according commands.

Maybe anyone here knows how to find the entries it is used by and how to delete them.

 

Many thanks and kind regards

Best answer by Malekith

Problem solved:

 

The dependancys were three earlyer granted requests for approval. They couldn't be deleted via GUI but could through CLI-Command: config secret request (to get into the folder) and purge to delete all entries.

 

If you like to know how to find out the names of the folders in which you can config your objekts:

with the command show while you are in the root folder (so just opened the console) you get all of your system configuration. With some time you can find the commands the system has used to configure for example the secrets or request.

 

With kind regards

 

 

PS: Dear Forti-Support,

       please fix that old requests block the deletion of a secret.

1 reply

Malekith
MalekithAuthorAnswer
New Member
April 3, 2025

Problem solved:

 

The dependancys were three earlyer granted requests for approval. They couldn't be deleted via GUI but could through CLI-Command: config secret request (to get into the folder) and purge to delete all entries.

 

If you like to know how to find out the names of the folders in which you can config your objekts:

with the command show while you are in the root folder (so just opened the console) you get all of your system configuration. With some time you can find the commands the system has used to configure for example the secrets or request.

 

With kind regards

 

 

PS: Dear Forti-Support,

       please fix that old requests block the deletion of a secret.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT