Choose secrets by branch

It would be wonderful to ‘select secrets by branch’ for example to switch login credentials.
Is it possible to choose a secret after the current branch in version 1.0?

I have found in the old documentaiton of v0.8 information to restricting by events and restricting by images, but in the documentation of v1.0 under /user-guide/pipeline/secrets/ i have found nothing to restricting.