You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flag.StringVar(&configType, "config", "", "Type the absolute path to yaml file with provider configuration. If it's ommited, program reads from environment variables (REGISTRY_TOKEN_PATH, DEFAULT_USER, REGISTRY_PROTOCOL, OCIR_AUTH_METHOD).")
20
+
flag.StringVar(&configType, "config", "", "Path to config YAML or environment config")
When the first image is pulled, the CredentialProvider will obtain a token from OCI which will be cached for subsequent image pulls up to the `cacheDuration` (normally equal to the tokens lifetime: 1hr). When the cached token expires by reaching the `cacheDuration`, the next image pull will request a new one.
8
+
9
+
If IAM policies are not in place at the time the token is cached then the token is essentially unauthorized for the entire duration of the `cacheDuration`. The `TOKEN_VALIDATION` configuration setting will set an initial short lived `cacheDuration` until it is determined that the cached token is authorized to pull images. Once it is determined that the token is authorized, it will set the `cacheDuration` to the tokens lifetime.
10
+
11
+
It is important to note that a new token is _not_ requested when the cached token expires. It is only requested when the cached token expires **and** an image pull occurs.
0 commit comments