Java tutorial
// Copyright 2016 Eivind Vegsundvg // // 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. package ninja.eivind.hotsreplayuploader.providers.hotslogs; import com.amazonaws.auth.BasicAWSCredentials; import org.springframework.stereotype.Component; /** * The AWS credentials for the public HotsLogs S3 bucket. * DEAR READER: These are public, and this is very much intended. We understand your concerns about security, but given * the current technological environment, it is impossible to hide this from anyone who wants to inspect the memory of * the application. In fact, Java debuggers have gotten so advanced that it is trivial. Therefore, the security of this * key rests solely on proper restrictions having been placed on it. We, the developers, have not personally verified * this, but trust the developer of HotsLogs has done the correct amount of work. * * If you wish to further inquire about ideas for improving the security model of this layer, please email * {@literal mail@eivind.ninja} with {@literal admin@hotslogs.com} on CC. */ @Component("hotslogs-s3credentials") public class HotsLogsAWSCredentials extends BasicAWSCredentials { private static final String ACCESS_KEY = "AKIAIESBHEUH4KAAG4UA"; private static final String SECRET_KEY = "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"; public HotsLogsAWSCredentials() { super(ACCESS_KEY, SECRET_KEY); } }