Commit d361341
authored
Use docker expiration string from auth config (#196)
Description of changes:
Just checking the existence of the authorization string in Docker config is not sufficient to determine whether the user is logged into ECR public
This PR will decode the expiration timestamp from the authorization string and compare it to the current UTC timestamp.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent 29a44ff commit d361341
1 file changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
126 | 142 | | |
0 commit comments