@@ -27,6 +27,7 @@ var caBundleFlag *string
2727var caKeyFlag * string
2828var accountIDFlag * string
2929var backgroundFlag * bool
30+ var forceWildcardResourceFlag * bool
3031var cpuProfileFlag = flag .String ("cpu-profile" , "" , "[experimental] write a CPU profile to this file (for performance testing purposes)" )
3132
3233func parseConfig () {
@@ -43,6 +44,7 @@ func parseConfig() {
4344 caKey := "~/.iamlive/ca.key"
4445 accountID := "123456789012"
4546 background := false
47+ forceWildcardResource := false
4648
4749 cfgfile , err := homedir .Expand ("~/.iamlive/config" )
4850 if err == nil {
@@ -87,6 +89,9 @@ func parseConfig() {
8789 if cfg .Section ("" ).HasKey ("background" ) {
8890 background , _ = cfg .Section ("" ).Key ("background" ).Bool ()
8991 }
92+ if cfg .Section ("" ).HasKey ("force-wildcard-resource" ) {
93+ forceWildcardResource , _ = cfg .Section ("" ).Key ("force-wildcard-resource" ).Bool ()
94+ }
9095 }
9196 }
9297
@@ -103,6 +108,7 @@ func parseConfig() {
103108 caKeyFlag = flag .String ("ca-key" , caKey , "[experimental] the CA certificate key to use for proxy mode" )
104109 accountIDFlag = flag .String ("account-id" , accountID , "[experimental] the AWS account ID to use in policy outputs within proxy mode" )
105110 backgroundFlag = flag .Bool ("background" , background , "when set, the process will return the current PID and run in the background without output" )
111+ forceWildcardResourceFlag = flag .Bool ("force-wildcard-resource" , forceWildcardResource , "when set, the Resource will always be a wildcard" )
106112}
107113
108114func main () {
0 commit comments