-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[confcom] C-WCOW support #9776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[confcom] C-WCOW support #9776
Changes from all commits
2cc50f9
acf0de5
cce8274
6f94642
88dae8a
261d815
7633693
5a4707f
4f3c176
8952513
413707d
d9c63da
59627ed
28eec7d
358bd33
2efb197
631c766
a8acdb9
8889074
ace2f50
53bf34b
c47d62d
393e97d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| { | ||
| "azext.minCliCoreVersion": "2.26.2" | ||
| } | ||
| "azext.minCliCoreVersion": "2.26.2", | ||
| "azext.isPreview": true | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -563,6 +563,7 @@ def from_json( | |||||
| mounts=mounts, | ||||||
| allow_elevated=allow_elevated, | ||||||
| extraEnvironmentRules=[], | ||||||
| platform=container_json["platform"], | ||||||
|
||||||
| platform=container_json["platform"], | |
| platform=container_json.get("platform", "linux/amd64"), |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| internal_config.json and customer_rego_policy.txt are used by the "old style" acipolicygen command. New work should (also) happen in src/confcom/azext_confcom/lib/policy.py (or ensure that it is implemented for `containers from_image`), as eventually the old command will invoke that. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| package policy | ||
|
|
||
| import future.keywords.every | ||
| import future.keywords.in | ||
|
|
||
| api_version := %s | ||
| framework_version := "0.4.1" | ||
|
|
||
| fragments := %s | ||
|
|
||
| containers := %s | ||
|
|
||
| allow_properties_access := %s | ||
| allow_dump_stacks := %s | ||
| allow_runtime_logging := %s | ||
| allow_environment_variable_dropping := %s | ||
|
|
||
| create_container := data.framework.create_container | ||
| exec_in_container := data.framework.exec_in_container | ||
| exec_external := data.framework.exec_external | ||
| shutdown_container := data.framework.shutdown_container | ||
| signal_container_process := data.framework.signal_container_process | ||
| get_properties := data.framework.get_properties | ||
| dump_stacks := data.framework.dump_stacks | ||
| runtime_logging := data.framework.runtime_logging | ||
| load_fragment := data.framework.load_fragment | ||
| scratch_mount := data.framework.scratch_mount | ||
| mount_cims := data.framework.mount_cims | ||
|
|
||
| reason := {"errors": data.framework.errors} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| from azext_confcom import config | ||
|
|
||
| def get_debug_mode_exec_procs(debug_mode: bool, platform: str) -> list: | ||
|
|
||
| if not debug_mode: | ||
| return [] | ||
|
|
||
| if platform.startswith("linux"): | ||
| return config.DEBUG_MODE_SETTINGS.get(config.ACI_FIELD_CONTAINERS_EXEC_PROCESSES) | ||
| elif platform.startswith("windows"): | ||
| return config.DEBUG_MODE_SETTINGS_WINDOWS.get(config.ACI_FIELD_CONTAINERS_EXEC_PROCESSES) | ||
| else: | ||
| raise ValueError(f"Unsupported platform for debug mode settings: {platform}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reStructuredText section underline length doesn’t match the header length (
2.0.0b1has 7 characters but the underline is only 5+). This will produce docutils/Sphinx formatting warnings; adjust the underline to match the version string length (consistent with other entries like1.8.0).