Skip to content

Releases: VirgilSecurity/virgil-keyknox-javascript

Update dependencies

19 Apr 14:09
c38c96d
Compare
Choose a tag to compare

Update axios and other versions
Fix testes and error handler

v0.4.0-next.3

23 Oct 12:57
e8cd1d9
Compare
Choose a tag to compare
v0.4.0-next.3 Pre-release
Pre-release

October 23, 2019

  • CloudGroupTicketStorage throws GroupTicketNoAccessError if current user has no access to the group ticket

v0.4.0-next.2

16 Oct 14:45
c0c1e09
Compare
Choose a tag to compare
v0.4.0-next.2 Pre-release
Pre-release

October 16, 2019

  • Add Virgil-Agent header to help us improve our services
  • Fix custom errors in React Native

v0.3.3

15 Oct 13:28
7e0c133
Compare
Choose a tag to compare

October 15, 2019

Fix custom errors in React Native

v0.3.2

10 Oct 10:26
b2dba75
Compare
Choose a tag to compare

October 9, 2019

Fix TypeScript declaration files generation

v0.3.1

10 Oct 10:27
24e6366
Compare
Choose a tag to compare

October 9, 2019

  • Add Virgil-Agent header to library requests
  • Update @virgilsecurity/crypto-types to v0.2.0

v0.4.0-next.1

07 Oct 10:26
4a451c9
Compare
Choose a tag to compare
v0.4.0-next.1 Pre-release
Pre-release

October 7, 2019

Breaking change

Updated internal dependency @virgilsecurity/crypto-types to version 0.2.0, which reduces the amount of data serialization when saving \ retrieving group session tickets to \ from the Keyknox API.

As a result the CloudGroupTicketStorage#store method's first parameter's data property is now expected to be a string instead of Buffer.

v0.4.0-next.0

24 Sep 15:35
562b73f
Compare
Choose a tag to compare
v0.4.0-next.0 Pre-release
Pre-release

September 24, 2019

Features

  • Introducing CloudGroupTicketStorage - an easy way to store group tickets in Virgil Keyknox Service.

Breaking changes

  • KeyknoxManager is no longer responsible for key management. Please note that method signatures were updated because of this:
    // Before
    constructor(accessTokenProvider: IAccessTokenProvider, privateKey: IPrivateKey, publicKeys: IPublicKey | IPublicKey[], keyknoxCrypto: IKeyknoxCrypto, keyknoxClient?: IKeyknoxClient)
    // After
    constructor(keyknoxCrypto: IKeyknoxCrypto, keyknoxClient: KeyknoxClient)
    
    // Before
    pushValue(value: string, previousHash?: string): Promise<DecryptedKeyknoxValue>
    // After
    v1Push(value: string, privateKey: IPrivateKey, publicKeys: IPublicKey | IPublicKey[], keyknoxHash?: string): Promise<DecryptedKeyknoxValueV1>
    
    // Before
    pullValue(): Promise<DecryptedKeyknoxValue>
    // After
    v1Pull(privateKey: IPrivateKey, publicKeys: IPublicKey | IPublicKey[]): Promise<DecryptedKeyknoxValueV1>
    
    // Before
    resetValue(): Promise<DecryptedKeyknoxValue>
    // After
    v1Reset(): Promise<DecryptedKeyknoxValueV1>
    
    // Before
    updateValue(options: { value: string; previousHash: string; newPrivateKey?: IPrivateKey; newPublicKeys?: IPublicKey | IPublicKey[]; }): Promise<DecryptedKeyknoxValue>
    // After
    v1Update(options: { value: string; privateKey: IPrivateKey; publicKeys: IPublicKey | IPublicKey[]; keyknoxHash: string; newPrivateKey?: IPrivateKey; newPublicKeys?: IPublicKey | IPublicKey[]; }): Promise<DecryptedKeyknoxValueV1>
    
    // Before
    updateRecipients(options: { newPrivateKey?: IPrivateKey; newPublicKeys?: IPublicKey | IPublicKey[]; }): Promise<DecryptedKeyknoxValue>
    // After
    v1UpdateRecipients(options: { privateKey: IPrivateKey; publicKeys: IPublicKey | IPublicKey[]; newPrivateKey?: IPrivateKey; newPublicKeys?: IPublicKey | IPublicKey[]; }): Promise<DecryptedKeyknoxValueV1>
  • IKeyknoxClient was removed. Keyknox Service API is growing and we doubt that someone will roll out their own implementation.
  • Method signatures in KeyknoxClient were updated:
    // Before
    constructor(apiUrl?: string, axiosInstance?: AxiosInstance)
    // After
    constructor(accessTokenProvider: IAccessTokenProvider, apiUrl?: string, axiosInstance?: AxiosInstance)
    
    // Before
    pushValue(meta: string, value: string, token: string, previousHash?: string): Promise<EncryptedKeyknoxValue>
    // After
    v1Push(meta: string, value: string, keyknoxHash?: string): Promise<EncryptedKeyknoxValueV1>
    
    // Before
    pullValue(token: string): Promise<EncryptedKeyknoxValue>
    // After
    v1Pull(): Promise<EncryptedKeyknoxValueV1>
    
    // Before
    resetValue(token: string): Promise<DecryptedKeyknoxValue>
    // After
    v1Reset(): Promise<DecryptedKeyknoxValueV1>
  • All error classes extend Error instead of KeyknoxError.

v0.3.0

10 Oct 10:27
c614e33
Compare
Choose a tag to compare

September 17, 2019

v0.3.0-alpha.1

10 Oct 11:16
72bcc8d
Compare
Choose a tag to compare
v0.3.0-alpha.1 Pre-release
Pre-release

September 5, 2019

Use @virgilsecurity/crypto-types and virgil-sdk@next