File-matching patterns

This section explains file-matching patterns and how to use them in manifest templates.

To simplify the enumeration of files that are listed in the manifest template, the Anjuna SGX Runtime recognizes file-matching patterns. The Anjuna SGX Runtime matches text in a pattern exactly, with the following exceptions:

  • An asterisk ('*') matches zero or more of any character in a filename.

  • A question mark ('?') matches exactly one of any character in a filename.

Examples

An exact match

A pattern with no asterisks or question marks matches a filename only if the filename and pattern are character-for-character identical. For example, the following filenames do not match the pattern server.key, because each one differs from the pattern either in the characters that are present or in their case:

  • Server.key

  • server

  • server.pem

A question mark

The pattern server.??? matches the following filenames:

  • server.key

  • server.pem

It does not match:

  • Server.key

  • server.base64

  • server.ca

Asterisks

The pattern server.* matches the following filenames:

  • server.key

  • server.pem

  • server.base64

It does not match:

  • Server.key

  • server-cert.ca