"secret" seems like not countable. But how it has an article "a" in front of it?
Native speaker’s answer
Rebecca
"Secret" is a countable noun, so it is correct to say "a secret" here. "Secret" can also be used as an adjective, for example you could say, "this file is secret" meaning "nobody has seen/can see this file". Ex: Let me tell you a secret. ("Secret" used as a singular noun) Ex: She has many secrets. ("Secret" used as a plural noun) Ex: My job is secret. ("Secret" used as an adjective)