Commit 7246ef35 authored by Krishna Nikhil Vedurumudi's avatar Krishna Nikhil Vedurumudi Committed by Kishore Battula
Browse files

Azure onboarding

parent 9430c57c
......@@ -147,6 +147,7 @@
<module>provider/dataset-aws</module>
<module>provider/dataset-ibm</module>
<module>provider/dataset-gcp</module>
<module>provider/dataset-azure</module>
</modules>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<!--
~ Copyright 2021 Microsoft
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>os-dataset</artifactId>
<groupId>org.opengroup.osdu</groupId>
<version>0.9.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>dataset-azure</artifactId>
<description>Azure implementation of Dataset service APIs</description>
<version>0.9.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>dataset-azure</name>
<properties>
<java.version>1.8</java.version>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<osdu.corelibazure.version>0.8.0</osdu.corelibazure.version>
<osdu.oscorecommon.version>0.8.0</osdu.oscorecommon.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- Inherit managed dependencies from core-lib-azure -->
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-azure</artifactId>
<version>${osdu.corelibazure.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>os-core-common</artifactId>
<version>${osdu.oscorecommon.version}</version>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>dataset-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-azure</artifactId>
<version>${osdu.corelibazure.version}</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
/*
* Copyright 2021 Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opengroup.osdu.dataset.provider.azure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "org.opengroup.osdu.dataset")
public class DatasetAzureApplication {
public static void main(String[] args) {
SpringApplication.run(DatasetAzureApplication.class, args);
}
}
/*
* Copyright 2021 Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opengroup.osdu.dataset.provider.azure.cache;
import org.opengroup.osdu.core.common.cache.ICache;
import org.opengroup.osdu.core.common.model.entitlements.Groups;
import org.springframework.stereotype.Component;
// Todo: Use Redis / VmCache
@Component
public class GroupCache implements ICache<String, Groups> {
@Override
public void put(String s, Groups o) {
}
@Override
public Groups get(String s) {
return null;
}
@Override
public void delete(String s) {
}
@Override
public void clearAll() {
}
}
/*
* Copyright 2021 Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opengroup.osdu.dataset.provider.azure.di;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import javax.inject.Named;
@Component
public class AzureBootstrapConfig {
@Value("${azure.keyvault.url}")
private String keyVaultURL;
@Bean
@Named("KEY_VAULT_URL")
public String keyVaultURL() {
return keyVaultURL;
}
}
/*
* Copyright 2021 Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opengroup.osdu.dataset.provider.azure.service;
import org.opengroup.osdu.dataset.dms.DmsServiceProperties;
import org.opengroup.osdu.dataset.provider.interfaces.IDatasetDmsServiceMap;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public class DatasetDmsServiceMapImpl implements IDatasetDmsServiceMap {
@Override
public Map<String, DmsServiceProperties> getResourceTypeToDmsServiceMap() {
return null;
}
}
# Copyright 2021 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
runtime.env.local=true
azure.activedirectory.client-id=${aad_client_id}
azure.activedirectory.AppIdUri=api://${azure.activedirectory.client-id}
azure.activedirectory.session-stateless=true
# Istio Auth Enabled
azure.istio.auth.enabled=false
#
# Copyright 2021 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
server.servlet.contextPath=/api/dataset/v1/
LOG_PREFIX=dataset
# Azure KeyVault configuration
azure.keyvault.url=${KEYVAULT_URI}
# Azure Credentials
azure.client.secret=${AZURE_CLIENT_SECRET}
azure.client.id=${AZURE_CLIENT_ID}
azure.tenant.id=${AZURE_TENANT_ID}
azure.activedirectory.app-resource-id=${aad_client_id}
# Azure AD configuration, commented below settings to disable AAD AuthN,
# Uncomment it In the Istio AUTHN disabled Scenario
#azure.activedirectory.client-id=${AZURE_AD_APP_RESOURCE_ID}
#azure.activedirectory.AppIdUri=api://${AZURE_AD_APP_RESOURCE_ID}
#azure.activedirectory.session-stateless=true
# Istio Auth Enabled
azure.istio.auth.enabled=${azure_istioauth_enabled}
# Azure Application Insights configuration
azure.application-insights.instrumentation-key=${appinsights_key}
tenantInfo.container.name=TenantInfo
# # Spring Application name
spring.application.name=dataset-azure
AUTHORIZE_API=${entitlements_service_endpoint}
STORAGE_API=${storage_service_endpoint}
SCHEMA_API=${schema_service_endpoint}
PARTITION_API=${partition_service_endpoint}
DMS_API_BASE=""
logging.level.org.springframework.web=${LOG_LEVEL:INFO}
server.port=${server_port:8089}
# if this is turned on then the service tries to connect to elastic search
management.health.elasticsearch.enabled=false
#logging configuration
logging.transaction.enabled=true
logging.slf4jlogger.enabled=true
logging.mdccontext.enabled=true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment