Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
caa3b1c
SK-1663 Basic scaffolding and project structure for v2
skyflow-vivek Sep 17, 2024
f44be85
SK-1663 Worked on feedback for scaffolding
skyflow-vivek Sep 17, 2024
f9df247
SK-1663 Moved main dir to src dir
skyflow-vivek Sep 18, 2024
35762d2
SK-1663 Scaffolding for java sdk v2
skyflow-vivek Sep 19, 2024
45d96f9
SK-1663 Java sdk v2 scaffolding worked on feedback
skyflow-vivek Sep 19, 2024
ad543ad
SK-1663 Update method signatures for all controllers
skyflow-vivek Sep 19, 2024
f44c1f7
SK-1663 Worked on feedback for java sdk v2 scafolding
skyflow-vivek Sep 25, 2024
9eba2dd
SK-1677 Delete old vault controller implementation
skyflow-vivek Oct 1, 2024
f7ee304
SK-1677 Client Initilisation and Credentials priorotisation
skyflow-vivek Oct 1, 2024
786055d
SK-1677 Client initilisation and credentials prioritisation
skyflow-vivek Oct 3, 2024
6049e1c
SK-1677 Used Constants instead of hard-coded strings
skyflow-vivek Oct 3, 2024
988ab14
SK-1678 Bearer Token uitlities
skyflow-vivek Oct 4, 2024
5ad62c7
SK-1665 Generate and integrate Data API code
skyflow-vivek Oct 7, 2024
54cf369
SK-1664 Public interfaces for vault APIs
skyflow-vivek Oct 8, 2024
c511774
SK-1701 Implemented public interfaces for insert vault API
skyflow-vivek Oct 8, 2024
96ab82c
SK-1703 Worked on feedback for Detokenize public interfaces
skyflow-vivek Oct 9, 2024
864159e
SK-1701 Worked on feedback for Insert public interfaces
skyflow-vivek Oct 9, 2024
4aabe84
SK-1702 Implement public interfaces for Get vault API
skyflow-vivek Oct 9, 2024
3246b37
SK-1678 Replaced use of JSONObject with Gson JsonObject
skyflow-vivek Oct 10, 2024
382877b
SK-1664 Implement vault API public interfaces
skyflow-vivek Oct 10, 2024
0ad69e4
SK-1707 Implement Delete API public interfaces
skyflow-vivek Oct 11, 2024
df0a13f
SK-1705 Implement Query API public interfaces
skyflow-vivek Oct 11, 2024
de7eddc
SK-1664 implement tokenize api public interface
skyflow-shravan Oct 15, 2024
d441a28
SK-1666 implement invoke connection public interface
skyflow-shravan Oct 15, 2024
5496e94
SK-1701 Add continueOnError in insert vault API public interface
skyflow-vivek Oct 16, 2024
19aa8ce
SK-1681 Add validations
skyflow-vivek Oct 16, 2024
9e04420
SK-1681 add validations for tokenize request
skyflow-shravan Oct 17, 2024
c4ad6c5
SK-1666 validations for invoke connection request
skyflow-shravan Oct 18, 2024
b56f6ef
SK-1664 move ColumnValue class to tokens package
skyflow-shravan Oct 18, 2024
b08a535
SK-1664 Implement vault API interfaces
skyflow-vivek Oct 18, 2024
c6c282c
SK-1682 add error codes, messages and logs
skyflow-shravan Oct 22, 2024
27f7443
SK-1681 Add validations
skyflow-vivek Oct 23, 2024
e8352ac
SK-1678 Add support for using Api Key
skyflow-vivek Oct 23, 2024
3ca482f
Merge branch 'SK-1664-implement-vault-api-public-interfaces' into SK-…
skyflow-vivek Oct 23, 2024
19a3ca8
Merge pull request #123 from skyflowapi/SK-1682-implement-error-codes…
skyflow-vivek Oct 24, 2024
78a202d
SK-1680 Implement logging
skyflow-vivek Oct 28, 2024
4e61b52
SK-1684 Add unit tests
skyflow-vivek Nov 1, 2024
184124b
SK-1680 Changed info logs to error logs in validation checks
skyflow-vivek Nov 1, 2024
8df4058
SK-1684 Add unit tests
skyflow-vivek Nov 5, 2024
b246c3e
Merge pull request #119 from skyflowapi/SK-1677-implement-client-init…
skyflow-vivek Nov 6, 2024
0b21134
Merge pull request #120 from skyflowapi/SK-1678-implement-bearer-toke…
skyflow-vivek Nov 6, 2024
b525d59
Merge pull request #121 from skyflowapi/SK-1664-implement-vault-api-p…
skyflow-vivek Nov 6, 2024
994aa4d
Merge pull request #124 from skyflowapi/SK-1681-add-validations
skyflow-vivek Nov 6, 2024
be856d0
SK-1684 Add unit tests for bearer token utilities
skyflow-vivek Nov 6, 2024
fc336f0
SK-1684 Add unit tests for signed data tokens
skyflow-vivek Nov 7, 2024
9f3bd92
SK-1684 Add unit tests for Java SDK v2
skyflow-vivek Nov 8, 2024
9447fcc
Merge branch 'SK-1684-add-unit-tests' into SK-1666-implement-invoke-c…
skyflow-vivek Nov 8, 2024
8fcfdf3
Merge pull request #122 from skyflowapi/SK-1666-implement-invoke-conn…
skyflow-vivek Nov 8, 2024
f148469
SK-1666 Fix conflicts and build issues after merge
skyflow-vivek Nov 8, 2024
f529a23
SK-1684 Add unit tests for invoke connection
skyflow-vivek Nov 15, 2024
8efdf12
SK-1623 Java SDK v2
skyflow-vivek Nov 15, 2024
6027972
SK-1623 Downgrade dotenv to work with java 8
skyflow-vivek Nov 15, 2024
f4affdf
SK-1767 Fix unit tests not running in CI pipeline
skyflow-vivek Nov 18, 2024
8fa94f7
SK-1767 Add new secret for Java SDK v2 tests
skyflow-vivek Nov 18, 2024
8e9193e
SK-1767 Fix issues in CI pipeline
skyflow-vivek Nov 18, 2024
f63b903
SK-1767 Fix compilation issues in CI pipeline
skyflow-vivek Nov 18, 2024
f092e78
SK-1682 Modified the structure of Skyflow error
skyflow-vivek Nov 19, 2024
9ec99b4
SK-1623 Fix minor issues in Java SDK v2
skyflow-vivek Nov 19, 2024
b2b06c1
SK-1685 Add samples for Java SDK v2
skyflow-vivek Nov 19, 2024
1b57ba7
Merge pull request #125 from skyflowapi/SK-1684-add-unit-tests
skyflow-vivek Nov 19, 2024
a1d64ce
SK-1685 Add samples for Bearer token utilities
skyflow-vivek Nov 19, 2024
d1c8d5e
Merge pull request #126 from skyflowapi/SK-1685-add-readme-and-samples
skyflow-vivek Nov 19, 2024
6a9e583
SK-1623 Fix minor issues in Javs SDK v2
skyflow-vivek Nov 20, 2024
b9ab36f
SK-1752 workflow for internal release
skyflow-shravan Nov 19, 2024
656272d
SK-1752 workflow for internal release
skyflow-shravan Nov 19, 2024
57657d2
SK-1753 add create env step
skyflow-shravan Nov 19, 2024
d09ff94
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
b76fa83
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
92eae6a
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
167b1b4
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
953903a
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
817bdc4
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
5e2d385
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
5c48271
SK-1753 restore version in pom.xml
skyflow-shravan Nov 20, 2024
4dadb91
Merge pull request #134 from skyflowapi/SK-1753-internal-release-work…
skyflow-shravan Nov 20, 2024
222e54a
SK-1623 Fix typos in Samples
skyflow-vivek Nov 20, 2024
b4f2015
SK-1623 Worked on feedback for Update vault API interface
skyflow-vivek Nov 22, 2024
42bec3b
SK-1633 Upgraded dependency version
skyflow-vivek Nov 25, 2024
1eb16d7
SK-1623 Made constructors for Bearer token utilities builders private
skyflow-vivek Nov 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Publish package to the JFROG Artifactory
on:
push:
tags: '*.*.*'
paths-ignore:
- "pom.xml"
- "*.md"
branches:
- release/*

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref_name }}
fetch-depth: 0

- name: Set up Jfrog artifactory
uses: actions/setup-java@v1
with:
java-version: '1.8'
distribution: 'adopt'
server-id: central
server-username: JFROG_USERNAME
server-password: JFROG_PASSWORD
gpg-private-key: ${{ secrets.JFROG_GPG_KEY }} # Value of the GPG private key to import
gpg-passphrase: JFROG_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Get Previous tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@v1
with:
fallback: 1.0.0

- name: Bump Version
run: |
chmod +x ./scripts/bump_version.sh
./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}" "$(git rev-parse --short "$GITHUB_SHA")"

- name: Commit changes
run: |
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
git add pom.xml
git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev.$(git rev-parse --short $GITHUB_SHA)"
git push origin -f

- name: Create env
id: create-env
run: |
touch .env
echo SKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env

- name: Create credentials json
id: create-json
uses: jsdaniell/create-json@1.1.2
with:
name: "credentials.json"
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: Publish package to Jfrog Artifactory
run: mvn clean deploy -P jfrog
env:
JFROG_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
JFROG_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
JFROG_GPG_PASSPHRASE: ${{ secrets.JFROG_GPG_PASSPHRASE }}
19 changes: 13 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: PR CI Checks

on: [ pull_request ]
on: [pull_request]

jobs:
check-commit-message:
Expand All @@ -11,18 +11,18 @@ jobs:
uses: gsactions/commit-message-checker@v1
with:
pattern: '\[?[A-Z]{1,5}-[1-9][0-9]*.+$'
flags: 'gm'
excludeDescription: 'true'
checkAllCommitMessages: 'true'
flags: "gm"
excludeDescription: "true"
checkAllCommitMessages: "true"
accessToken: ${{ secrets.PAT_ACTIONS }}
error: 'One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )'
error: "One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )"
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '1.8'
java-version: "1.8"

- name: create-json
id: create-json
Expand All @@ -31,6 +31,13 @@ jobs:
name: "credentials.json"
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: create env
id: create-env
run: |
touch .env
echo SKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env

- name: Build & Run tests with Maven
run: mvn -B package -DTEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} -DTEST_DATA_CREDENTIALS_FILE=${{ secrets.TEST_DATA_CREDENTIALS_FILE }} -f pom.xml

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: Publish package to Maven Central
run: mvn --batch-mode deploy
run: mvn --batch-mode deploy -P maven-central
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
177 changes: 126 additions & 51 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,63 +32,77 @@
</scm>

<properties>
<maven.compiler.source>7</maven.compiler.source>
<maven.compiler.target>7</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<okhttp-version>4.12.0</okhttp-version>
<gson-version>2.10.1</gson-version>
<gson-fire-version>1.9.0</gson-fire-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<okhttp-version>4.12.0</okhttp-version>
<junit-version>4.13.2</junit-version>
<javax-xml-bind-version>2.3.1</javax-xml-bind-version>
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
</properties>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
</distributionManagement>

<dependencies>
<!-- newly added v2 dependencies -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.13.0</version>
<groupId>io.github.cdimascio</groupId>
<artifactId>dotenv-java</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
<groupId>io.gsonfire</groupId>
<artifactId>gson-fire</artifactId>
<version>${gson-fire-version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson-version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${okhttp-version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>logging-interceptor</artifactId>
<version>${okhttp-version}</version>
</dependency>
<!-- existing dependencies -->
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.15</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.12.6</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.2</version>
<scope>runtime</scope>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${jakarta-annotation-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.11.2</version>
<scope>runtime</scope>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${javax-xml-bind-version}</version>
</dependency>
<!-- existing test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<version>${junit-version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -107,17 +121,17 @@

<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.sonatype.plugins</groupId>-->
<!-- <artifactId>nexus-staging-maven-plugin</artifactId>-->
<!-- <version>1.6.7</version>-->
<!-- <extensions>true</extensions>-->
<!-- <configuration>-->
<!-- <serverId>ossrh</serverId>-->
<!-- <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>-->
<!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>-->
<!-- </configuration>-->
<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand All @@ -135,6 +149,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<excludePackageNames>
:com.skyflow.generated.rest
:com.skyflow.generated.rest.api
:com.skyflow.generated.rest.auth
:com.skyflow.generated.rest.models
</excludePackageNames>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -153,11 +175,6 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<configuration>
<excludes>
<exclude>**/example/*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>prepare-agent</id>
Expand All @@ -173,6 +190,26 @@
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/example/*</exclude>
<exclude>**/generated/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
<configuration>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -197,5 +234,43 @@
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>maven_central</id>
<name>Maven Central</name>
<url>https://repo.maven.apache.org/maven2/</url>
</repository>
</repositories>

<profiles>
<profile>
<id>maven-central</id>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
<id>jfrog</id>
<distributionManagement>
<repository>
<id>central</id>
<name>prekarilabs.jfrog.io-releases</name>
<url>https://prekarilabs.jfrog.io/artifactory/skyflow-java</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>prekarilabs.jfrog.io-snapshots</name>
<url>https://prekarilabs.jfrog.io/artifactory/skyflow-java</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles>

</project>
</project>
Loading
Loading