Skip to content

Releases: GDATASoftwareAG/vaas

ts7.6.6

17 Feb 10:08
71d1ef8
Compare
Choose a tag to compare

What's Changed

Full Changelog: ts7.6.5...ts7.6.6

py5.1.2

17 Feb 10:14
14e785f
Compare
Choose a tag to compare

What's Changed

Full Changelog: py5.1.1...py5.1.2

java9.0.3

17 Feb 10:42
4ad961d
Compare
Choose a tag to compare

What's Changed

Full Changelog: java9.0.2...java9.0.3

php11.0.1

12 Feb 13:12
Compare
Choose a tag to compare

What's Changed

  • Fix accidentally switched ForStreamOptions' useCache and useHashLookup

Full Changelog: php11.0.0...php11.0.1

ts7.6.5

10 Feb 08:33
2e930d6
Compare
Choose a tag to compare

What's Changed

Full Changelog: ts7.6.4...ts7.6.5

php11.0.0

10 Feb 14:59
2e930d6
Compare
Choose a tag to compare

What's Changed

This is a major release and may break your code. Please read the full changelog before upgrading.

  • Change to HTTP API: This release changes the underlying protocol used by the SDK from Websockets to HTTP.
  • No Connect() needed: Since the SDK now uses HTTP, it is stateless and does not require a connection to be established.
  • Async API: The SDK now uses a fully async API. All methods now return non-blocking Amp\Future's that you can call ->await() on instead.
  • Method calls: Even though the SDK is now async over HTTP the method signatures are mostly the same. Please take a look at the PHP SDK examples.
  • Documentation: Please take a look at the method documentation in the Vaas class here.

How to migrate

To scan a file, you previously had to proceed as follows:

$authenticator = new ClientCredentialsGrantAuthenticator(
    getenv("CLIENT_ID"),
    getenv("CLIENT_SECRET"),
    getenv("TOKEN_URL") ?: "https://account.gdata.de/realms/vaas-production/protocol/openid-connect/token"
);

$vaas = new Vaas(
    getenv("VAAS_URL") ?? "wss://gateway.production.vaas.gdatasecurity.de"
);

$vaas->Connect($authenticator->getToken());
$scanPath = getenv("SCAN_PATH");
$vaasVerdict = $vaas->ForFile($scanPath);

fwrite(STDOUT, "Verdict for $vaasVerdict->Sha256 is " . $vaasVerdict->Verdict->value . " \n");

With the new SDK, you can now scan a file like this:

$authenticator = new ClientCredentialsGrantAuthenticator(
    clientId: getenv("CLIENT_ID"),
    clientSecret: getenv("CLIENT_SECRET"),
    tokenUrl: getenv("TOKEN_URL")
);

$vaas = Vaas::builder()
    ->withAuthenticator($authenticator)
    ->build();


$scanPath = getenv("SCAN_PATH");
$vaasVerdict = $vaas->forFileAsync($scanPath)->await();

fwrite(STDOUT, "Verdict for $vaasVerdict->sha256 is " . $vaasVerdict->verdict->value . " \n");

Full Changelog: php10.0.1...php11.0.0

java9.0.2

10 Feb 08:37
2e930d6
Compare
Choose a tag to compare

What's Changed

Full Changelog: java9.0.1...java9.0.2

cs7.6.3

10 Feb 08:51
2e930d6
Compare
Choose a tag to compare

What's Changed

Full Changelog: cs7.6.2...cs7.6.3

ts7.6.4

04 Feb 07:32
d8c8761
Compare
Choose a tag to compare

What's Changed

Full Changelog: java9.0.1...ts7.6.4

java9.0.1

04 Feb 07:32
30208d4
Compare
Choose a tag to compare

What's Changed

Full Changelog: java9.0.0...java9.0.1