Red Hat statement on U.S. Supreme Court decision in Google v. Oracle

Today’s 6-2 Supreme Court decision is a win for developers and the software industry; it recognizes the critical role of software interfaces to promote innovation, interoperability, and new technologies. Last year, Red Hat and IBM filed a joint amicus brief in this case urging the Supreme Court to overturn the lower court decision. The issues in this case were complex and the Supreme Court is to be commended for wrestling with its decades long history.
Quelle: CloudForms

Customer Success Stories: Red Hat provides accessibility solutions in retail, insurance, and healthcare

Customers count on Red Hat for our enterprise software solutions but also for us to think through questions on security, usability, and accessibility so that Red Hat products start with good defaults and offer useful tools to manage those settings.

This month, see how Red Hat helped a global retail giant, a large insurance provider, and the organization responsible for international public health address these questions and find success. 
Quelle: CloudForms

How we’re working with governments on climate goals

Editor’s note: This post originally appeared on The Keyword.When it comes to sustainability, we have a responsibility to work together — across governments, businesses and communities — and take action now. As the former Federal Chief Sustainability Officer for the U.S. government, I know firsthand the positive impact of technology companies and governments working together to address climate change. I’m thrilled to see the 24/7 carbon-free energy commitment for Federal buildings in President Biden’s proposed infrastructure plan, and am heartened by localized efforts, like Des Moines City Council’s similar commitment to a 24/7 carbon-free goal. At Google, we know the hard work it takes to get there. We were the first major company to become carbon neutral in 2007, and in 2017 we became the first company of our size to match 100% of our annual electricity use with renewable energy, something we’ve achieved three years in a row. We also recently set our most ambitious goal yet: operating our data centers and campuses on carbon-free energy 24/7 by 2030. Meeting these ambitious goals can seem daunting — especially as the urgency to act intensifies. Still, I’m confident that together we can make progress. That optimism is informed by areas where we’ve already seen significant positive impact through technology. Creating the cleanest cloud We have the cleanest cloud in the industry, serving governments at the federal, state and local level —  a feat I’m proud of because of the impact that can have, not only on our customers here in the U.S. but around the world. In fact, International Data Corporation estimates cloud computing could save a billion metric tonnes of CO2 emissions by 2024. We spent years making our cloud regions and data centers more efficient to reduce our carbon footprint and our customers’ carbon footprint. Today, Google data centers are twice as energy efficient as typical enterprise data centers and deliver around seven times more computing power than five years ago using the same amount of electrical power. As part of this journey, we used machine learning to reduce energy consumption for data center cooling by 30%. Now, Google Cloud and DeepMind aredeveloping an Industrial Adaptive Controls platform to deliver Machine Learning-enabled energy savings on a global scale by autonomously controlling Heating, Ventilation, and Air Conditioning (HVAC) systems in commercial buildings, data centers, and industrial facilities.We recently became the first cloud service to share datathat helps customers to fully decarbonize apps and infrastructure, through insights on how often each Google Cloud region was supplied by carbon-free energy on an hourly basis. And already, Google Cloud helps government agencies across the U.S. lower IT costs and reduce their carbon footprints — from the Navy and the Department of Energy, to states and cities like Rhode Island, West Virginia and Pittsburgh.Working with local governments Half of Earth’s population lives in cities, which is also where 70% of the world’s emissions originate. Local governments need access to technology that will help them build and act on climate action plans.To help, in 2018, we partnered with the Global Covenant of Mayors for Climate and Energy to launch the Environmental Insights Explorer (EIE). EIE is a free tool that helps cities estimate emissions from buildings and transportation, understand their rooftop solar potential, and measure air quality and tree canopy coverage.In 2020 alone, we helped 285 cities leverage EIE in their climate action planning efforts. Houston set an ambitious rooftop solar target and the City of Los Angeles used insights to inform their strategy to plant 90,000 trees. We’ve made EIE data available to more than 3,000 cities, helping them measure, plan and track progress toward climate action plans. Our goal is to help over 500 cities eliminate 1 gigaton of carbon emissions annually by 2030 and beyond, the equivalent to the annual emissions of Japan. We plan to expand EIE to thousands more cities and we’ll continue to work with local governments and share our own learnings in support of our collective decarbonization goals.  Advocating for a sustainable futureOne of the areas where government agencies can lead by example is through sustainable federal procurement — something President Biden has emphasized as a critical step in tackling climate change. This will require government agencies to consider more efficient uses of energy and water in federal contracts for goods, works or services. We’re actively working with governments to help them understand how they can benefit from our clean cloud to achieve their sustainability goals and serve their citizens with the lowest environmental impact possible. There’s also an opportunity to incorporate sustainability criteria into Congress’ oversight of government agencies through the Federal Information Technology Acquisition Reform Act (FITARA) Scorecard. This would allow agencies to learn best practices from each other, while also promoting partnerships with companies that focus on innovation and sustainability.We’re committed to partnering with governments around the world to provide our technology and insights to drive progress in the government’s sustainability efforts. You can learn more about our sustainability efforts and join us on this mission.IDC Press Release, Cloud Computing Could Eliminate a Billion Metric Tons of CO2 Emission Over the Next Four Years, and Possibly More, According to a New IDC Forecast, March 2021Related ArticleHow carbon-free is your cloud? New data lets you knowA Google Cloud region’s Carbon-Free Energy percentage (CFE%) lets you choose where best to run your workloads to meet your sustainability…Read Article
Quelle: Google Cloud Platform

Have budget notifications come to your favorite comms channels

TL;DR – Rather than wait for budget alert emails, you can use programmatic budget notifications to send budget updates to your favorite comms channels, like Slack (as well as anything else you can code).Even more options for visibility with Budgets fits well into the inform phase of the FinOps lifecycleThe last post introduced programmatic budget notifications and we saw a simple example of printing out some information. Since we can respond to the budget notification with code, a whole world of possibilities is available including third party integrations.Slack is a popular communication platform for teams, so it’s an ideal candidate for sending budget information and keeping your team informed of the status of your budgets. In this post, we’ll go over the steps to send your budget notifications to Slack.Disclaimer: These instructions work at the time of writing, but Slack may change things.Configuring SlackHere’s what we’re working towards:Cost and Forecast threshold are undefined because a threshold hasn’t been hit yet on this budget, so those parameters won’t come over in the messageThis is a message posted by a bot (gcp_cost_management_bot) that prints out a bunch of the different budget notification details. There’s not too much more to do here than the last post, but first we need to set up a Slack bot.You’ll need to create a Slack account and workspace (but not a Cloud Monitoring one) if you don’t already have one. I’ll leave that part of the explanation up to them but once you’re done, head over to https://api.slack.com/apps. The first thing you’ll want to do is make a new app.Consider a name like “Budget Alert Bot”, or maybe even “Budget Defender Superhero”. You can name it whatever you want, I’m not your bossThere are a lot of other things you can configure about your bot once you’ve created your app, but there’s two key pieces of information we need to get this working, an OAuth Token and a channel.To get the OAuth Token, look for the menu option labelled “OAuth & Permissions”. Once you’re there, find the section for Bot Token Scopes and click “Add an OAuth Scope”. The scope needed to send messages is called “chat:write” so type that in and add it.You can do all kinds of fancy things with bots, but I’m a fan of keeping it simpleThen, scroll back up and look for “Install App to Workspace”, which will direct you to a permission screen where you authorize the bot to post messages. After you do that, you’ll see an OAuth Access Token that you should copy and write down, since we’ll need it later.You didn’t think I was gonna just give you my OAuth Token, did you?With that safely stored away, the only thing you need is a channel that you want to send messages to. I’ve used a channel called “budget-alerts” (don’t include the #) but I’d suggest using a new channel rather than an existing one at least to start!Note: You’ll also need to go to your channel and run a command to invite the bot into the channel where you want it to post. You’ll want to update the bot name based on the name you provided./invite @budget_alert_botBack to the cloud!Now that we have the token and channel, head back to the Google Cloud Console and create a new Google Cloud Function. If you followed the steps from the last post, you can leave your logger bot or shut it down, since Pub/Sub allows multiple subscribers to a topic. Choose a name like “budget-notification-slack” and make sure to choose the same Pub/Sub topic. If you want a refresher on creating a function, the last post has a bit more information.Once again, we’ll use Python 3.7, but this time we’ll change the code. By default, you’ll have two files on the left, main.py and requirements.txt. I won’t go into any Python specifics here but click on requirements.txt and add this line of code:slackclient==2.7.2Here’s a picture to make sure everything is good:Google Cloud Functions takes care of a lot of dependencies automatically, but we need to manually add SlackAfter that, click on main.py and use this code (or grab it from here):That’s not too much code, but let’s break down a few important bits:Note: If you don’t update this part of the code yourself, it won’t work.Right after the imports, these two lines are the ones you’ll need to update with those values you securely saved before. Both are strings that you need to replace, and it should be pretty clear which value goes where. Note that the CHANNEL variable can be the name of your channel (like “budget-alerts”) or the channel ID (like C0123456789). We also set up the Slack client with the bot access token.This is the start of the function called “notify_slack”, and then we grab the data that was passed in as the message Pub/Sub gets from the budget.Note: You’ll also need to change the entry point of the function from “hello_pubsub” to “notify_slack” since that’s the actual function we want to be called. If you don’t change the entry point, it won’t work.In that previous post, we went over the message Pub/Sub gets from the budget, and what it sends over to the subscribers. Well, it’s a bit more complicated than I explained before (sorry). The full message is actually made up of two parts, attributes and data. You can read the full spec here, but we’re basically just grabbing the attributes (JSON) and data (Base64-encoded) so we can use them for their valuable data.budget_notification_text = f'{notification_attr}, {notification_data}’This line simply grabs the values from both the attributes and the data and puts them into a string. Yes, it’ll be messy but it’s just our starting point for now.And finally, here’s where we try to post the message to Slack, specifying the channel and the actual message. Pretty straightforward.So, that’s all the code we need! Make sure to replace the bot token, channel name, and function entry point as described above and deploy that function!Functions can take a bit to deploy, so feel free to make yourself another cup of tea while you waitOnce the function is up and running, we can move on to testing it!The proof is in the notificationSimilar to when we tested our logger function, we can send a test message using Pub/Sub or just wait for a budget notification. I’m terribly impatient, so let’s send a test message. Head to the Pub/Sub page, click on your topic, and then click publish message. We can use the same test body:But we can also add some attributes to reflect what a real notification might look like. Two important attributes are the billing account’s ID and the budget’s ID, both of which are unique.As you can guess, those aren’t my actual unique IDsOnce you send the message, check your Slack channel and you should see something like this:Hurrah, it’s the test data we sent!Wrapping things upAs you should see, the test message came through and the data was sent into a message from the bot! Of course, if you wait for a while, you’ll also see an actual budget notification message with real data come through and posted to Slack.You may notice that the bot message doesn’t match the first image way back up at the top (these blog posts sure are long). That’s because you can update the code to do more than just dump out the entire object, you can format a message specific to the data and formatting that makes the most sense for you. This post is long enough so I’ll leave it as an exercise to you! If you want to see more examples, check out the documentation.Related ArticleCosts meet code with programmatic budget notificationsTL;DR – More than just alerts, budgets can also send notifications to Pub/Sub. Once they’re in Pub/Sub, you can hook up all kinds of serv…Read Article
Quelle: Google Cloud Platform