Aperture-py

Latest version: v2.26.0

Safety actively analyzes 688674 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 17 of 53

2.15.1rc.1

Changelog

List of aperture PRs merged since 2.15.0 release. For the full list of changes, see [list of changes][changes]

Fixed job name conflict in background scheduler when multiple policies are deployed (2627)

- Refactor: Updated the `background-scheduler.go` in the control plane
runtime to enhance job tracking. Now, each job is assigned a unique name
derived from the policy hash, improving the visibility and traceability
of individual jobs within the system. This change will not affect the
end-user experience but will significantly aid in system maintenance and
debugging processes.

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.15.0...releases/aperture-controller/v2.15.1-rc.1

2.15.0

Changelog

List of aperture PRs merged since 2.14.0 release. For the full list of changes, see [list of changes][changes]

Du-duplicated policies in aperturectl apply (2605)

- Bug Fix: Added a validation to ensure that policies exist in the
directory before attempting to apply them. This prevents errors and
confusion when the directory is empty or does not contain valid
policies.
- Refactor: Enhanced the `getPolicies` function to handle and skip
duplicate policy names. This improvement ensures that only unique
policies are applied, preventing potential conflicts or unexpected
behavior due to duplicates.

Added milli second support for time based attributes in SDK (2604)

- New Feature: Introduced millisecond timestamp labels for flow start,
flow end, and workload start timestamps. This change provides more
precise time tracking in the SDK.
- Refactor: Updated `AddSDKSpecificLabels` and `_getLabelTimestampValue`
functions to handle both nanosecond and millisecond timestamp labels.
This ensures backward compatibility with older versions of the SDK that
use nanosecond timestamps.
- Test: Modified test cases to accommodate changes in timestamp label
handling, ensuring the new functionality is thoroughly tested.
- Chore: Deprecated certain labels in favor of new ones with millisecond
timestamps, aligning with version 3.0.0 of the SDK.

flowcontrol: use float64 values for tokens (2602)


Put control points in cache even if service doesn't exist (2593)

- Refactor: Updated `populateControlPointCache` function in
`pkg/otelcollector/metricsprocessor/processor.go` to handle cases where
there are no services in the response, improving the processing of
control point IDs.
- Documentation: Enhanced readability and error handling instructions in
`sdks/aperture-go/README.md`. Also updated sleep duration for better
flow control.
- Refactor: Removed deprecated methods `HTTPMiddleware` and
`GRPCUnaryInterceptor` from `apertureClient` struct in
`sdks/aperture-go/sdk/client.go`, promoting use of updated middleware
functions for improved modularity.

Set integrator eval interval to 10sec in adaptive load scheduler (2592)

Description of change
* Set integrator eval interval to 10sec in adaptive load scheduler
* Document 10sec actuation and signal update frequency in load scheduler
docs.

- Documentation: Updated comments and descriptions in `LoadScheduler`
and `AdaptiveLoadScheduler` messages, clarifying that signals are
updated every 10 seconds. Also, added information about the disabling of
pass-through mode when the system re-enters overload state.
- Refactor: Modified the `ParseAdaptiveLoadScheduler` function to
initialize the `InitialValue` field of the `Integrator` struct with
`MaxLoadMultiplier`. Added a new field `EvaluationInterval` to the
`Integrator` struct for better load management.
- Documentation: Enhanced documentation for load management parameters
and LoadScheduler component, providing more accurate information about
their behavior and updates.

Set default tokens in the workload to 1 and switch off auto tokens by default (2590)

![screencapture-localhost-3000-d-1cafa24eadc87e0eeb9217b9179e31473bcfa21d-aperture-service-protection-2023-09-08-10_46_30](https://github.com/fluxninja/aperture/assets/1553055/514806eb-ceea-47f8-9f24-cee9c1d40c83)

- Bug Fix: Changed the default value of `workload_latency_based_tokens`
from `true` to `false` in `LoadScheduler` message to prevent unexpected
behavior.
- Refactor: Set a default value of `1` and a minimum limit of `0` for
`tokens` field in `Scheduler` message to ensure valid token allocation.
- Documentation: Updated the configuration specification and scheduler
concept documents to reflect the changes in default and minimum values.
- New Feature: Modified the token allocation precedence in the `Decide`
function of `Scheduler`. Label tokens now have the highest precedence,
providing users with more control over token allocation.

Synchronize actuation with ticks (2579)

**Release Notes:**

- New Feature: The evaluation interval for various components and
policies has been updated to provide more frequent evaluations. This
includes changes in `Circuit`, `Integrator`, `PIDController` messages,
and various blueprint configurations.
- Refactor: Hardcoded values of '10s' have been introduced for the
`evaluation_interval` parameter in several PromQL queries for
consistency.
- Documentation: Updated documentation to reflect changes in default
values and descriptions of configuration parameters. Notably, the
`Differentiator` component is now marked as deprecated with a suggestion
to use `PIDController` instead.
- Chore: Introduced new properties `circuitEvaluationInterval` and
`metricScrapeInterval` in `blueprints/consts.libsonnet` for better code
modularity and maintainability.

fix tokens type (int vs string) in the policy spec (2578)


Removed defaults for 'tokens_label_key' and 'priorities_label_key' (2573)

- Refactor: Updated `RateLimiter` and `Scheduler` message definitions in
`flowcontrol.proto`. Removed default values for `tokens_label_key` and
`priorities_label_key`, they will now default to empty strings if not
provided.
- Refactor: Changes in configuration fields in `spec.md`. Default values
have been removed and the type has been simplified. This allows more
flexibility when specifying HTTP status codes and duration values.

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.14.0...releases/aperture-controller/v2.15.0

2.15.0rc.1

Changelog

List of aperture PRs merged since 2.14.0 release. For the full list of changes, see [list of changes][changes]

Du-duplicated policies in aperturectl apply (2605)

- Bug Fix: Added a validation to ensure that policies exist in the
directory before attempting to apply them. This prevents errors and
confusion when the directory is empty or does not contain valid
policies.
- Refactor: Enhanced the `getPolicies` function to handle and skip
duplicate policy names. This improvement ensures that only unique
policies are applied, preventing potential conflicts or unexpected
behavior due to duplicates.

Added milli second support for time based attributes in SDK (2604)

- New Feature: Introduced millisecond timestamp labels for flow start,
flow end, and workload start timestamps. This change provides more
precise time tracking in the SDK.
- Refactor: Updated `AddSDKSpecificLabels` and `_getLabelTimestampValue`
functions to handle both nanosecond and millisecond timestamp labels.
This ensures backward compatibility with older versions of the SDK that
use nanosecond timestamps.
- Test: Modified test cases to accommodate changes in timestamp label
handling, ensuring the new functionality is thoroughly tested.
- Chore: Deprecated certain labels in favor of new ones with millisecond
timestamps, aligning with version 3.0.0 of the SDK.

flowcontrol: use float64 values for tokens (2602)


Put control points in cache even if service doesn't exist (2593)

- Refactor: Updated `populateControlPointCache` function in
`pkg/otelcollector/metricsprocessor/processor.go` to handle cases where
there are no services in the response, improving the processing of
control point IDs.
- Documentation: Enhanced readability and error handling instructions in
`sdks/aperture-go/README.md`. Also updated sleep duration for better
flow control.
- Refactor: Removed deprecated methods `HTTPMiddleware` and
`GRPCUnaryInterceptor` from `apertureClient` struct in
`sdks/aperture-go/sdk/client.go`, promoting use of updated middleware
functions for improved modularity.

Set integrator eval interval to 10sec in adaptive load scheduler (2592)

Description of change
* Set integrator eval interval to 10sec in adaptive load scheduler
* Document 10sec actuation and signal update frequency in load scheduler
docs.

- Documentation: Updated comments and descriptions in `LoadScheduler`
and `AdaptiveLoadScheduler` messages, clarifying that signals are
updated every 10 seconds. Also, added information about the disabling of
pass-through mode when the system re-enters overload state.
- Refactor: Modified the `ParseAdaptiveLoadScheduler` function to
initialize the `InitialValue` field of the `Integrator` struct with
`MaxLoadMultiplier`. Added a new field `EvaluationInterval` to the
`Integrator` struct for better load management.
- Documentation: Enhanced documentation for load management parameters
and LoadScheduler component, providing more accurate information about
their behavior and updates.

Set default tokens in the workload to 1 and switch off auto tokens by default (2590)

![screencapture-localhost-3000-d-1cafa24eadc87e0eeb9217b9179e31473bcfa21d-aperture-service-protection-2023-09-08-10_46_30](https://github.com/fluxninja/aperture/assets/1553055/514806eb-ceea-47f8-9f24-cee9c1d40c83)

- Bug Fix: Changed the default value of `workload_latency_based_tokens`
from `true` to `false` in `LoadScheduler` message to prevent unexpected
behavior.
- Refactor: Set a default value of `1` and a minimum limit of `0` for
`tokens` field in `Scheduler` message to ensure valid token allocation.
- Documentation: Updated the configuration specification and scheduler
concept documents to reflect the changes in default and minimum values.
- New Feature: Modified the token allocation precedence in the `Decide`
function of `Scheduler`. Label tokens now have the highest precedence,
providing users with more control over token allocation.

Synchronize actuation with ticks (2579)

**Release Notes:**

- New Feature: The evaluation interval for various components and
policies has been updated to provide more frequent evaluations. This
includes changes in `Circuit`, `Integrator`, `PIDController` messages,
and various blueprint configurations.
- Refactor: Hardcoded values of '10s' have been introduced for the
`evaluation_interval` parameter in several PromQL queries for
consistency.
- Documentation: Updated documentation to reflect changes in default
values and descriptions of configuration parameters. Notably, the
`Differentiator` component is now marked as deprecated with a suggestion
to use `PIDController` instead.
- Chore: Introduced new properties `circuitEvaluationInterval` and
`metricScrapeInterval` in `blueprints/consts.libsonnet` for better code
modularity and maintainability.

fix tokens type (int vs string) in the policy spec (2578)


Removed defaults for 'tokens_label_key' and 'priorities_label_key' (2573)

- Refactor: Updated `RateLimiter` and `Scheduler` message definitions in
`flowcontrol.proto`. Removed default values for `tokens_label_key` and
`priorities_label_key`, they will now default to empty strings if not
provided.
- Refactor: Changes in configuration fields in `spec.md`. Default values
have been removed and the type has been simplified. This allows more
flexibility when specifying HTTP status codes and duration values.

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.14.0...releases/aperture-controller/v2.15.0-rc.1

2.14.1

Changelog

List of aperture PRs merged since 2.14.0 release. For the full list of changes, see [list of changes][changes]

pin grafonnet version (2582)

Pin grafonnet version as they just pushed a breaking change in main branch - https://github.com/grafana/grafonnet/pull/111#discussion_r1317333355

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.14.0...releases/aperture-controller/v2.14.1

2.14.1rc.1

Changelog

List of aperture PRs merged since 2.14.0 release. For the full list of changes, see [list of changes][changes]

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.14.0...releases/aperture-controller/v2.14.1-rc.1

2.14.0

Changelog

List of aperture PRs merged since 2.13.0 release. For the full list of changes, see [list of changes][changes]

PID Controller (2543)

- New Feature: Added a new `PIDController` component to the policy
language for closed-loop feedback control. This includes parameters such
as proportional gain, integral gain, derivative gain, sample period, and
reset duration.
- Documentation: Updated the configuration specification documentation
with detailed descriptions of the `PIDController`, its inputs, outputs,
and parameters. Also provided an overview of the PID controller
algorithm and its computation formula.
- Refactor: Renamed the field "Duration of EMA sampling window" to "EMA
window duration" in the `EMA` component for clarity.

Waiting room senario graceful js (2499)

![screencapture-localhost-3000-d-6152252655450d22f73854498b83cb3d5a086692-aperture-service-protection-for-postgresql-2023-08-30-14_50_10](https://github.com/fluxninja/aperture/assets/1553055/625d726e-ede5-4fe8-8b37-1ba4d3736c3c)

- New Feature: Added PostgreSQL support to the demo app, including a new
API endpoint for slow queries.
- New Feature: Enhanced the UI with a `RequestMessagingInfo` component
for displaying request success, error, and retry information.
- Refactor: Updated ESLint configuration and improved code consistency
in the `useRequestToEndpoint` hook and `MonitorRequestItem` component.
- Refactor: Modified the `RequestRecord` and `MonitorRequestProps`
interfaces to handle Axios errors more effectively.
- Chore: Updated Tanka configurations to include PostgreSQL setup.
- Documentation: Updated blueprint documentation to reflect changes in
PostgreSQL load scheduling.

---------

Co-authored-by: Gurinder Singh <gurinder.rawalafluxninja.com>

Add support for printing templated manifest files in aperturectl (2538)

- New Feature: Introduced a `--dry-run` flag to the `aperturectl
install` command and its subcommands (`agent`, `controller`,
`istioconfig`). This option allows users to generate and preview the
installation manifests without actually executing the installation
process. This feature enhances user control and predictability during
the installation process.

[changes]: https://github.com/fluxninja/aperture/compare/releases/aperture-controller/v2.13.0...releases/aperture-controller/v2.14.0

Page 17 of 53

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.