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
fix: SA authentication and change how errors in requests are handled (#79)
* fix: add token URL parameter to SetConfigOptions for SA authentication
* fix: enforce strict execution order for DNS changes to prevent orphaned records and mitigate quota issues
* add test, fix lint, add new option to documentation
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,6 +231,7 @@ Below are the options that are available.
231
231
-`--auth-key-path`/`AUTH_KEY_PATH` (required): Defines the file path of the service account key for the STACKIT API.
232
232
Prefer using a Kubernetes Secret mounted as a file and set `AUTH_KEY_PATH` to the in-container path
233
233
(e.g. `/var/run/secrets/stackit/sa.json`).
234
+
-`--token-url`/`TOKEN_URL` (optional): Specifies alternative URL for authentication with service account key (default "https://service-account.api.stackit.cloud/token").
234
235
-`--worker`/`WORKER` (optional): Specifies the number of workers to employ for querying the API. Given that we
235
236
need to iterate over all zones and records, it can be parallelized. However, it is important to avoid
236
237
setting this number excessively high to prevent receiving 429 rate limiting from the API (default 10).
rootCmd.PersistentFlags().StringVar(&apiPort, "api-port", "8888", "Specifies the port to listen on.")
117
117
rootCmd.PersistentFlags().StringVar(&authBearerToken, "auth-token", "", "Defines the authentication token for the STACKIT API. Mutually exclusive with 'auth-key-path'.")
118
118
rootCmd.PersistentFlags().StringVar(&authKeyPath, "auth-key-path", "", "Defines the file path of the service account key for the STACKIT API. Mutually exclusive with 'auth-token'.")
119
+
rootCmd.PersistentFlags().StringVar(&tokenUrl, "token-url", "", "Defines the authentication token endpoint for the STACKIT API.")
119
120
rootCmd.PersistentFlags().StringVar(&baseUrl, "base-url", "https://dns.api.stackit.cloud", " Identifies the Base URL for utilizing the API.")
120
121
rootCmd.PersistentFlags().StringVar(&projectID, "project-id", "", "Specifies the project id of the STACKIT project.")
121
-
rootCmd.PersistentFlags().IntVar(&worker, "worker", 10, "Specifies the number "+
122
-
"of workers to employ for querying the API. Given that we need to iterate over all zones and "+
123
-
"records, it can be parallelized. However, it is important to avoid setting this number "+
124
-
"excessively high to prevent receiving 429 rate limiting from the API.")
122
+
rootCmd.PersistentFlags().IntVar(&worker, "worker", 10, "Specifies the number of workers to employ for querying the API. Given that we need to iterate over all zones and records, it can be parallelized. However, it is important to avoid setting this number excessively high to prevent receiving 429 rate limiting from the API.")
125
123
rootCmd.PersistentFlags().StringArrayVar(&domainFilter, "domain-filter", []string{}, "Establishes a filter for DNS zone names")
126
124
rootCmd.PersistentFlags().BoolVar(&dryRun, "dry-run", false, "Specifies whether to perform a dry run.")
127
125
rootCmd.PersistentFlags().StringVar(&logLevel, "log-level", "info", "Specifies the log level. Possible values are: debug, info, warn, error")
0 commit comments